-
Notifications
You must be signed in to change notification settings - Fork 526
Closed
Description
Describe the bug
If I use go get $module@$branchname
, I get a 500 response from the Athens proxy.
Error Message
go get github.com/juju/errors@master: unexpected status (http://localhost:3000/github.com/juju/errors/@v/master.info): 500 Internal Server Error
To Reproduce
Steps to reproduce the behavior:
% cd /tmp
% mkdir m
% cd m
% go mod init example.com/foo
go: creating new go.mod: module example.com/foo
% cat main.go
package main
import _ "github.com/juju/errors"
func main() {
}
% cat go.mod
module example.com/foo
go 1.12
require github.com/juju/errors v0.0.0-20180806074554-22422dad46e1
% echo $GOPROXY
http://localhost:3000
% go get github.com/juju/errors@master
go: finding github.com/juju/errors master
go: finding github.com/juju master
go: finding github.com master
go get github.com/juju/errors@master: unexpected status (http://localhost:3000/github.com/juju/errors/@v/master.info): 500 Internal Server Error
Expected behavior
I would expect this command to fetch the latest commit from the master branch of github.com/juju/errors
.
Environment (please complete the following information):
- OS: Linux 64 bit
- Go version : go version devel +22dbc96d8a Tue Nov 27 09:26:16 2018 +0000 linux/amd64
- Buffalo Version : no sure how to find this out
- Proxy version : gomods/athens:v0.2.0
- Storage (fs/mongodb/s3 etc.) : fs
Docker logs:
I observed the following docker log messages when running the above script:
handler: GET /github.com/juju/errors/@v/list/ [200]
time="2018-11-27T12:37:57Z" level=error msg="not in cache" http-method=GET http-path=/github.com/juju/errors/@v/master.info http-url=/github.com/juju/errors/@v/master.info kind="Internal Server Error" module=github.com/juju/errors operation=download.VersionInfoHandler ops="[download.VersionInfoHandler pool.Info protocol.Info stash.Pool stasher.Stash stasher.fetchModule goGetFetcher.Fetch module.downloadModule]" version=master
handler: GET /github.com/juju/errors/@v/master.info [500]
time="2018-11-27T12:37:57Z" level=error msg="invalid version \"master\"" http-method=GET http-path=/github.com/juju/@v/master.info http-url=/github.com/juju/@v/master.info kind="Internal Server Error" module=github.com/juju operation=download.VersionInfoHandler ops="[download.VersionInfoHandler pool.Info protocol.Info stash.Pool stasher.Stash stasher.fetchModule goGetFetcher.Fetch module.downloadModule]" version=master
handler: GET /github.com/juju/@v/master.info [500]
time="2018-11-27T12:37:58Z" level=error msg="invalid version \"master\"" http-method=GET http-path=/github.com/@v/master.info http-url=/github.com/@v/master.info kind="Internal Server Error" module=github.com operation=download.VersionInfoHandler ops="[download.VersionInfoHandler pool.Info protocol.Info stash.Pool stasher.Stash stasher.fetchModule goGetFetcher.Fetch module.downloadModule]" version=master
handler: GET /github.com/@v/master.info [500]
Metadata
Metadata
Assignees
Labels
No labels