-
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: make "finding" logging deterministic
In CL 204777, I made the "finding" messages in cachingRepo only print after a “longish” delay, on the theory that they would help diagnose slow or stuck fetches. However, as I've been testing Go 1.14 beta 1, I've found that these messages are mostly just noise, and the fact that they are so nondeterministic causes both confusion and test flakes (#35539). Moreover, it currently triggers once for each candidate module, when what we're usually after is actually a specific package within the module. So let's log the package operation unconditionally instead of the module fetches nondeterministically. Fixes #35539 Updates #26152 Change-Id: I41a1c772465b2f0b357d3402bc372b6907773741 Reviewed-on: https://go-review.googlesource.com/c/go/+/213679 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
Jan 9, 2020
1 parent
17e9732
commit 6dbcc8b
Showing
3 changed files
with
4 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,12 +75,14 @@ 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: finding module for package example.com/badchain/c | ||
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: finding module for package example.com/badchain/c | ||
go: found example.com/badchain/c in example.com/badchain/c v1.1.0 | ||
go: m/testuse tested by | ||
m/testuse.test imports | ||
|