-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: mod download doesn't work with commit hash #27947
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
Labels
FrozenDueToAge
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Comments
Closed
marwan-at-work
added a commit
to marwan-at-work/go
that referenced
this issue
Oct 5, 2018
Go get in mod-enabled packages lets you do go get pkg@<hash> or pkg@<branch>. Go internally will switch the hash or branch into a pseudo version. Go mod download should do the same. The bug lied in the fact that the disk cache was not being written when Go converted the hash/branch into a pseduo version. Fixes golang#27947
marwan-at-work
added a commit
to marwan-at-work/go
that referenced
this issue
Nov 5, 2018
Go get in mod-enabled packages lets you do go get "pkg@<hash>" or "pkg@<branch>". Go internally will switch the hash or branch into a pseudo version. Go mod download should do the same. The bug lied in the fact that the disk cache was not being written when Go converted the hash/branch into a pseduo version. Fixes golang#27947 Change-Id: Ib5b376c65406173c3cd8739254b37a919dff8e8f
Change https://golang.org/cl/140257 mentions this issue: |
marwan-at-work
added a commit
to marwan-at-work/go
that referenced
this issue
Nov 16, 2018
Go internally will switch the hash or branch into a pseudo version. Go mod download should do the same. The bug lay in the fact that the disk cache was not being written when Go converted the hash/branch into a pseudo version. Fixes golang#27947 Change-Id: I55810a544ef4410f93c5b7ccbe7e2cad7c78b26f
bradfitz
pushed a commit
that referenced
this issue
Nov 21, 2018
Go get in mod-enabled packages lets you do go get "pkg@<hash>" or "pkg@<branch>". Go internally will switch the hash or branch into a pseudo version. Go mod download should do the same. The bug lay in the fact that the disk cache was not being written when Go converted the hash/branch into a pseudo version. Fixes #27947 Change-Id: I94c29a5c95f69ab18a9cd7a2ecade128047c5e36 GitHub-Last-Rev: 668634b GitHub-Pull-Request: #28042 Reviewed-on: https://go-review.googlesource.com/c/140257 Reviewed-by: Bryan C. Mills <[email protected]> Run-TryBot: Bryan C. Mills <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
This was referenced Nov 27, 2018
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
FrozenDueToAge
modules
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.11 linux/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?amd64/linux
What did you do?
What did you expect to see?
the same as executing go mod download using the pseudo version
v0.8.1-0.20180127015812-30136e27e2ac
I expect the mod to be downloaded to the cache directory.
What did you see instead?
The text was updated successfully, but these errors were encountered: