-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Nix yarn binstub #367
Nix yarn binstub #367
Conversation
Thanks for reviewing 😄 |
Rails 5.1 task |
@swrobel I think we change this behaviour in Rails as well. Could you open a ticket there please? |
Webpacker has [removed the yarn binstub](rails/webpacker#367)
I actually liked the flexibility provided by having this binstub. It allows application owners to change the binstub's contents and webpacker will invoke the changed version. For example, one use case is to change the binstub to be a standalone copy of yarn (which is distributed with each release: https://github.com/yarnpkg/yarn/releases). Doing so ensures that all developers, as well as CI and production machines are using the same exact yarn version, which makes it impossible for issues to arise due to one user/machine using a different yarn version than another user/machine. And since yarn is contained in the repo, upgrading it is trivial, and automatically applies to all developers when they Would you be open to accepting a PR to add back the binstub? |
Lets just use
yarn
executable directly instead of using the same executable through a binstub to make things simple across all platforms. Since we check for yarn executable presence and version before installing Webpacker this shouldn't be a problem.Companion PR #363