• Paul Jolly's avatar
    cmd/go: fix go list -test where C is a dependency. · 941b3b77
    Paul Jolly authored
    Currently go list -test runtime/cgo fails with an index out of range
    error. This appears to be because the updating of import paths that
    happens as part of -test doesn't take into account the fact that the
    Internal.Imports of a package do not contain "C", whereas the public
    Imports do.
    
    Therefore we skip the public Import of "C" if it exists and continue.
    
    Change-Id: I5cdc8968890fa7e5da3e375718606037d3282754
    Reviewed-on: https://go-review.googlesource.com/111175
    Run-TryBot: Ian Lance Taylor <iant@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    941b3b77
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...