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
@albenikvgo build does not look at *_test.go files, and hence the go.mod that is automatically created does not see any of the imports in pkg_test.go. vgo test does see those imports, and so the go.mod file is updated. The final vgo build doesn't have anything new to do, hence go.mod is left untouched.
I'm going to close this because everything is working as intended.
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?What did you do?
vgo build ./...
cat go.mod
vgo test ./...
cat go.mod
vgo build ./...
cat go.mod
What did you expect to see?
At 3,5,7 steps
What did you see instead?
3 step
5, 7 steps
The text was updated successfully, but these errors were encountered: