-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: "finding" lines always printed for dependency with seemingly consistent import path usage #32720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I suspect that this is a duplicate of #27063. What happens if you run |
Assuming you meant
|
Note that this output is the same with/without that replace directive. |
No, I mean That probably implies |
Ah, forgive me. I get this (truncated for the relevant lines):
|
Thanks for confirming. |
Duplicate of #27063 |
@bcmills - Did you not mean to close this ? |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes. Tip is slightly different (see later)
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I want to pin a dependency (to use with
gobin
), so I use thetools.go
pattern.I perform operations with this in place, like
go mod tidy
, or ago get
to do an update; something that modifiesgo.mod
.What did you expect to see?
Running
go mod tidy
with this setup prints nothing interesting, maybe a download once to getv6.2.0
. If I were atv6.1.0
, ago get
can update it and again print maybe a finding/downloading line or two.What did you see instead?
Any operation that modifies
go.mod
(I think that's the condition) constantly prints messages like these:If I go into
~/go/pkg/mod/github.com/maxbrunsfeld/counterfeiter/[email protected]
and try to see if there's some bad import path, I find nothing. Every import path uses/v6
at the end, and the only usage without it is ago get
example for use without modules.Using
gotip
, less is printed, but it's still shown for every operation:The only way I've found for this specific case to make at least the "downloading" go away is to do:
But the
finding
lines never go away (even on tip). Note that none of this prevents the binary from being built;go run
andgobin
all have no trouble building and running what I want (with or without that replace).It's not clear to me what the issue is if both
counterfeiter
and my own code all use the/v6
import path consistently, but it's frustrating for manygo
invocations to print a bunch of stuff to stderr.The text was updated successfully, but these errors were encountered: