-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Raise user error when Yarn is misconfigured #8326
Conversation
8c993fa
to
060150e
Compare
060150e
to
f55ca51
Compare
This one is ready for feedback! |
Does this mean that if a user sets their I understand the reasoning behind capturing and raising this error, but what prevents us from still attempting the update? We could raise a warning about setting |
I think we do, yes. We delegate to In this case, user is configuring Yeah, we could "ignore" this error, remove |
Okay gotcha, yeah if we normally do run the At first I thought we should require the |
Could we add a test by raising from the SharedHelper subprocess? The code itself LGTM though. |
Yeah, that's my thinking too! I'll work on a test 👍. |
31f019e
to
3d8b6cf
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I notice we don't list out what the error is explicitly but that's fine since it might also change upstream. This LGTM.
Yeah! I was actually going to test the message, in particular, because I suspect that dependabot-core/common/lib/dependabot/errors.rb Lines 23 to 32 in 4d22252
But I decided this was good enough as is, since I was seeing different behavior depending on whether I run the code through |
7214306
to
46f98d3
Compare
46f98d3
to
135d9d5
Compare
696d099
to
202f8bb
Compare
202f8bb
to
6be37c2
Compare
Sometimes we'll fail to run
yarn --version
because yarn is misconfigured because it setsyarn-path
inside.yanrc
to a path that's not committed to the repo.This seems like a user error, but I couldn't find a good fit for it among existing errors, so I created a new one.
Open to suggestions here.