Getting a repository hosted at bitbucket.org using Windows 8

603 views
Skip to first unread message

Roberto García López

unread,
Jul 30, 2014, 1:22:34 PM7/30/14
to golan...@googlegroups.com
Hi there,

I'm trying to use "go get" to download a remote repository hosted at bitbucket.org in a PC using Windows 8. Here's the command line


(The repository is publicly available)

But I get the following error:

package bitbucket.org/vcrobe/privatetest.git: invalid version control suffix in bitbucket.org/ path

Can someone tell me the correct command to download the repository?

Thanks.

peterGo

unread,
Jul 30, 2014, 2:09:24 PM7/30/14
to golan...@googlegroups.com
Roberto,

C:\>go version
go version go1.3 windows/amd64
C:\>set GOPATH
GOPATH=C:\gopath
C:\>go get -v bitbucket.org/vcrobe/privatetest
bitbucket.org/vcrobe/privatetest (download)
bitbucket.org/vcrobe/publictest (download)
bitbucket.org/vcrobe/publictest
bitbucket.org/vcrobe/privatetest
C:\>

Peter

Henrik Johansson

unread,
Jul 30, 2014, 2:11:10 PM7/30/14
to Roberto García López, golang-nuts
Remove the ".git" ending of the path.

/ Henrik




--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Roberto García López

unread,
Jul 30, 2014, 2:52:31 PM7/30/14
to golan...@googlegroups.com
Hi peterGo,

I did it exactly as you suggested


And I get this new error:

package bitbucket.org/vcrobe/privatetest: Get https://api.bitbucket.org/1.0/repositories/vcrobe/privatetest: dial tcp: GetAddrInfoW: No such host is known.

I'm behind a firewall. Do I've to configure go to use it? If yes how?

Thanks for your quick response.

Roberto García López

unread,
Jul 30, 2014, 3:44:34 PM7/30/14
to golan...@googlegroups.com
Hi again,

I did the same test now with the project hosted at Github.com using the following command line and it worked as expected

go get -v github.com/vcrobe/privatetest

So the proxy is not the problem.

Why I'm getting this error when try it with bitbucket?


package bitbucket.org/vcrobe/privatetest: Get https://api.bitbucket.org/1.0/repositories/vcrobe/privatetest: dial tcp: GetAddrInfoW: No such host is known.

Thanks.

Daniel Skinner

unread,
Jul 30, 2014, 5:42:21 PM7/30/14
to Roberto García López, golang-nuts
I don't know what I'm talking about, but I wouldn't be so quick to dismiss proxy issues. In order for `go get` to work, it depends on the meta tags delivered to the client to point to the actual repo url. I inspected github webpage in browser but there are no meta tags so it must be doing some work upfront and determining if the GETVAR from `go` is present first to determine what it should do (i could only guess).

It's possible that bitbucket might be redirecting to its api subdomain and doing other stuff that doesn't agree with your proxy.

Do you have control over the firewall?


--
Reply all
Reply to author
Forward
0 new messages