You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and when I point the go tool at it, the following work:
go get -x go.mcquay.me/sm/fooa
go get -x go.mcquay.me/sm/foob
But this fails:
go get -x go.mcquay.me/sm/fooaa
package go.mcquay.me/sm/fooaa: unrecognized import path "go.mcquay.me/sm/fooaa" (parse https://go.mcquay.me/sm/fooaa?go-get=1: multiple meta tags match import path "go.mcquay.me/sm/fooaa")
What did you expect to see?
I'd expect that these are separate repositories and can be used to build and emit different pkg/bins. I'd expect the go tool to install it correctly.
What did you see instead?
go get failed with message:
package go.mcquay.me/sm/fooaa: unrecognized import path "go.mcquay.me/sm/fooaa" (parse https://go.mcquay.me/sm/fooaa?go-get=1: multiple meta tags match import path "go.mcquay.me/sm/fooaa")
I can appreciate that the go tool can't clone a repo into a folder that's already a repo. The check on:
the go tool currenty has a pathology where it mistakingly claims it
can't clone a repo because it checks prefix by bytes, not by splitting
the path on slash.
Once golang/go#15947 comes out (go1.8) then go
tools will be able to handle being provided with valid but overlapping
packages.
For now though we'll just return meta for the requested package.
Change-Id: Ie5026e7d5c1377ff7d2c2140b21f9b745af69764
Please answer these questions before submitting your issue. Thanks!
go version
)?go version go1.6.2 darwin/amd64
go env
)?I am hosting the following information over https:
and when I point the go tool at it, the following work:
But this fails:
I'd expect that these are separate repositories and can be used to build and emit different pkg/bins. I'd expect the go tool to install it correctly.
go get
failed with message:I can appreciate that the go tool can't clone a repo into a folder that's already a repo. The check on:
https://github.com/golang/go/blob/master/src/cmd/go/vcs.go#L782
seems a bit aggressive. Perhaps it just needs to be relaxed and test substrings on '/' boundaries?
The text was updated successfully, but these errors were encountered: