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
When serving modules through a proxy (toy code below using 1 module served via file://), the go command seems to be making requests with a mangled URL (e.g. capital letters get weird).
If possible, provide a recipe for reproducing the error.
First, showing nothing bad happens if we use no proxy:
[k9 test] $ export GO111MODULE=on
[k9 test] $ go mod init
go: creating new go.mod: module github.com/shoenig/test
[k9 test] $ go mod edit -require github.com/BurntSushi/[email protected]
[k9 test] $ go build
go: finding github.com/BurntSushi/toml v0.0.0-20170626110600-a368813c5e64
Now, we set GOPROXY to a custom value, it does not matter what the value is.
[k9 test] $ export GOPROXY=file:///dev/null
[k9 test] $ go build
go: finding github.com/BurntSushi/toml v0.0.0-20170626110600-a368813c5e64
go: github.com/BurntSushi/[email protected]: open /dev/null/github.com/!burnt!sushi/toml/@v/v0.0.0-20170626110600-a368813c5e64.info: not a directory
go: error loading module requirements
Notice that go is making a request for github.com/!burnt!sushi/toml instead of github.com/BurntSushi/toml.
The text was updated successfully, but these errors were encountered:
To avoid problems when serving from case-sensitive file systems, the <module> and <version> elements are case-encoded, replacing every uppercase letter with an exclamation mark followed by the corresponding lower-case letter: github.com/Azure encodes as github.com/!azure.
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?What did you do?
When serving modules through a proxy (toy code below using 1 module served via file://), the go command seems to be making requests with a mangled URL (e.g. capital letters get weird).
If possible, provide a recipe for reproducing the error.
First, showing nothing bad happens if we use no proxy:
Now, we set GOPROXY to a custom value, it does not matter what the value is.
Notice that
go
is making a request forgithub.1485827954.workers.dev/!burnt!sushi/toml
instead ofgithub.1485827954.workers.dev/BurntSushi/toml
.The text was updated successfully, but these errors were encountered: