• Russ Cox's avatar
    cmd/go: fix 'go get' compatibility for direct download of vgo-aware module · 446d76e6
    Russ Cox authored
    CL 109340 added “minimal module-awareness for legacy operation.”
    One part of that is reinterpreting imports inside code trees with go.mod files
    as using semantic import versioning, and converting them back to
    legacy import paths by stripping the major version element
    (for example, interpreting import "x.com/foo/v2/bar" as import "x.com/foo/bar").
    This rewrite was not being applied during "go get", with the effect that once
    you had the target code downloaded already, everything was fine,
    but it didn't download and build successfully the first time.
    
    Fixes #25687.
    
    Change-Id: I3e122efdc8fd9a0a4e66f5aa3e6a99f90c7df779
    Reviewed-on: https://go-review.googlesource.com/115797
    Run-TryBot: Russ Cox <rsc@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarBryan C. Mills <bcmills@google.com>
    446d76e6
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
buildid Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
test2json Loading commit data...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...