-
Notifications
You must be signed in to change notification settings - Fork 38.7k
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
Return a slightly more verbose error when "go get" fails. #48292
Conversation
hack/e2e.go
Outdated
@@ -145,7 +145,7 @@ func (t tester) getKubetest(get bool, old time.Duration) (string, error) { | |||
} | |||
log.Print("Updating kubetest binary...") | |||
if err = t.wait("go", "get", "-u", "k8s.io/test-infra/kubetest"); err != nil { | |||
return "", err // Could not upgrade | |||
return "", fmt.Errorf("go get -u k8s.io/test-infra/kubetest: %v"), err // Could not upgrade |
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.
could put command in a []string to avoid a future change making the error message misleading, but it's probably fine
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 think err
needs to move inside of the fmt.Errorf()
/lgtm |
/assign ixdy |
@mml:
|
@cblecker thanks... this one actually compiles and runs. |
/assign ixdy |
@k8s-bot oh i'm missing a stupid @ sign... you could at least say so! |
/assign @ixdy |
/lgtm actually fixing this so it DTRT if you had |
(OTOH, that would cause you to install an old version of |
/approve no-issue |
OMG that test. |
golint wants s/eu_verbose/euVerbose/. |
@rmmh fixed PTAL |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ixdy, mml, rmmh Associated issue requirement bypassed by: ixdy The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Automatic merge from submit-queue (batch tested with PRs 48292, 48121) |
No description provided.