-
-
Notifications
You must be signed in to change notification settings - Fork 930
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
fix: GOPROXY and dependency issues #1155
Conversation
Detects issues in which third party module proxies may differ in checksum behavior for broken/invalid packages. e.g. $ go clean -modcache $ GOPROXY=gocenter.io go get code.gitea.io/gitea@v1.10.0-dev.0.20190711052757-a0820e09fbf7 vs. $ go clean -modcache $ GOPROXY=proxy.golang.org go get code.gitea.io/gitea@v1.10.0-dev.0.20190711052757-a0820e09fbf7
Mirrors a similar pr made to godownloader. |
Codecov Report
@@ Coverage Diff @@
## master #1155 +/- ##
=======================================
Coverage 82.71% 82.71%
=======================================
Files 58 58
Lines 3257 3257
=======================================
Hits 2694 2694
Misses 481 481
Partials 82 82 Continue to review full report at Codecov.
|
thanks :) |
@tpounds GoCenter does validation before a go module version is served to the users. As part of the validation, a When this module was included in GoCenter, there was no Go 1.13 and a Since we honor immutability and availability requirement, GoCenter will continue to serve this module version. There might be bugs in Go 1.12 but atleast that was the actual behavior in Go 1.12 which is what we honor. |
@ankushchadha Thanks for the info! I didn't investigate too deeply but figured it had to do with slight differences between how Go 1.12 and 1.13 handled modules. Unfortunately, this change is somewhat necessary since lots of folks will be transparently migrating to the default proxy when they upgrade to Go 1.13. |
default is
and sometimes https://proxy.golang.org is unavailable |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Updates Makefile to use official GOPROXY (proxy.golang.org) to detects issues in which third party module proxies differ in checksum behavior for broken/invalid packages. In this case the
proxy.golang.org
less permissive thangocenter.io
.The issue can easily be reproduced with the following commands:
Works:
Broken: