proxy.golang.org: issues with go get and modules after repository re-name #42433
Labels
FrozenDueToAge
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
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?
Renamed the (previously go.mod containing) repository github.com/4kills/libdeflate -> github.com/4kills/go-libdeflate
Try to import this project https://github.com/4kills/go-libdeflate
Sample program:
go mod init
go get
What did you expect to see?
Successfully go-getting the latest version of the repository (v2.0.4)
What did you see instead?
Assumption:
See how go get tries to fetch v1.3.0 instead of v2.0.4? I guess this is due to the renaming of the repository as well as it having been a go module and thus being cached in proxy.golang.org with the wrong name!
As stated by https://proxy.golang.org/ the caches of old versions won't ever be removed. Still this is a very annoying issue when renaming repos
Workaround:
This workaround works as it fetches the latest version from the actual source repo instead of the proxy
The text was updated successfully, but these errors were encountered: