-
Notifications
You must be signed in to change notification settings - Fork 10
packit: set default for GOPROXY #86
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
base: main
Are you sure you want to change the base?
Conversation
7f40ccf
to
7b6f91e
Compare
I'll be deferring review of this as we seem to be in gear to replace most of our vendoring scripts/Makefiles with |
Setting to "blocked" based on #86 (comment) - please just remove the label once that discussion has happend |
33a93a7
to
e475a4c
Compare
Since we don't seem to really have time to look into |
e475a4c
to
71632cd
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 think this should be closed based on the reasoning in https://github.com/osbuild/image-builder-cli/pull/86/files#r1923834932
If not closed it should follow upstream and use GOPROXY=https://proxy.golang.org,direct
- disabling the "gatekeeping" feature would mean if there is a malicious go module we would not get protection from the upstream go proxy (i.e. the default behavior allows the upstream to deny-list known malicious modules which we would disable by using "|" instead of ",").
I'm ok with |
96b15aa
to
63bafa7
Compare
I think its fine to set the GOPROXY in our CI but not in the user facing Makefile. On a fedora system this change will override the system default behavior related to the module loading (which can be inspected via |
Fully agree with this part especially (and the rest of the comment more generally). |
The default in our CI is "direct" which is not as stable as the more common `https://proxy.golang.org,direct`. This also moves the implementation to the Makefile to have it more central.
63bafa7
to
a5d5b85
Compare
please check the changed implementation
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.
Thank you!
Would it be possible to move go mod vendor
into rpm_spec_add_provides_bundle.sh
? Since it's a clear prerequisite for the generation process, it imho makes more sense to group these together.
Then we either don't need the makefile target at all, or we can just call it the same as the script: make rpm_spec_add_provides_bundle
(I have a bit of underscores vs. dashes dilemma here 😅 ).
Also, please make sure that the commit message, and the PR title match what the change is actually about. Thank you! ❤️
What's the status of this? Let's make a decision and either finish it or close it. |
The default in our CI is "direct" which is not as stable as the more common
https://proxy.golang.org,direct
.This also moves the implementation to the
Makefile
to have it more central.