{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/27086","repository_url":"https://api.github.com/repos/golang/go","labels_url":"https://api.github.com/repos/golang/go/issues/27086/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/27086/comments","events_url":"https://api.github.com/repos/golang/go/issues/27086/events","html_url":"https://github.com/golang/go/issues/27086","id":351929127,"node_id":"MDU6SXNzdWUzNTE5MjkxMjc=","number":27086,"title":"cmd/go: unable to run test cases when package name of foo_test.go is foo_test for package foo","user":{"login":"mewmew","id":1414531,"node_id":"MDQ6VXNlcjE0MTQ1MzE=","avatar_url":"https://avatars1.githubusercontent.com/u/1414531?v=4","gravatar_id":"","url":"https://api.github.com/users/mewmew","html_url":"https://github.com/mewmew","followers_url":"https://api.github.com/users/mewmew/followers","following_url":"https://api.github.com/users/mewmew/following{/other_user}","gists_url":"https://api.github.com/users/mewmew/gists{/gist_id}","starred_url":"https://api.github.com/users/mewmew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mewmew/subscriptions","organizations_url":"https://api.github.com/users/mewmew/orgs","repos_url":"https://api.github.com/users/mewmew/repos","events_url":"https://api.github.com/users/mewmew/events{/privacy}","received_events_url":"https://api.github.com/users/mewmew/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-19T19:47:13Z","updated_at":"2018-08-20T04:04:28Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### What version of Go are you using (`go version`)?\r\n\r\n```\r\nvgo version\r\ngo version go1.10.3 linux/amd64 vgo:devel +1b870077c8\r\n```\r\n\r\n### Does this issue reproduce with the latest release?\r\n\r\nYes.\r\n\r\n### What operating system and processor architecture are you using (`go env`)?\r\n\r\n```\r\n$ vgo env\r\nGOARCH=\"amd64\"\r\nGOBIN=\"\"\r\nGOCACHE=\"/home/u/.cache/go-build\"\r\nGOEXE=\"\"\r\nGOFLAGS=\"\"\r\nGOHOSTARCH=\"amd64\"\r\nGOHOSTOS=\"linux\"\r\nGOOS=\"linux\"\r\nGOPATH=\"/home/u/go\"\r\nGOPROXY=\"\"\r\nGORACE=\"\"\r\nGOROOT=\"/usr/lib/go\"\r\nGOTMPDIR=\"\"\r\nGOTOOLDIR=\"/usr/lib/go/pkg/tool/linux_amd64\"\r\nGCCGO=\"gccgo\"\r\nCC=\"clang\"\r\nCXX=\"clang++\"\r\nCGO_ENABLED=\"1\"\r\nGOMOD=\"/tmp/flac/go.mod\"\r\nCGO_CFLAGS=\"-g -O2\"\r\nCGO_CPPFLAGS=\"\"\r\nCGO_CXXFLAGS=\"-g -O2\"\r\nCGO_FFLAGS=\"-g -O2\"\r\nCGO_LDFLAGS=\"-g -O2\"\r\nPKG_CONFIG=\"pkg-config\"\r\nGOGCCFLAGS=\"-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build710970470=/tmp/go-build -gno-record-gcc-switches\"\r\n```\r\n\r\n### What did you do?\r\n\r\nIf possible, provide a recipe for reproducing the error.\r\nA complete runnable program is good.\r\nA link on play.golang.org is best.\r\n\r\nUsing `vgo` to run test cases does not work (fails with *cannot find module flac_test* error), while equivalent commands for `go` works with go-get.\r\n\r\n```\r\n$ unset GOPATH\r\n$ git clone https://github.com/mewkiz/flac.git\r\n$ cd flac\r\n$ vgo install ./...\r\n$ vgo test ./...\r\nbuild github.com/mewkiz/flac_test: cannot find module for path github.com/mewkiz/flac_test\r\n```\r\n\r\n### What did you expect to see?\r\n\r\nTest cases being run.\r\n\r\nFor comparison, an equivalent set of commands that fail for `vgo test` work with `go test`:\r\n\r\n```\r\nu@x61s ~> /bin/bash\r\n[u@x61s ~]$ go version\r\ngo version go1.10.3 linux/amd64\r\n[u@x61s ~]$ export GOPATH=/tmp/go\r\n[u@x61s ~]$ go get github.com/mewkiz/flac/...\r\n[u@x61s ~]$ go test github.com/mewkiz/flac/...\r\nok  \tgithub.com/mewkiz/flac\t0.022s\r\n?   \tgithub.com/mewkiz/flac/cmd/flac2wav\t[no test files]\r\n?   \tgithub.com/mewkiz/flac/cmd/go-metaflac\t[no test files]\r\n?   \tgithub.com/mewkiz/flac/cmd/wav2flac\t[no test files]\r\nok  \tgithub.com/mewkiz/flac/frame\t2.666s\r\nok  \tgithub.com/mewkiz/flac/internal/bits\t0.016s\r\n?   \tgithub.com/mewkiz/flac/internal/hashutil\t[no test files]\r\nok  \tgithub.com/mewkiz/flac/internal/hashutil/crc16\t0.004s\r\nok  \tgithub.com/mewkiz/flac/internal/hashutil/crc8\t0.003s\r\n?   \tgithub.com/mewkiz/flac/internal/ioutilx\t[no test files]\r\n?   \tgithub.com/mewkiz/flac/internal/utf8\t[no test files]\r\nok  \tgithub.com/mewkiz/flac/meta\t0.004s\r\n```\r\n\r\n### What did you see instead?\r\n\r\nThe error message:\r\n```\r\nbuild github.com/mewkiz/flac_test: cannot find module for path github.com/mewkiz/flac_test\r\n```"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/414191678","html_url":"https://github.com/golang/go/issues/27086#issuecomment-414191678","issue_url":"https://api.github.com/repos/golang/go/issues/27086","id":414191678,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDE5MTY3OA==","user":{"login":"agnivade","id":1774000,"node_id":"MDQ6VXNlcjE3NzQwMDA=","avatar_url":"https://avatars1.githubusercontent.com/u/1774000?v=4","gravatar_id":"","url":"https://api.github.com/users/agnivade","html_url":"https://github.com/agnivade","followers_url":"https://api.github.com/users/agnivade/followers","following_url":"https://api.github.com/users/agnivade/following{/other_user}","gists_url":"https://api.github.com/users/agnivade/gists{/gist_id}","starred_url":"https://api.github.com/users/agnivade/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agnivade/subscriptions","organizations_url":"https://api.github.com/users/agnivade/orgs","repos_url":"https://api.github.com/users/agnivade/repos","events_url":"https://api.github.com/users/agnivade/events{/privacy}","received_events_url":"https://api.github.com/users/agnivade/received_events","type":"User","site_admin":false},"created_at":"2018-08-20T04:04:28Z","updated_at":"2018-08-20T04:04:28Z","author_association":"MEMBER","body":"Kindly try with the 1.11rc1 build. vgo is now merged with the main tree."}}
{"actor":{"display_login":"agnivade"}}