Strange "go get" behavior

1,191 views
Skip to first unread message

Vorn Mom

unread,
Jun 1, 2016, 3:58:55 PM6/1/16
to golang-nuts
I have a Go package hosted in a private git repo.  The go package consists of a parent package and two sub packages:


The behavior I'm seeing when I do a "go get" on a package that uses the above package is.

18:54:05.950 github.privaterepo.com/vmom/gizbus (download)
18:54:06.512 Parsing meta tags from https://github.privaterepo.com/vmom/gizbus/amqp?go-get=1 (status code 200)
18:54:06.512 package github.privaterepo.com/vmom/gizbus/amqp: /tmp/tmp.EMjkaI/src/github.privaterepo.com/vmom/gizbus/amqp exists but /tmp/tmp.EMjkaI/src/github.privaterepo.com/vmom/gizbus/amqp/.git does not - stale checkout?

Looks like it downloads the main package, then tries to download the sub packages, but complains that it can't find the .git folder (which is true since it's not at the root of the repo.)  Any ideas what could be wrong? Thanks!

Matt Harden

unread,
Jun 3, 2016, 10:26:58 PM6/3/16
to Vorn Mom, golang-nuts
I'm guessing your meta tag at https://github.privaterepo.com/vmom/gizbus/amqp?go-get=1 looks like this:


I think you need to remove /amqp from it, like this:

but keep it at the same location.

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

Vorn Mom

unread,
Jun 15, 2016, 5:38:48 PM6/15/16
to golang-nuts
Thanks, that was it!


On Wednesday, June 1, 2016 at 3:58:55 PM UTC-4, Vorn Mom wrote:
I have a Go package hosted in a private git repo.  The go package consists of a parent package and two sub packages:


The behavior I'm seeing when I do a "go get" on a package that uses the above package is.

18:54:05.950 github.privaterepo.com/vmom/gizbus (download)
18:54:06.512 Parsing meta tags from https://github.privaterepo.com/vmom/gizbus/amqp?go-get=1 (status code 200)
Reply all
Reply to author
Forward
0 new messages