Commit 1d85bce
[release-branch.go1.19] cmd/go: omit checksums for go.mod files needed for go version lines more often in pre-1.21 modules
This updates the logic from CL 489075 to avoid trying to save extra
sums if they aren't already expected to be present
and cfg.BuildMod != "mod" (as in the case of "go list -m -u all" with
a go.mod file that specifies go < 1.21).
Fixes #60697.
Updates #60667.
Updates #56222.
Change-Id: Ied6ed3e80a62f9cd9a328b43a415a42d14481056
Reviewed-on: https://go-review.googlesource.com/c/go/+/502017
Reviewed-by: Michael Matloob <[email protected]>
Reviewed-by: Russ Cox <[email protected]>
Run-TryBot: Bryan Mills <[email protected]>
TryBot-Bypass: Bryan Mills <[email protected]>1 parent 3ba9c89 commit 1d85bce
File tree
2 files changed
+19
-3
lines changed- src/cmd/go
- internal/modload
- testdata/script
2 files changed
+19
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1585 | 1585 | | |
1586 | 1586 | | |
1587 | 1587 | | |
1588 | | - | |
| 1588 | + | |
| 1589 | + | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
1589 | 1599 | | |
1590 | 1600 | | |
1591 | 1601 | | |
| |||
1599 | 1609 | | |
1600 | 1610 | | |
1601 | 1611 | | |
1602 | | - | |
| 1612 | + | |
1603 | 1613 | | |
1604 | 1614 | | |
1605 | 1615 | | |
| |||
1659 | 1669 | | |
1660 | 1670 | | |
1661 | 1671 | | |
1662 | | - | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
1663 | 1675 | | |
1664 | 1676 | | |
1665 | 1677 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
25 | 29 | | |
26 | 30 | | |
27 | 31 | | |
| |||
0 commit comments