-
Notifications
You must be signed in to change notification settings - Fork 17.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/go: adjust module-related logging
Suppress “finding” messages unless they are unusually slow, and “extracting” messages always (they almost always occur conjunction with “downloading”, which is already logged). Log “found” messages for module dependencies added to satisfy missing import paths. Log top-level version changes in 'go get' when the selected version is not identical to the version requested on the command line. Updates #26152 Updates #33284 Change-Id: I4d0de60fab58d7cc7df8a2aff05c8b5b2220e626 Reviewed-on: https://go-review.googlesource.com/c/go/+/204777 Run-TryBot: Bryan C. Mills <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Jay Conrod <[email protected]>
- Loading branch information
Bryan C. Mills
committed
Nov 1, 2019
1 parent
c9d89f6
commit 617b416
Showing
8 changed files
with
63 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,5 @@ go mod init m | |
cmp stderr stderr-expected | ||
|
||
-- stderr-expected -- | ||
go: finding example.com/newcycle v1.0.0 | ||
go get: inconsistent versions: | ||
example.com/newcycle/[email protected] requires example.com/newcycle/[email protected] (not example.com/newcycle/[email protected]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,11 +56,13 @@ import ( | |
|
||
func Test(t *testing.T) {} | ||
-- update-main-expected -- | ||
go: example.com/badchain/c upgrade => v1.1.0 | ||
go get: example.com/badchain/[email protected] updating to | ||
example.com/badchain/[email protected]: parsing go.mod: | ||
module declares its path as: badchain.example.com/c | ||
but was required as: example.com/badchain/c | ||
-- update-a-expected -- | ||
go: example.com/badchain/a upgrade => v1.1.0 | ||
go get: example.com/badchain/[email protected] requires | ||
example.com/badchain/[email protected] requires | ||
example.com/badchain/[email protected]: parsing go.mod: | ||
|
@@ -73,11 +75,13 @@ go: example.com/badchain/[email protected] requires | |
module declares its path as: badchain.example.com/c | ||
but was required as: example.com/badchain/c | ||
-- list-missing-expected -- | ||
go: found example.com/badchain/c in example.com/badchain/c v1.1.0 | ||
go: m/use imports | ||
example.com/badchain/c: example.com/badchain/[email protected]: parsing go.mod: | ||
module declares its path as: badchain.example.com/c | ||
but was required as: example.com/badchain/c | ||
-- list-missing-test-expected -- | ||
go: found example.com/badchain/c in example.com/badchain/c v1.1.0 | ||
go: m/testuse tested by | ||
m/testuse.test imports | ||
example.com/badchain/c: example.com/badchain/[email protected]: parsing go.mod: | ||
|