-
Notifications
You must be signed in to change notification settings - Fork 431
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
Remove ./node_modules/.bin
from $PATH
#903
Conversation
Some npm modules define commands with widely used bash functions (and probably others). Putting this component in `$PATH` causes subtle issues, such as travis-ci/travis-ci#5092. We are removing it, so that this is no longer the case. This will most likely break some builds, so we add a warning.
./node_modules/bin
from $PATH./node_modules/.bin
from $PATH
Note that, to my knowledge, this change breaks every Ember addon out there because of our default blueprint: https://github.com/ember-cli/ember-cli/blob/74562a4/blueprints/addon/files/.travis.yml#L40 |
This will break things for almost all Ember projects, as |
This doesn't appear to have landed yet we currently have reported failures from users in our Slack channel. Also, hi, @backspace! <3 |
I'm not sure I support this change. This will cause major issues for many people using Node. |
@BanzaiMan instead of removing the path completely, would it maybe be possible to move it to the end of the list as a fallback? that way the native executables are preferred, but the Ember addon builds won't fail. |
The offending bit is travis-ci/travis-cookbooks#786, which renders this PR obsolete. I'll work on a fix for the issue shortly. |
./node_modules/.bin
from $PATH./node_modules/.bin
from $PATH
Since this PR is now obsolete, it can be closed now right? |
Some npm modules define commands with widely used bash functions
(and probably others).
Putting this component in
$PATH
causes subtle issues, such astravis-ci/travis-ci#5092.
We are removing it, so that this is no longer the case.
This will most likely break some builds, so we add a warning.