Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
x/tools/go/vcs: refresh from cmd/go #19362
changed the title
golang.org/x/tools/go/vcs does not support private repos which require Authorization
Mar 2, 2017
How is that hacky if the user who created the .netrc file (
Another (not even mutually exclusive) option would be to parse
It's hacky because it's not the go command's job to recreate the functionality of other tools. We're not reading .gitconfig and we're not reading .netrc, and that's good.
That said, I think the go command itself handles bitbucketVCS just fine - for an auth failure it falls back to invoking git/hg directly, which is the perfect way to respect .netrc without parsing .netrc - and the x/tools/go/vcs copy is just out of date. Perhaps it is enough for someone to refresh the x/tools copy.