• marwan-at-work's avatar
    cmd/go: accept @hash/branch in mod download · 92caeef8
    marwan-at-work authored
    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: 668634b3e70206c6eadabae5969fca1b03093b0d
    GitHub-Pull-Request: golang/go#28042
    Reviewed-on: https://go-review.googlesource.com/c/140257Reviewed-by: 's avatarBryan C. Mills <bcmills@google.com>
    Run-TryBot: Bryan C. Mills <bcmills@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    92caeef8
Name
Last commit
Last update
.github Loading commit data...
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...