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

README should explain order of precedence for custom paths #17

Open
joachim-n opened this issue Nov 19, 2018 · 0 comments
Open

README should explain order of precedence for custom paths #17

joachim-n opened this issue Nov 19, 2018 · 0 comments

Comments

@joachim-n
Copy link

If you want to set a custom path for a single package whose type as a whole also has an installer path, it's essential for it to come first in the list.

In other words, the first possible path that matches for a package is the one that is considered. This should be mentioned in the README.

For example, this doesn't work:

        "installer-paths": {
            "web/modules/contrib/{$name}": ["type:drupal-module"],
            "web/special/{$name}": [
                "drupal/honeypot"
            ]
        },

but this does:

        "installer-paths": {
            "web/special/{$name}": [
                "drupal/honeypot"
            ],
            "web/modules/contrib/{$name}": ["type:drupal-module"]
        },
mstenta added a commit to farmOS/composer-project that referenced this issue Mar 11, 2021
mstenta added a commit to farmOS/composer-project that referenced this issue Mar 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants