{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/11659","labels_url":"https://api.github.com/repos/golang/go/issues/11659/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/11659/comments","events_url":"https://api.github.com/repos/golang/go/issues/11659/events","html_url":"https://github.com/golang/go/issues/11659","id":94365211,"number":11659,"title":"cmd/go: exclude vendor directories from wildcard matches?","user":{"login":"freeformz","id":103,"avatar_url":"https://avatars.githubusercontent.com/u/103?v=3","gravatar_id":"","url":"https://api.github.com/users/freeformz","html_url":"https://github.com/freeformz","followers_url":"https://api.github.com/users/freeformz/followers","following_url":"https://api.github.com/users/freeformz/following{/other_user}","gists_url":"https://api.github.com/users/freeformz/gists{/gist_id}","starred_url":"https://api.github.com/users/freeformz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freeformz/subscriptions","organizations_url":"https://api.github.com/users/freeformz/orgs","repos_url":"https://api.github.com/users/freeformz/repos","events_url":"https://api.github.com/users/freeformz/events{/privacy}","received_events_url":"https://api.github.com/users/freeformz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"rsc","id":104030,"avatar_url":"https://avatars.githubusercontent.com/u/104030?v=3","gravatar_id":"","url":"https://api.github.com/users/rsc","html_url":"https://github.com/rsc","followers_url":"https://api.github.com/users/rsc/followers","following_url":"https://api.github.com/users/rsc/following{/other_user}","gists_url":"https://api.github.com/users/rsc/gists{/gist_id}","starred_url":"https://api.github.com/users/rsc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rsc/subscriptions","organizations_url":"https://api.github.com/users/rsc/orgs","repos_url":"https://api.github.com/users/rsc/repos","events_url":"https://api.github.com/users/rsc/events{/privacy}","received_events_url":"https://api.github.com/users/rsc/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/1","html_url":"https://github.com/golang/go/milestones/Go1.5","labels_url":"https://api.github.com/repos/golang/go/milestones/1/labels","id":905105,"number":1,"title":"Go1.5","description":"","creator":{"login":"bradfitz","id":2621,"avatar_url":"https://avatars.githubusercontent.com/u/2621?v=3","gravatar_id":"","url":"https://api.github.com/users/bradfitz","html_url":"https://github.com/bradfitz","followers_url":"https://api.github.com/users/bradfitz/followers","following_url":"https://api.github.com/users/bradfitz/following{/other_user}","gists_url":"https://api.github.com/users/bradfitz/gists{/gist_id}","starred_url":"https://api.github.com/users/bradfitz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradfitz/subscriptions","organizations_url":"https://api.github.com/users/bradfitz/orgs","repos_url":"https://api.github.com/users/bradfitz/repos","events_url":"https://api.github.com/users/bradfitz/events{/privacy}","received_events_url":"https://api.github.com/users/bradfitz/received_events","type":"User","site_admin":false},"open_issues":97,"closed_issues":943,"state":"open","created_at":"2014-12-16T02:26:41Z","updated_at":"2015-07-20T03:49:11Z","due_on":"2015-07-31T04:00:00Z","closed_at":null},"comments":16,"created_at":"2015-07-10T18:32:38Z","updated_at":"2015-07-20T13:45:44Z","closed_at":null,"body":"1. What version of Go are you using (go version)? What operating system and processor architecture are you using?\r\n\r\ngo version go1.5beta1 darwin/amd64\r\n\r\n2. What did you do?\r\n\r\nusing this repo/branch as a test of vendor/: https://github.com/heroku/log-shuttle/tree/vendor2\r\n\r\nGO15VENDOREXPERIMENT=1 go install -v ./...\r\n\r\nWhat did you expect to see?\r\n\r\n```term\r\nGO15VENDOREXPERIMENT=1 go install -v ./...\r\ngithub.com/heroku/log-shuttle/vendor/github.com/pebbe/util\r\ngithub.com/heroku/log-shuttle/vendor/github.com/rcrowley/go-metrics\r\ngithub.com/heroku/log-shuttle/vendor/github.com/heroku/slog\r\ngithub.com/heroku/log-shuttle/vendor/github.com/bmizerany/aws4\r\ngithub.com/heroku/log-shuttle/vendor/github.com/nu7hatch/gouuid\r\ngithub.com/heroku/log-shuttle\r\ngithub.com/heroku/log-shuttle/cmd/log-shuttle\r\n```\r\n\r\nWhat did you see instead?\r\n\r\n```term\r\nGO15VENDOREXPERIMENT=1 go install -v ./...\r\ngithub.com/heroku/log-shuttle/vendor/github.com/nu7hatch/gouuid\r\ngithub.com/heroku/log-shuttle/vendor/github.com/bmizerany/aws4\r\ngithub.com/heroku/log-shuttle/vendor/github.com/rcrowley/go-metrics\r\ngithub.com/heroku/log-shuttle/vendor/github.com/heroku/slog\r\ngithub.com/heroku/log-shuttle/vendor/github.com/pebbe/util\r\ngithub.com/influxdb/influxdb/influxql\r\ngithub.com/heroku/log-shuttle/vendor/github.com/bmizerany/aws4/dydb\r\ngithub.com/boltdb/bolt\r\ngithub.com/gogo/protobuf/proto\r\ngithub.com/heroku/log-shuttle/vendor/github.com/pebbe/util/isatty\r\ngithub.com/heroku/log-shuttle\r\ngithub.com/heroku/log-shuttle/cmd/log-shuttle\r\ngithub.com/heroku/log-shuttle/vendor/github.com/rcrowley/go-metrics/cmd/metrics-bench\r\ngithub.com/heroku/log-shuttle/vendor/github.com/rcrowley/go-metrics/cmd/metrics-example\r\ngithub.com/armon/go-metrics\r\ngithub.com/hashicorp/go-msgpack/codec\r\ngithub.com/influxdb/influxdb/meta/internal\r\ngithub.com/influxdb/influxdb/toml\r\ngolang.org/x/crypto/blowfish\r\ngithub.com/influxdb/influxdb/snapshot\r\ngolang.org/x/crypto/bcrypt\r\ngithub.com/golang/protobuf/proto\r\ngithub.com/heroku/log-shuttle/vendor/github.com/rcrowley/go-metrics/librato\r\ngithub.com/hashicorp/raft\r\ngithub.com/stathat/go\r\ngithub.com/heroku/log-shuttle/vendor/github.com/rcrowley/go-metrics/stathat\r\ngithub.com/influxdb/influxdb/tsdb/internal\r\ngithub.com/hashicorp/raft-boltdb\r\ngithub.com/influxdb/influxdb/meta\r\ngithub.com/influxdb/influxdb/tsdb\r\ngithub.com/influxdb/influxdb/client\r\ngithub.com/heroku/log-shuttle/vendor/github.com/rcrowley/go-metrics/influxdb\r\n# github.com/heroku/log-shuttle/vendor/github.com/rcrowley/go-metrics/influxdb\r\nvendor/github.com/rcrowley/go-metrics/influxdb/influxdb.go:19: undefined: client.ClientConfig\r\nvendor/github.com/rcrowley/go-metrics/influxdb/influxdb.go:38: undefined: client.Series\r\nvendor/github.com/rcrowley/go-metrics/influxdb/influxdb.go:44: undefined: client.Series\r\nvendor/github.com/rcrowley/go-metrics/influxdb/influxdb.go:52: undefined: client.Series\r\nvendor/github.com/rcrowley/go-metrics/influxdb/influxdb.go:60: undefined: client.Series\r\nvendor/github.com/rcrowley/go-metrics/influxdb/influxdb.go:70: undefined: client.Series\r\nvendor/github.com/rcrowley/go-metrics/influxdb/influxdb.go:82: undefined: client.Series\r\nvendor/github.com/rcrowley/go-metrics/influxdb/influxdb.go:93: undefined: client.Series\r\nvendor/github.com/rcrowley/go-metrics/influxdb/influxdb.go:106: client.WriteSeries undefined (type *client.Client has no field or method WriteSeries)\r\n```\r\n\r\nI expected go to skip un-needed stuff (non imported packages) in the vendor/ directory. Perhaps this is a problem with my expectations, but it was a surprise. "},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/122890155","html_url":"https://github.com/golang/go/issues/11659#issuecomment-122890155","issue_url":"https://api.github.com/repos/golang/go/issues/11659","id":122890155,"user":{"login":"kardianos","id":755121,"avatar_url":"https://avatars.githubusercontent.com/u/755121?v=3","gravatar_id":"","url":"https://api.github.com/users/kardianos","html_url":"https://github.com/kardianos","followers_url":"https://api.github.com/users/kardianos/followers","following_url":"https://api.github.com/users/kardianos/following{/other_user}","gists_url":"https://api.github.com/users/kardianos/gists{/gist_id}","starred_url":"https://api.github.com/users/kardianos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kardianos/subscriptions","organizations_url":"https://api.github.com/users/kardianos/orgs","repos_url":"https://api.github.com/users/kardianos/repos","events_url":"https://api.github.com/users/kardianos/events{/privacy}","received_events_url":"https://api.github.com/users/kardianos/received_events","type":"User","site_admin":false},"created_at":"2015-07-20T13:45:44Z","updated_at":"2015-07-20T13:45:44Z","body":"@dpiddy Of note, I've had at least one person explicitly want to vendor \"main\" packages. What the kardianos/vendor tool does it to categorize packages by a \"status\":\r\n\r\nMissing (packages referenced but not found)\r\nStandard (in standard library)\r\nLocal (package is under \"project\" and not rewritten or in vendor dir)\r\nExternal (package is outside of \"project\" but referenced)\r\nInternal (package is rewritten under \"internal\" but still a vendor package)\r\nUnused (package is rewritten under \"internal\" or in vendor folder but unused)\r\nProgram (package is a \"main\" package but rewritten or in vendor folder)\r\nVendor (package is in vendor folder)\r\n\r\nThese are two overlapping issues I hope to address soon (location and status), but that's the general idea. Then my tool can work on package status rather then just paths. For instance, if vendor added an install command, you could run \"vendor install -status local\".\r\n\r\nI'm not convinced that adding a \"status\" concept to the go tool would ever be a desirable thing. \"go\" already supports \"std\". The syntax \"go install ./...!local\" could be interesting I think.\r\n"}}