You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think you wanted go mod why -m instead. go mod why works on packages, so if it's given a package that doesn't belong in any of the modules it knows about, it must then resolve that new module (thus adding it to go.mod).
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
More or less.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I ran:
and it added that dep to my go.mod file. I didn't expect it to add it to the file, if it wasn't already there.
The text was updated successfully, but these errors were encountered: