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
feat(yarn): ignore yarn-path if binary does not exist #12322
feat(yarn): ignore yarn-path if binary does not exist #12322
Conversation
Have you tested this? I'm not sure this achieves what you expect. I think the new |
@rarkins thanks for the review! Pushed an update when you have a minute :) |
🎉 This PR is included in version 28.12.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Shouldn't this error or at least warn the user a setting they set is being ignored? |
@busches sure, I'd accept a PR which includes a log warning if so |
Changes:
This PR changes the behavior of the
checkYarnrc
function to validate that the binary pointed to byyarn-path
exists before returning the path. If it does not exist theyarn-path
is set tonull
.Context:
If a repository does not include a yarn binary in its source code but does set a
yarn-path
(which can be used after running initialization scripts) the current behavior of this function will return the path which will not exist when renovate runs updates. This changes ensures that the path is valid, by ensuring the binary exists, before running updates.See #12321 for more information
Documentation (please check one with an [x])
How I've tested my work (please tick one)
I have verified these changes via: