Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: go get github.com/rsc/vgotest5 fails [1.9 backport] #25691

Closed
gopherbot opened this issue Jun 1, 2018 · 2 comments

Comments

Projects
None yet
1 participant
@gopherbot
Copy link

commented Jun 1, 2018

@rsc requested issue #25687 to be considered for backport to the next 1.9 minor release.

@gopherbot PLEASE backport Go 1.9 Go 1.10

@gopherbot

This comment has been minimized.

Copy link
Author

commented Jun 4, 2018

Change https://golang.org/cl/116175 mentions this issue: [release-branch.go1.9] cmd/go: fix 'go get' compatibility for direct download of vgo-aware module

@gopherbot

This comment has been minimized.

Copy link
Author

commented Jun 4, 2018

Closed by merging 91f0e20 to release-branch.go1.9.

@gopherbot gopherbot closed this Jun 4, 2018

gopherbot pushed a commit that referenced this issue Jun 4, 2018

[release-branch.go1.9] cmd/go: fix 'go get' compatibility for direct …
…download of vgo-aware module

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.
Cherry-pick fixes #25691.

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: Bryan C. Mills <bcmills@google.com>
Reviewed-on: https://go-review.googlesource.com/116175
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.