{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/16775","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/16775/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/16775/comments","events_url":"https://api.github.com/repos/golang/go/issues/16775/events","html_url":"https://github.com/golang/go/issues/16775","id":171767542,"number":16775,"title":"go vet panic","user":{"login":"ghaering","id":907541,"avatar_url":"https://avatars.githubusercontent.com/u/907541?v=3","gravatar_id":"","url":"https://api.github.com/users/ghaering","html_url":"https://github.com/ghaering","followers_url":"https://api.github.com/users/ghaering/followers","following_url":"https://api.github.com/users/ghaering/following{/other_user}","gists_url":"https://api.github.com/users/ghaering/gists{/gist_id}","starred_url":"https://api.github.com/users/ghaering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghaering/subscriptions","organizations_url":"https://api.github.com/users/ghaering/orgs","repos_url":"https://api.github.com/users/ghaering/repos","events_url":"https://api.github.com/users/ghaering/events{/privacy}","received_events_url":"https://api.github.com/users/ghaering/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-17T21:42:09Z","updated_at":"2016-08-17T21:45:52Z","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 version go1.7 linux/amd64\r\n\r\n2. What operating system and processor architecture are you using (`go env`)?\r\n\r\nArch Linux packaged go:\r\nGOARCH=\"amd64\"\r\nGOBIN=\"\"\r\nGOEXE=\"\"\r\nGOHOSTARCH=\"amd64\"\r\nGOHOSTOS=\"linux\"\r\nGOOS=\"linux\"\r\nGOPATH=\"/home/gerhard/\"\r\nGORACE=\"\"\r\nGOROOT=\"/usr/lib/go\"\r\nGOTOOLDIR=\"/usr/lib/go/pkg/tool/linux_amd64\"\r\nCC=\"gcc\"\r\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build137499190=/tmp/go-build -gno-record-gcc-switches\"\r\nCXX=\"g++\"\r\nCGO_ENABLED=\"1\"\r\n\r\n3. What did you do?\r\n\r\nI will attach the files to reproduce the panic in an attachment. They include a third-party package \"github.com/stretchr/testify/assert\".\r\n\r\n4. What did you expect to see?\r\n\r\ngo tool vet not panicking.\r\n\r\n5. What did you see instead?\r\n\r\n    $ go tool vet -all ./xx/util_test.go ./xx/util.go \r\n    panic: inconsistent import:\r\n    \tvar time.UTC *time.Location\r\n    previously imported as:\r\n    \tvar UTC *time.Location\r\n     [recovered]\r\n    \tpanic: inconsistent import:\r\n    \tvar time.UTC *time.Location\r\n    previously imported as:\r\n    \tvar UTC *time.Location\r\n\r\n    goroutine 1 [running]:\r\n    panic(0x674b20, 0xc4201bf600)\r\n    \t/usr/lib/go/src/runtime/panic.go:500 +0x1a1\r\n    go/types.(*Checker).handleBailout(0xc4200ba1c0, 0xc4200cd8e8)\r\n    \t/usr/lib/go/src/go/types/check.go:213 +0xae\r\n    panic(0x674b20, 0xc4201bf600)\r\n    \t/usr/lib/go/src/runtime/panic.go:458 +0x243\r\n    go/internal/gcimporter.(*importer).declare(0xc4201c2b60, 0x7f64a0, 0xc42025c5f0)\r\n    \t/usr/lib/go/src/go/internal/gcimporter/bimport.go:175 +0x17c\r\n    go/internal/gcimporter.(*importer).obj(0xc4201c2b60, 0xfffffffffffffffc)\r\n    \t/usr/lib/go/src/go/internal/gcimporter/bimport.go:195 +0x1b4\r\n    go/internal/gcimporter.BImportData(0xc420013020, 0xc420206000, 0x39d3a, 0x3fe00, 0xc42000fa51, 0x4, 0x0, 0x4, 0x10, 0x10)\r\n    \t/usr/lib/go/src/go/internal/gcimporter/bimport.go:88 +0x390\r\n    go/internal/gcimporter.Import(0xc420013020, 0xc42000fa51, 0x4, 0x7ffe150147af, 0x4, 0xc420159db0, 0x0, 0x0)\r\n    \t/usr/lib/go/src/go/internal/gcimporter/gcimporter.go:166 +0x551\r\n    go/importer.gcimports.ImportFrom(0xc420013020, 0xc42000fa51, 0x4, 0x7ffe150147af, 0x4, 0x0, 0x1, 0x2, 0x0)\r\n    \t/usr/lib/go/src/go/importer/importer.go:70 +0x67\r\n    go/types.(*Checker).collectObjects(0xc4200ba1c0)\r\n    \t/usr/lib/go/src/go/types/resolver.go:191 +0x826\r\n    go/types.(*Checker).checkFiles(0xc4200ba1c0, 0xc42000fa80, 0x2, 0x2, 0x0, 0x0)\r\n    \t/usr/lib/go/src/go/types/check.go:225 +0xaa\r\n    go/types.(*Checker).Files(0xc4200ba1c0, 0xc42000fa80, 0x2, 0x2, 0xc420156c90, 0xc4200cd960)\r\n    \t/usr/lib/go/src/go/types/check.go:218 +0x49\r\n    go/types.(*Config).Check(0xc42000b340, 0xc42000f990, 0x4, 0xc42000b200, 0xc42000fa80, 0x2, 0x2, 0xc420159680, 0x10, 0xc4200001a0, ...)\r\n    \t/usr/lib/go/src/go/types/api.go:344 +0x1a3\r\n    main.(*Package).check(0xc4200168a0, 0xc42000b200, 0xc42000fa80, 0x2, 0x2, 0xc42000fa90, 0x1)\r\n    \t/usr/lib/go/src/cmd/vet/types.go:76 +0x370\r\n    main.doPackage(0x6cf324, 0x1, 0xc42000a220, 0x2, 0x2, 0x0, 0x1)\r\n    \t/usr/lib/go/src/cmd/vet/main.go:336 +0x999\r\n    main.main()\r\n    \t/usr/lib/go/src/cmd/vet/main.go:244 +0x345\r\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/240559167","html_url":"https://github.com/golang/go/issues/16775#issuecomment-240559167","issue_url":"https://api.github.com/repos/golang/go/issues/16775","id":240559167,"user":{"login":"ghaering","id":907541,"avatar_url":"https://avatars.githubusercontent.com/u/907541?v=3","gravatar_id":"","url":"https://api.github.com/users/ghaering","html_url":"https://github.com/ghaering","followers_url":"https://api.github.com/users/ghaering/followers","following_url":"https://api.github.com/users/ghaering/following{/other_user}","gists_url":"https://api.github.com/users/ghaering/gists{/gist_id}","starred_url":"https://api.github.com/users/ghaering/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghaering/subscriptions","organizations_url":"https://api.github.com/users/ghaering/orgs","repos_url":"https://api.github.com/users/ghaering/repos","events_url":"https://api.github.com/users/ghaering/events{/privacy}","received_events_url":"https://api.github.com/users/ghaering/received_events","type":"User","site_admin":false},"created_at":"2016-08-17T21:45:52Z","updated_at":"2016-08-17T21:45:52Z","body":"Trigger the bug with:\r\n\r\ngo tool vet -all util_test.go util.go\r\n\r\n[testcase.zip](https://github.com/golang/go/files/423679/testcase.zip)\r\n"}}
{"actor":{"display_login":"ghaering"}}