[Proxy?] Problems with go get

I cannot seem to make go get work. Below is the typical verbose output. I believe it’s a proxy problem but have not yet solved it. Any suggestions would be greatly appreciated.

$ go get -v -u github.com/golang/lint/golint
github.com/golang/lint (download)
Fetching https://golang.org/x/tools/go/gcimporter?go-get=1
https fetch failed.
import “golang.org/x/tools/go/gcimporter”: https fetch: Get https://golang.org/x/tools/go/gcimporter?go-get=1: http: error connecting to proxy http://[username]:[password]@10.64.252.34:800%22;: dial tcp: unknown port tcp/800";
package golang.org/x/tools/go/gcimporter: unrecognized import path “golang.org/x/tools/go/gcimporter"
Fetching https://golang.org/x/tools/go/types?go-get=1
https fetch failed.
import “golang.org/x/tools/go/types”: https fetch: Get https://golang.org/x/tools/go/types?go-get=1: http: error connecting to proxy http://[username]:[password]@10.64.252.34:800%22;: dial tcp: unknown port tcp/800”;
package golang.org/x/tools/go/types: unrecognized import path “golang.org/x/tools/go/types

You have an extra %22; at the end of the proxy URL, which translates to a quote mark and semicolon so Go tries to use port 800"; which doesn’t work. Double check your proxy settings.

1 Like

Thanks. That was the problem. Silly that I missed it.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.