This is kind of a design error in the go tool. The
bitbucket.org
syntax is a special case, really assumed to be public, and we explicit
ignore the .git suffix to avoid having the same package importable
under two different paths. Because there's no authentication in the
https request, bitbucket is rejecting the query about a private repo.
But we need to know the VCS type to do the initial checkout.
A workaround is to do the initial checkout yourself:
mkdir -p $GOPATH/src/
bitbucket.org/user/repo
git clone git://
bitbucket.org/user/repo $GOPATH/src/
bitbucket.org/user/repo
and then 'go get' will work. Sorry I don't have a better answer.
Russ