Unable to remove via Composer

Created on 20 January 2025, about 2 months ago

I wanted to try to remove and install this theme again using composer, however it looks like there is some dependency to Bartik theme ?

In my case i am using Bartik theme so it was already installed and now I am getting following issues using composer once I want to remove it :

$ composer remove drupal/artisan
Composer could not detect the root package (drupal/legacy-project) version, defaulting to '1.0.0'. See https://getcomposer.org/root-version
drupal/artisan is not required in your composer.json and has not been removed
./composer.json has been updated
Composer could not detect the root package (drupal/legacy-project) version, defaulting to '1.0.0'. See https://getcomposer.org/root-version
Running composer update drupal/artisan
Gathering patches for root package.
Loading composer repositories with package information
Dependency drupal/bartik is also a root requirement. Package has not been listed as an update argument, so keeping locked at old version. Use --with-all-dependencies (-W) to include root dependencies.
Updating dependencies
Nothing to modify in lock file
Installing dependencies from lock file (including require-dev)
Nothing to install, update or remove
Generating autoload files
Hardening vendor directory with .htaccess and web.config files.
47 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Cleaning installed packages.
No security vulnerability advisories found.
Removal failed, drupal/artisan is still present, it may be required by another package. See `composer why drupal/artisan`.

So I do not want to uninstall Bartik as I am using it and need it ,does it mean Artistan cannot be removed using composer if there is Bartik installed ?

πŸ› Bug report
Status

Active

Version

1.2

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia coaston

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024