Closed
Description
What version of Go are you using (go version
)?
go version go1.13.6 linux/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env
)?
4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
What did you do?
private gitlab repo, accessible only through ssh, via non-standard port
go get will continue to try to use port 22
Because you can not specify a port anywhere besides the .gitconfig using url insteadOf
There is no nice way around this.
I tried using the port in GOPRIVATE envvar, but no good.
I expect that "go get" would allow me to specifying a port. Right now that is not allowed.