{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/11717","labels_url":"https://api.github.com/repos/golang/go/issues/11717/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/11717/comments","events_url":"https://api.github.com/repos/golang/go/issues/11717/events","html_url":"https://github.com/golang/go/issues/11717","id":95062141,"number":11717,"title":"cmd/go: go get -t ignores vendor folder","user":{"login":"azylman","id":790102,"avatar_url":"https://avatars.githubusercontent.com/u/790102?v=3","gravatar_id":"","url":"https://api.github.com/users/azylman","html_url":"https://github.com/azylman","followers_url":"https://api.github.com/users/azylman/followers","following_url":"https://api.github.com/users/azylman/following{/other_user}","gists_url":"https://api.github.com/users/azylman/gists{/gist_id}","starred_url":"https://api.github.com/users/azylman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azylman/subscriptions","organizations_url":"https://api.github.com/users/azylman/orgs","repos_url":"https://api.github.com/users/azylman/repos","events_url":"https://api.github.com/users/azylman/events{/privacy}","received_events_url":"https://api.github.com/users/azylman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-14T23:03:15Z","updated_at":"2015-07-14T23:13:02Z","closed_at":null,"body":"Version of Go:\r\ngo version devel +b6ead9f Tue Jul 7 21:53:11 2015 +0000 linux/amd64\r\n\r\nOS and architecture:\r\nlinux/amd64 (ubuntu 14.04)\r\n\r\nWhat did I do:\r\nRan `go get -t` with vendoring turned on, expected it to only try to download dependencies that didn't exist, like `go get`\r\n\r\nWhat did I see instead:\r\nIt tried to download everything, including dependencies that already existed in the `vendor/` folder\r\n\r\nReproducing:\r\n\r\nProject hierarchy (located in `$GOPATH/src/github.com/azylman/demo`):\r\n\r\n```\r\nmain.go\r\nmain_test.go\r\nvendor/\r\n  example.org/\r\n    thing/\r\n      thing.go\r\n```\r\n\r\nFiles:\r\n```go\r\n# main.go\r\npackage main\r\n\r\nimport (\r\n\t\"fmt\"\r\n\r\n\t\"example.org/thing\"\r\n)\r\n\r\nfunc main() {\r\n\tfmt.Println(thing.One, thing.Two)\r\n}\r\n```\r\n\r\n```go\r\n# main_test.go\r\npackage main\r\n\r\nimport (\r\n\t\"fmt\"\r\n\t\"testing\"\r\n\r\n\t\"example.org/thing\"\r\n)\r\n\r\nfunc TestNothing(t *testing.T) {\r\n\tfmt.Println(thing.One)\r\n}\r\n```\r\n\r\n```go\r\n# vendor/example.org/thing/thing.go\r\npackage thing\r\n\r\nconst (\r\n\tOne = iota + 1\r\n\tTwo\r\n)\r\n```\r\n\r\nOutput:\r\n```shell\r\n$ export GO15VENDOREXPERIMENT=1\r\n$ go run main.go\r\n1 2\r\n$ go test\r\n1\r\nPASS\r\nok  \tgithub.com/azylman/demo\t0.006s\r\n$ go get\r\n$ go get -t\r\npackage example.org/thing: unrecognized import path \"example.org/thing\"\r\n```"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/121421758","html_url":"https://github.com/golang/go/issues/11717#issuecomment-121421758","issue_url":"https://api.github.com/repos/golang/go/issues/11717","id":121421758,"user":{"login":"adg","id":8446613,"avatar_url":"https://avatars.githubusercontent.com/u/8446613?v=3","gravatar_id":"","url":"https://api.github.com/users/adg","html_url":"https://github.com/adg","followers_url":"https://api.github.com/users/adg/followers","following_url":"https://api.github.com/users/adg/following{/other_user}","gists_url":"https://api.github.com/users/adg/gists{/gist_id}","starred_url":"https://api.github.com/users/adg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adg/subscriptions","organizations_url":"https://api.github.com/users/adg/orgs","repos_url":"https://api.github.com/users/adg/repos","events_url":"https://api.github.com/users/adg/events{/privacy}","received_events_url":"https://api.github.com/users/adg/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T23:13:02Z","updated_at":"2015-07-14T23:13:02Z","body":"cc @rsc\r\n\r\nNot sure if this was fixed by a [recent change](https://go-review.googlesource.com/#/c/12192/1) (probably not). "}}