-
Notifications
You must be signed in to change notification settings - Fork 18k
sum.golang.org: improve pseudo version regexp #33226
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
Comments
The error message here is correct: the repository at (This is the error message that results from the fix for #32695.) |
As far as I can tell this is the fix to #32695 working as designed. Is there a specific detail that led you to expect different behavior from the checksum database? (We don't in general provide checksums for modules that cannot be retrieved using |
Thanks @bcmills . |
I have met with this trouble after updating the go version from I have a project, and module ipdb
require (
github.com/xgfone/gconf v3.7.0+incompatible
github.com/xgfone/klog v1.10.0
github.com/xgfone/ship v1.8.0
) But there is no When using $ go version
go version go1.12.7 windows/amd64
$ ls go.*
go.mod
$ go mod tidy
$ ls go.*
go.mod go.sum For $ go version
go version go1.13 windows/amd64
$ ls go.*
go.mod
$ GOPROXY=https://goproxy.io,direct go mod tidy
verifying github.com/xgfone/[email protected]+incompatible/go.mod: github.com/xgfone/[email protected]+incompatible/go.mod: malformed record data
$ GOPROXY=https://goproxy.cn,direct go mod tidy
verifying github.com/xgfone/[email protected]+incompatible/go.mod: github.com/xgfone/[email protected]+incompatible/go.mod: reading https://goproxy.cn/sumdb/sum.golang.org/lookup/github.com/xgfone/[email protected]+incompatible: 404 Not Found Then, I ran $ go version
go version go1.13 windows/amd64
$ GONOSUMDB="*" GOPROXY=https://goproxy.io go mod tidy
$ echo $?
0
$ ls go.*
go.mod go.sum Last, I ran $ ls go.*
go.mod go.sum
$ GOPROXY=https://goproxy.io,direct go mod tidy
$ echo $?
0 31543 says:
I agree with that. @oiooj How had I better do?
|
I am guessing the checksum verification occurs only when the module is downloaded from the Internet to the module cache for the first time. So, once it lands in the local disk (by skipping the sumdb check), go command simply accepts it if the checksum in go.sum and the checksum of the copy in the cache matches. @xgfone Is it not an option to release the latest version that follows the import versioning rule and ask users to pick the new version with the same import path? Currently GO111MODULE=on GOPROXY=direct go list -m -json --versions github.com/xgfone/gconf { "Path": "github.com/xgfone/gconf", "Version": "v1.5.0", "Versions": [ "v1.0.0", "v1.0.1", "v1.2.0", "v1.2.1", "v1.3.0", "v1.4.0", "v1.5.0" ], "Time": "2019-04-24T08:12:22Z" } Or if your intention was to stick with v3, yes, I am sorry it needs to fix BTW it's strange to see |
@hyangah Yes, you are right. Tks. It may be better to declare the module from |
link: https://sum.golang.org/lookup/github.com/xgfone/[email protected]+incompatible
What did you expect to see?
something like this:
What did you see instead?
/cc @hyangah
The text was updated successfully, but these errors were encountered: