Skip to content

cmd/go: get fails to use ssh on non-standard port for private repos #36666

Closed
@Tatsujinichi

Description

@Tatsujinichi

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.WaitingForInfoIssue is not actionable because of missing required information, which needs to be provided.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions