cmd/go: get fails to use ssh on non-standard port for private repos #36666
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
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.
The text was updated successfully, but these errors were encountered: