Skip to content
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

Make drupal-finder use the same priority order that composer/installers does when reading installer-paths #58

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

greg-1-anderson
Copy link
Collaborator

Problem statement:

drupal-finder has the reverse priority order for installer-paths that composer/installers has. This is a problem in a degenerate case, where a site has two entries for type:drupal-core.

  • composer/installers will take the first entry, installing Drupal to web/core
  • drupal-finder uses the second entry, causing Drush to look for Drupal in core instead of web/core

Since neither project complains about the duplicate entry, this can cause some head-scratching if the humans don't notice that there's more than one type:drupal-core in the long installer-paths list.

Proposed Solution:

There are two choices:

  • Don't make that mistake again
  • Make drupal-finder interpret installer-paths the same way that composer/installers does.

Since humans are fallible, and there are a lot of Drupal sites, I would prefer to go with the second option.

@greg-1-anderson greg-1-anderson changed the title Failing test: duplicate installer paths Make drupal-finder use the same priority order that composer/installers does when reading installer-paths Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant