-
Notifications
You must be signed in to change notification settings - Fork 65
Set GOPROXY to default if it is not configured #103
Set GOPROXY to default if it is not configured #103
Conversation
Welcome @joonas! |
Hi @joonas. Thanks for your PR. I'm waiting for a kubernetes-sigs or kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
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.
/ok-to-test
/lgtm
/hold |
I have a clean checkout, I don't have GOPROXY set, and |
@ncdc Just to check, did you run |
Doing that now. Will report back |
Ok I get the same error with a clean modcache |
Sorry I should've mentioned that being a pre-requisite originally on the ticket. The goal is to honor |
How about this?
|
Happy to change it to that, that's definitely more succinct & idiomatic. |
LGTM, please squash & thanks! |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: joonas, ncdc The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This is necessary since 'go env GOPROXY' will return an empty string if the value is not set, thus setting GOPROXY to nothing. Signed-off-by: Joonas Bergius <[email protected]>
/lgtm thanks @joonas |
/hold cancel |
3f35bd2
to
05fb110
Compare
/lgtm |
What this PR does / why we need it:
This is necessary since
go env GOPROXY
will return an empty string if the value is not set, thus setting GOPROXY to an empty string, which doesn't quite do what we want.Special notes for your reviewer:
I've verified this locally by doing a fresh checkout without
GOPROXY
being set and runningmake test
, which resulted in:After applying this change and running
make test
again things worked as expected.Release note:
/cc @chuckha @amy