Skip to content

x/website: FAQ on private git repos should mention GOPRIVATE #71797

@HouzuoGuo

Description

@HouzuoGuo

The failure message for go get to download a private repository says:

 exit status 128:
                fatal: could not read Username for 'https://github.com': terminal prompts disabled
        Confirm the import path was entered correctly.
        If this is a private repository, see https://golang.org/doc/faq#git_https for additional information.

The guidance at https://golang.org/doc/faq#git_https only mentions:

Git can be configured to authenticate over HTTPS or to use SSH in place of HTTPS. To authenticate over HTTPS, you can add a line to the $HOME/.netrc file that git consults ...

Which is insufficient, it is in fact also crucial set GOPRIVATE= environment variable to include the repository paths, or go get will be contacting proxy and sum DB and fail.

Please update golang.org/doc/faq#git_https and mention the mandatory usage of GOPRIVATE= in combination with the authentication trick there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues describing a change to documentation.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.website

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions