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
This is probably a duplicate of #27643. The thread got too long and I want to bring the attention to the go list command by filling this as a separate issue.
I was in a branch with a v2 module and this doesn't have a dependency on v0 or v1.
$ go list github.com/hyangah/foo/v2
github.com/hyangah/foo/v2
$ cat go.mod
module github.com/hyangah/foo/v2
I queried the package in v1 by accident and found the go.mod was updated.
$ go list github.com/hyangah/foo
github.com/hyangah/foo
$ cat go.mod
module github.com/hyangah/foo/v2
require github.com/hyangah/foo v1.0.1 // indirect