x/pkgsite/cmd/pkgsite: local pkgsite with -proxy doesn't use netrc auth to private GOPROXY #60299
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
pkgsite
Milestone
What did you do?
Attempted to use a .netrc file to provide credentials to pkgsite for use when fetching via a private GOPROXY.
The regular
go mod
commands are able to do this, so with a properly configured .netrc file the following succeeds:But attempting to view the documentation of github.heygears.company.com/org/repo via pkgsite:
Fails with 401 authentication errors as the internal/proxy/client.go code doesn't attempt to insert authentication headers, unlike cmd/go which does
What did you expect to see?
pkgsite should be able to use authentication against a private GOPROXY
What did you see instead?
pkgsite does not pass authentication headers to the http requests it makes to a private GOPROXY
The text was updated successfully, but these errors were encountered: