golang / go

The Go programming language
https://go.dev
BSD 3-Clause "New" or "Revised" License
124.3k stars 17.7k forks source link

cmd/go: `go get -u` complains about import paths for vendored sources #11864

Closed jacobsa closed 9 years ago

jacobsa commented 9 years ago

I'm trying to fetch GoogleCloudPlatform/gcsfuse@0028b035ea0d3dfd2c081ea0139a207cca0c225d. I believe it's set up with the correct structure for the Go 1.5 vendor experiment. But:

% go version
go version devel +c09d284 Fri Jul 24 22:12:14 2015 +0000 linux/amd64

% rm -rf $GOPATH/src

% env | grep GO15
GO15VENDOREXPERIMENT=1

% go get -v -u github.com/googlecloudplatform/gcsfuse
github.com/googlecloudplatform/gcsfuse (download)
package github.com/googlecloudplatform/gcsfuse
        imports github.com/googlecloudplatform/gcsfuse/fs
        imports github.com/googlecloudplatform/gcsfuse/fs/inode
        imports github.com/googlecloudplatform/gcsfuse/gcsproxy
        imports github.com/googlecloudplatform/gcsfuse/lease
        imports github.com/googlecloudplatform/gcsfuse/vendor/github.com/jacobsa/fuse/fsutil
        imports github.com/googlecloudplatform/gcsfuse/vendor/github.com/jacobsa/fuse/fsutil: must be imported as github.com/jacobsa/fuse/fsutil
package github.com/googlecloudplatform/gcsfuse
        imports github.com/googlecloudplatform/gcsfuse/fs
        imports github.com/googlecloudplatform/gcsfuse/fs/inode
        imports github.com/googlecloudplatform/gcsfuse/gcsproxy
        imports github.com/googlecloudplatform/gcsfuse/lease
        imports github.com/googlecloudplatform/gcsfuse/vendor/github.com/jacobsa/syncutil
        imports github.com/googlecloudplatform/gcsfuse/vendor/github.com/jacobsa/syncutil: must be imported as github.com/jacobsa/syncutil
package github.com/googlecloudplatform/gcsfuse
        imports github.com/googlecloudplatform/gcsfuse/fs
        imports github.com/googlecloudplatform/gcsfuse/fs/inode
        imports github.com/googlecloudplatform/gcsfuse/gcsproxy
        imports github.com/googlecloudplatform/gcsfuse/lease
        imports github.com/googlecloudplatform/gcsfuse/vendor/golang.org/x/net/context
        imports github.com/googlecloudplatform/gcsfuse/vendor/golang.org/x/net/context: must be imported as golang.org/x/net/context
package github.com/googlecloudplatform/gcsfuse
        imports github.com/googlecloudplatform/gcsfuse/fs
        imports github.com/googlecloudplatform/gcsfuse/fs/inode
        imports github.com/googlecloudplatform/gcsfuse/gcsproxy
        imports github.com/googlecloudplatform/gcsfuse/mutable
        imports github.com/googlecloudplatform/gcsfuse/vendor/github.com/jacobsa/timeutil
        imports github.com/googlecloudplatform/gcsfuse/vendor/github.com/jacobsa/timeutil: must be imported as github.com/jacobsa/timeutil
[...]
gopherbot commented 9 years ago

CL https://golang.org/cl/12749 mentions this issue.

jacobsa commented 9 years ago

Thanks!