x/tools/go/vcs: RepoRootForImportPath doesn't support private bitbucket repositories.
freeformz opened this issue · 0 comments
freeformz commented
Please answer these questions before submitting your issue. Thanks!
- What version of Go are you using (
go version)?
go1.6.2 - What operating system and processor architecture are you using (
go env)?
darwin - What did you do?
If possible, provide a recipe for reproducing the error.
vcs.RepoRootForImportPath("bitbucket.org/XXXx/privaterepo",true)- What did you expect to see?
The repo root.
- What did you see instead?
Errors with https://api.bitbucket.org/1.0/repositories/XXXx/privaterepo: 403 Forbidden
This is because it tries to ping w/o any auth info. This info can be provided via .netrc and/or git. go get doesn't have a problem fetching a private repo though.