-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uninstalling this package throws an exception #2
Comments
Err, and the composer.json: {
"name": "rbayliss/console-extend-plugin-error-demo",
"type": "project",
"minimum-stability": "dev",
"prefer-stable": true,
"require-dev": {
"drupal/console": "^1.0.0-rc16"
},
"require": {}
} |
For anybody affected by this, I've rolled the temporary fix in a fork. You can use it by adding the following to the "repositories" in composer.json: {
"type": "vcs",
"url": "https://github.com/rbayliss/drupal-console-extend-plugin.git"
} And the following to your require-dev: "drupal/console-extend-plugin": "dev-temp_fix_uninstall_error as 0.4.1", I'll be submitting the permanent fix as a PR shortly. |
I'm hitting this issue pretty frequently. |
@jmolivas I think this might have broken https://github.com/drupal-composer/drupal-project After a clean install I'm getting
|
Here's a example CI build -- https://circleci.com/gh/thom8/drupal-project/18 just trying to revert to 0.4.0 and run a test |
Yeah fixed by reverting to |
Thanks 👍 |
Closing this one. Feel free to re-open if still happening after updating to the latest version. Nice work all. I just marge the PR and tag a new release ;) |
Steps to reproduce
Using the following minimal composer.json, run
composer install
followed bycomposer install --no-dev
. Observe a fatal error:The "" directory does not exist
is thrown during uninstallation.Suggested Resolution
As a temporary fix, exit
Drupal\Console\Composer\Plugin\Extender::processPackages()
immediately if $directory doesn't exist. As a permanent fix, use thePackageEvent
to determine the paths to vendor and the package root instead of hard-coding them.The text was updated successfully, but these errors were encountered: