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
cmd/go: go run
produces indirect dependencies in go.mod
#26483
Comments
Note that |
Oh, sure, I forgot about this difference :) My point is it's better for |
go/src/cmd/go/testdata/addmod.go Line 5 in c814ac4
It seems reasonable to update the |
Perfectly makes sense, thank you! |
What version of Go are you using (
go version
)?Latest go devel:
go version devel +d278f09333 Thu Jul 19 05:40:37 2018 +0000 darwin/amd64
Does this issue reproduce with the latest release?
Yes
What did you do?
What did you expect to see?
go.mod
What did you see instead?
It's OK to see
// indirect
if we usego get rsc.io/quote
but it's a little bit strange to see this artifact aftergo run
.I believe
go run
should work exactly likego build
and resolve the imports withgo mod -sync
implicitly.The text was updated successfully, but these errors were encountered: