{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/16333","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/16333/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/16333/comments","events_url":"https://api.github.com/repos/golang/go/issues/16333/events","html_url":"https://github.com/golang/go/issues/16333","id":165088355,"number":16333,"title":"go/build: regression in go 1.7rc1, cannot vendor golang.org/x/net/http2","user":{"login":"vanackere","id":800632,"avatar_url":"https://avatars.githubusercontent.com/u/800632?v=3","gravatar_id":"","url":"https://api.github.com/users/vanackere","html_url":"https://github.com/vanackere","followers_url":"https://api.github.com/users/vanackere/followers","following_url":"https://api.github.com/users/vanackere/following{/other_user}","gists_url":"https://api.github.com/users/vanackere/gists{/gist_id}","starred_url":"https://api.github.com/users/vanackere/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vanackere/subscriptions","organizations_url":"https://api.github.com/users/vanackere/orgs","repos_url":"https://api.github.com/users/vanackere/repos","events_url":"https://api.github.com/users/vanackere/events{/privacy}","received_events_url":"https://api.github.com/users/vanackere/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/31","html_url":"https://github.com/golang/go/milestones/Go1.7","labels_url":"https://api.github.com/repos/golang/go/milestones/31/labels","id":1414133,"number":31,"title":"Go1.7","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":5,"closed_issues":494,"state":"open","created_at":"2015-11-16T16:57:07Z","updated_at":"2016-07-12T19:32:48Z","due_on":"2016-07-31T07:00:00Z","closed_at":null},"comments":2,"created_at":"2016-07-12T14:03:15Z","updated_at":"2016-07-13T03:18:50Z","closed_at":null,"body":"Please answer these questions before submitting your issue. Thanks!\r\n\r\n1. What version of Go are you using (`go version`)?\r\n\r\ngo 1.7rc1\r\n\r\n2. What operating system and processor architecture are you using (`go env`)?\r\n```\r\nOARCH=\"amd64\"\r\nGOBIN=\"\"\r\nGOEXE=\"\"\r\nGOHOSTARCH=\"amd64\"\r\nGOHOSTOS=\"linux\"\r\nGOOS=\"linux\"\r\nGOPATH=\"/home/vince/dev\"\r\nGORACE=\"\"\r\nGOROOT=\"/home/vince/go\"\r\nGOTOOLDIR=\"/home/vince/go/pkg/tool/linux_amd64\"\r\nCC=\"gcc\"\r\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build541667125=/tmp/go-build -gno-record-gcc-switches\"\r\nCXX=\"g++\"\r\nCGO_ENABLED=\"1\"\r\n```\r\n\r\n3. What did you do?\r\n\r\nPut a copy of golang.org/x/net/http2 at $GOPATH/src/vendor/golang.org/x/net/http2\r\n\r\nTry to build the following program using go build :\r\n\r\n```go\r\npackage vendoring17\r\n\r\nimport _ \"golang.org/x/net/http2\"\r\n```\r\n\r\n4. What did you expect to see?\r\n\r\nEverything was working fine using go 1.6\r\n\r\n5. What did you see instead?\r\n\r\nWith go 1.7 I get :\r\n\r\npackage github.com/vanackere/bugs/vendoring17\r\n\timports golang.org/x/net/http2: use of vendored package not allowed\r\n\r\nThis bug appears at https://github.com/golang/go/commit/0104a31b8fbcbe52728a08867b26415d282c35d2 where golang.org/x/net/http2/hpack moves from internal to vendor\r\n\r\nFrom a first look it appears that (*Context) Import is confused by this change and assumes that vendor/golang.org/x/net/http2 is a package located in GOROOT. I don't have a proper fix for the moment (still looking into it) but I believe that this bug should be fixed for go 1.7.\r\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/232245015","html_url":"https://github.com/golang/go/issues/16333#issuecomment-232245015","issue_url":"https://api.github.com/repos/golang/go/issues/16333","id":232245015,"user":{"login":"ianlancetaylor","id":3194333,"avatar_url":"https://avatars.githubusercontent.com/u/3194333?v=3","gravatar_id":"","url":"https://api.github.com/users/ianlancetaylor","html_url":"https://github.com/ianlancetaylor","followers_url":"https://api.github.com/users/ianlancetaylor/followers","following_url":"https://api.github.com/users/ianlancetaylor/following{/other_user}","gists_url":"https://api.github.com/users/ianlancetaylor/gists{/gist_id}","starred_url":"https://api.github.com/users/ianlancetaylor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianlancetaylor/subscriptions","organizations_url":"https://api.github.com/users/ianlancetaylor/orgs","repos_url":"https://api.github.com/users/ianlancetaylor/repos","events_url":"https://api.github.com/users/ianlancetaylor/events{/privacy}","received_events_url":"https://api.github.com/users/ianlancetaylor/received_events","type":"User","site_admin":false},"created_at":"2016-07-13T03:18:50Z","updated_at":"2016-07-13T03:18:50Z","body":"As far as I can tell this only fails when the directory is precisely `$GOPATH/src/vendor/golang.org/x/net/http2`.  It does not fail if the vendor directory is not at top level.  And it does not fail if the vendor directory is something other than `golang.org/x/net/http2`."}}
{"actor":{"display_login":"ianlancetaylor"}}