You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a module in Github, and erroneously tagged the wrong commit. I imported the module. Upon realizing the mistake, I then force-pushed over that tag to refer to a new commit. The Go module auto-download of the remote Github module still used the old tag's reference, even when the module was removed and reinstalled. The new tag's reference was not picked up, and I had to skip a version number to accommodate the change.
What did you expect to see?
Go modules auto-download should have pulled down the new commit for the given semantically versioned tag.
What did you see instead?
Go modules auto-downloaded the old tag that referred to a previous commit.
The text was updated successfully, but these errors were encountered:
you cannot move tags, right now you are getting the cached version but if you ever get the version from source it will complain about mismatched checksums
This is working as designed. The meaning of a version must be consistent over time, so you cannot reuse or repurpose existing tags with Go modules. However, as of Go 1.16 you will be able to retract unintended versions. (See https://tip.golang.org/doc/go1.16#go-command and #24031.)
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I created a module in Github, and erroneously tagged the wrong commit. I imported the module. Upon realizing the mistake, I then force-pushed over that tag to refer to a new commit. The Go module auto-download of the remote Github module still used the old tag's reference, even when the module was removed and reinstalled. The new tag's reference was not picked up, and I had to skip a version number to accommodate the change.
What did you expect to see?
Go modules auto-download should have pulled down the new commit for the given semantically versioned tag.
What did you see instead?
Go modules auto-downloaded the old tag that referred to a previous commit.
The text was updated successfully, but these errors were encountered: