Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/tools/go/vcs: RepoRootForImportPath doesn't support private bitbucket repositories. #16315

Open
freeformz opened this Issue Jul 10, 2016 · 0 comments

Comments

Projects
None yet
2 participants
@freeformz
Copy link
Contributor

freeformz commented Jul 10, 2016

Please answer these questions before submitting your issue. Thanks!

  1. What version of Go are you using (go version)?
    go1.6.2
  2. What operating system and processor architecture are you using (go env)?
    darwin
  3. What did you do?
    If possible, provide a recipe for reproducing the error.
vcs.RepoRootForImportPath("bitbucket.org/XXXx/privaterepo",true)
  1. What did you expect to see?

The repo root.

  1. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.