• Russ Cox's avatar
    cmd/go: refine definition of 'standard' import paths to include vendored code · 42236759
    Russ Cox authored
    The vendored copy of golang.org/x/net/http/hpack was being treated
    as not standard, which in turn was making it not subject to the mtime
    exception for rebuilding the standard library in a release, which in turn
    was making net/http look out of date.
    
    One fix and three tests:
    
    - Fix the definition of standard.
    - Test that everything in $GOROOT/src/ is standard during 'go test cmd/go'.
    (In general there can be non-standard things in $GOROOT/src/, but this
    test implies that you can do that or you can run 'go test cmd/go',
    but not both. That's fine.)
    - Test that 'go list std cmd' shows our vendored code.
    - Enforce that no standard package can depend on a non-standard one.
    
    Also fix a few error printing nits.
    
    Fixes #13713.
    
    Change-Id: I1f943f1c354174c199e9b52075c11ee44198e81b
    Reviewed-on: https://go-review.googlesource.com/18978Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    Run-TryBot: Russ Cox <rsc@golang.org>
    42236759
Name
Last commit
Last update
..
testdata Loading commit data...
alldocs.go Loading commit data...
bootstrap.go Loading commit data...
build.go Loading commit data...
clean.go Loading commit data...
context.go Loading commit data...
discovery.go Loading commit data...
doc.go Loading commit data...
env.go Loading commit data...
fix.go Loading commit data...
fmt.go Loading commit data...
generate.go Loading commit data...
generate_test.go Loading commit data...
get.go Loading commit data...
go11.go Loading commit data...
go_test.go Loading commit data...
go_unix_test.go Loading commit data...
go_windows_test.go Loading commit data...
help.go Loading commit data...
http.go Loading commit data...
list.go Loading commit data...
main.go Loading commit data...
match_test.go Loading commit data...
mkalldocs.sh Loading commit data...
note.go Loading commit data...
note_test.go Loading commit data...
pkg.go Loading commit data...
pkg_test.go Loading commit data...
run.go Loading commit data...
signal.go Loading commit data...
signal_notunix.go Loading commit data...
signal_unix.go Loading commit data...
tag_test.go Loading commit data...
test.go Loading commit data...
testflag.go Loading commit data...
testgo.go Loading commit data...
tool.go Loading commit data...
vcs.go Loading commit data...
vcs_test.go Loading commit data...
vendor_test.go Loading commit data...
version.go Loading commit data...
vet.go Loading commit data...