cmd/go: credentials from .netrc are not applied to URLs containing an explicit port #37130
Labels
FrozenDueToAge
GoCommand
cmd/go
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
Run a go mod proxy on a custom port (i.e. https://myproxy.mydomain.com:4433).
Setup .netrc:
Note: the .netrc spec defines the
machine
property as themachine name
: https://www.gnu.org/software/inetutils/manual/html_node/The-_002enetrc-file.html.Set
GOPROXY
env variable:What did you expect to see?
Auth credentials passed in proxy requests.
What did you see instead?
No auth credentials passed in proxy requests.
Work around
Note: it is possible to get around this by adding the port to the
machine name
property in the .netrc file.CC: @bcmills
The text was updated successfully, but these errors were encountered: