]> Cypherpunks repositories - gostls13.git/commit
cmd/cgo: add import path to hash
authorIan Lance Taylor <iant@golang.org>
Wed, 13 Jun 2018 22:49:52 +0000 (15:49 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 13 Jun 2018 23:36:03 +0000 (23:36 +0000)
commit3a7cbfaa40e91e22a8857cfc1132110b2265ce3d
treead2a23c4861076a43a870a6b34b04f5155536a5d
parent7bc99ffa0534f025bc579a045fc7a5afc11ef3c3
cmd/cgo: add import path to hash

This avoids name conflicts when two identical packages use cgo.
This can happen in practice when the same package is vendored multiple
times in a single build.

Fixes #23555

Change-Id: I9f0ec6db9165dcf9cdf3d314c668fee8ada18f9c
Reviewed-on: https://go-review.googlesource.com/118739
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
misc/cgo/test/issue23555.go [new file with mode: 0644]
misc/cgo/test/issue23555a/a.go [new file with mode: 0644]
misc/cgo/test/issue23555b/a.go [new file with mode: 0644]
src/cmd/cgo/main.go