athens: Failing to go get package by revision
When I try to go get a package by its revision number then I get 500 Internal Server Error.
GOPROXY=http://127.0.0.1:3000 go get github.com/pkg/errors@c059e472caf75dbe73903f6521a20abac245b17f
go: finding github.com/pkg/errors c059e472caf75dbe73903f6521a20abac245b17f
go: finding github.com/pkg c059e472caf75dbe73903f6521a20abac245b17f
go: finding github.com c059e472caf75dbe73903f6521a20abac245b17f
go get github.com/pkg/errors@c059e472caf75dbe73903f6521a20abac245b17f: unexpected status (http://127.0.0.1:3000/github.com/pkg/errors/@v/c059e472caf75dbe73903f6521a20abac245b17f.info): 500 Internal Server Error
To Reproduce
GOPROXY=http://127.0.0.1:3000 go get github.com/pkg/errors@c059e472caf75dbe73903f6521a20abac245b17f
Expected behavior
Installation of the specified version of github.com/pkg/errors
Environment (please complete the following information):
- OS: mac os mojave 10.14
- Go version : go1.11 darwin/amd64
- Olympus or proxy version : latest from github
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 25 (25 by maintainers)
@marpio @fedepaol curious what you think about potential option no. 4 above? Also what’s the impact of this bug?
Edit: just noticed your open issue on the Go repo. If we have a workaround we should definitely add a TODO comment to remove the workaround once go fixes this.
Thanks for the feedback! I’ll go with the middleware since it will be easier to remove it once https://github.com/golang/go/issues/27947 gets fixed. Also the 3rd option would require passing the pseudo version from the go_get_fetcher/stasher, all the way up to the download protocol (to get it from the storage) which would make the code less readable.
I’ll take this one