• Ian Lance Taylor's avatar
    cmd/go: ignore import of "C" when fetching dependencies · c4f18d53
    Ian Lance Taylor authored
    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: 's avatarAndrew Gerrand <adg@golang.org>
    c4f18d53
Name
Last commit
Last update
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...