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
If you go get -v github.com/pwaller/vendor-collision:
$ go get -v github.com/pwaller/vendor-collision
Fetching https://vendor.org/p/vendor/example.org/library?go-get=1
https fetch failed.
import "vendor.org/p/vendor/example.org/library": https fetch: Get https://vendor.org/p/vendor/example.org/library?go-get=1: read tcp 192.168.0.108:58977->69.172.201.208:443: read: connection reset by peer
package vendor.org/p/vendor/example.org/library: unrecognized import path "vendor.org/p/vendor/example.org/library"
The surprising thing here is that it tries to fetch packages from vendor.org even though they are already available in /vendor/.
For the purposes of this bug, the only feature of the repository that matters is that there is vendor-collision/main.go which imports vendor.org/p which lives at vendor-collision/vendor/vendor.org/p.
The text was updated successfully, but these errors were encountered:
The error message could be improved. However you are doing something illigal with the GO15VENDOREXPERIMENT on. The following import path should not contain the /vendor/ element.
@kardianos I think I wasn't clear enough on the purpose of this report. The bug happens regardless of the content of vendor.org/p, even if it does not have /vendor/ in it. The issue is that it is fetching from vendor.org at all.
I suppose I don't understand this bug report then. Could you provide a repo that contains valid import paths for the vendor experiment that is affected by this issue? I mean, to "fetch" from vendor.org it would need an http meta header to describe the location. If you mean find locally, it would need a valid import path.
GO15VENDOREXPERIMENT=1
Related, but separate: #12111
Over here, I have a demo package: https://github.com/pwaller/vendor-collision
If you
go get -v github.com/pwaller/vendor-collision
:The surprising thing here is that it tries to fetch packages from vendor.org even though they are already available in
/vendor/
.For the purposes of this bug, the only feature of the repository that matters is that there is
vendor-collision/main.go
which importsvendor.org/p
which lives atvendor-collision/vendor/vendor.org/p
.The text was updated successfully, but these errors were encountered: