-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
proxy.golang.org: incorrect ZIP for github.com/aws/[email protected] #45517
Comments
Looking at the proxy, it appears 1.27.0 was somehow "created" at the same time as 1.26.0 was: $ curl -L "https://proxy.golang.org/github.com/aws/jsii-runtime-go/@v/v1.27.0.info"
{"Version":"v1.27.0","Time":"2021-03-22T15:53:25Z"}%
$ curl -L "https://proxy.golang.org/github.com/aws/jsii-runtime-go/@v/v1.26.0.info"
{"Version":"v1.26.0","Time":"2021-03-22T15:53:25Z"}% The commit for 1.26.0 is aws/jsii-runtime-go@ec37187 (March 22nd). The ZIP files do however differ (they have different checksums, at least). |
It is not possible to invalidate an existing version in the Checksum Database, as it is an immutable log by design. Concretely, your best option is to publish a v1.27.1, and optionally retract v1.27.0. To understand how this happened, I recommend looking at the GitHub events API, which will show whether a v1.27.0 tag was temporarily created and then deleted. |
Alright - thanks for pointing me to the events API... It explains... everything. Looks like we're on to actually retract this version and publish another one! |
It was manually created, then deleted, then re-created and now does not work properly as the proxy.golang.org has incorrect artifacts in, and sum.golang.org has the incorrect checksum, and both of these are designed to be immutable (as a security measure). Fixing this requires retracting 1.27.0 and releasing a new version (e.g: 1.27.1). Related: golang/go#45517 The original issue was found & reported by @cristim Fixes #2775 --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yep.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Attempt to
go mod download github.com/aws/jsii/[email protected]
whenGOPROXY=direct
.What did you expect to see?
Expected to obtain the same data from
proxy.golang.org
anddirect
.What did you see instead?
This is because the ZIP file cached (and hashed) at
proxy.golang.org
for this version is actually the code from version1.26.0
.At this stage I am not sure how this happened. We published
github.com/aws/[email protected]
about 6 days ago to GitHub and have not done any force-push or re-publish on that as far as I know. I also don't know that the tag has been moved or anything.The cached entry on the proxy should be invalidated and re-fetched? If there is any indications to how this happened, and it is because of how we did things - please educate us!
The text was updated successfully, but these errors were encountered: