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

Closed
freeformz opened this issue Jul 10, 2016 · 0 comments
Labels
FrozenDueToAge Tools This label describes issues relating to any tools in the x/tools repository.
Milestone

Comments

@freeformz
Copy link

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.

@quentinmit quentinmit added this to the Unreleased milestone Jul 29, 2016
@gopherbot gopherbot added the Tools This label describes issues relating to any tools in the x/tools repository. label Sep 12, 2019
@golang golang locked and limited conversation to collaborators Jan 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge Tools This label describes issues relating to any tools in the x/tools repository.
Projects
None yet
Development

No branches or pull requests

3 participants