go/src/cmd
Ian Lance Taylor c4f18d5374 cmd/go: ignore import of "C" when fetching dependencies
The change https://golang.org/cl/12192 changed the get code to use the
list of package imports, not the computed list of dependencies, as the
computed list could be out of date if the package changed when using
go get -u.  Computing the dependency list would skip an import of "C",
but that would still be on the package import list.  This changes the
code to skip "C" when walking the import list.

No test--the best test would be to add an import of "C" to
github.com/rsc/go-get-issue-9224-cmd for TestGoGetUpdate.

Fixes #11738.

Change-Id: Id89ddafeade2391d15688bfd142fafd67844a941
Reviewed-on: https://go-review.googlesource.com/12322
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-07-17 22:58:39 +00:00
..
addr2line cmd/addr2line: simplify windows test 2015-06-17 14:23:20 +00:00
api all: link to https instead of http 2015-07-11 14:36:33 +00:00
asm asm: fix error messages and comments for "register pair" 2015-07-15 05:45:29 +00:00
cgo all: link to https instead of http 2015-07-11 14:36:33 +00:00
compile cmd/compile: recognize embedded field in inlined function 2015-07-15 06:04:51 +00:00
cover all: extract "can I exec?" check from tests into internal/testenv 2015-06-16 18:07:36 +00:00
dist cmd/dist: diagnose lack of gcc earlier in build 2015-07-15 05:33:55 +00:00
doc cmd/doc: submit to the punched card tyranny 2015-07-10 03:52:48 +00:00
fix cmd/fix: add gotypes module 2015-07-17 01:47:14 +00:00
go cmd/go: ignore import of "C" when fetching dependencies 2015-07-17 22:58:39 +00:00
gofmt cmd/gofmt, go/format: refactor common pieces into internal/format 2015-04-01 17:35:26 +00:00
internal Revert "cmd/internal/obj: fix pc/sp information for prologue" 2015-07-15 23:28:42 +00:00
link all: link to https instead of http 2015-07-11 14:36:33 +00:00
newlink all: link to https instead of http 2015-07-11 14:36:33 +00:00
nm all: extract "can I exec?" check from tests into internal/testenv 2015-06-16 18:07:36 +00:00
objdump all: extract "can I exec?" check from tests into internal/testenv 2015-06-16 18:07:36 +00:00
old5a cmd/old5a, cmd/old8a, cmd/old9a: rebuild y.go 2015-05-29 17:36:43 +00:00
old6a cmd/internal/obj: make Prog.From3 a pointer 2015-05-29 16:19:02 +00:00
old8a cmd/old5a, cmd/old8a, cmd/old9a: rebuild y.go 2015-05-29 17:36:43 +00:00
old9a cmd/old5a, cmd/old8a, cmd/old9a: rebuild y.go 2015-05-29 17:36:43 +00:00
pack all: extract "can I exec?" check from tests into internal/testenv 2015-06-16 18:07:36 +00:00
pprof cmd/pprof: store temporary files in temporary directory 2015-07-15 04:30:50 +00:00
trace cmd/trace: log errors to console in AJAX handler 2015-07-02 19:10:00 +00:00
vet all: link to https instead of http 2015-07-11 14:36:33 +00:00
yacc all: fix misprints in comments 2015-06-11 14:18:57 +00:00