Closed
Description
In the source tree of the queried package (and its module)
$ cd /tmp $ git clone https://github.com/hyangah/explist2 $ cd explist2 $ go list -f '{{.ImportPath}} in {{.Module.Path}}@{{.Module.Version}}' github.com/hyangah/explist2 github.com/hyangah/explist2 in github.com/hyangah/explist2@
vs.
$ mkdir /tmp/temp $ cd /tmp/temp $ go mod init temp go: creating new go.mod: module temp $ go get github.com/hyangah/explist2 go: finding github.com/hyangah/explist2 v1.0.0 go: downloading github.com/hyangah/explist2 v1.0.0 $ go list -f '{{.ImportPath}} in {{.Module.Path}}@{{.Module.Version}}' github.com/hyangah/explist2 github.com/hyangah/explist2 in github.com/hyangah/[email protected]