]> Cypherpunks repositories - gostls13.git/commit
cmd/api: explicit tagKey with GOOS and GOARCH
authorMeng Zhuo <mengzhuo1203@gmail.com>
Thu, 4 Oct 2018 08:46:22 +0000 (16:46 +0800)
committerRobert Griesemer <gri@golang.org>
Fri, 5 Oct 2018 17:53:43 +0000 (17:53 +0000)
commit28fa1da9db8eedf079f1b83fd39383e17b3d7e68
tree6824c561af5c9587714a99f71d82e7a49681ff37
parent415e948eaea05930b2a16bab6af9e38b24e8414b
cmd/api: explicit tagKey with GOOS and GOARCH

The origin tagKey is just dirname if no tags input which will cause
pkgCache missmatch if other imported pkg explicit on GOARCH or GOOS

This CL will add GOOS and GOARCH to tagKey

Fixes #8425
Fixes #21181

Change-Id: Ifc189cf6746d753ad7c7e5bb60621297fc0a4e35
Reviewed-on: https://go-review.googlesource.com/c/138315
Reviewed-by: Robert Griesemer <gri@golang.org>
api/except.txt
src/cmd/api/goapi.go
src/cmd/api/goapi_test.go
src/cmd/api/testdata/src/issue21181/dep/p.go [new file with mode: 0644]
src/cmd/api/testdata/src/issue21181/dep/p_amd64.go [new file with mode: 0644]
src/cmd/api/testdata/src/issue21181/indirect/p.go [new file with mode: 0644]
src/cmd/api/testdata/src/issue21181/p/p.go [new file with mode: 0644]
src/cmd/api/testdata/src/issue21181/p/p_amd64.go [new file with mode: 0644]
src/cmd/api/testdata/src/issue21181/p/p_generic.go [new file with mode: 0644]