cmd/go: do not attempt to fetch modules with missing checksums when -mod=readonly
is set
#41935
Labels
Milestone
-mod=readonly
is set
#41935
(This is a secondary bug noticed in conjunction with #41934.)
Note the
downloading
message in the last command. Since we already know that-mod=readonly
is set and we already know that we are missing a checksum, we should not attempt to download the module in the first place.(This is a consequence of #30667, but we appear to have missed it in CL 166237 and the associated tests.)
CC @jayconrod @matloob @marwan-at-work
The text was updated successfully, but these errors were encountered: