| Linux in-mum-web1499.main-hosting.eu 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64 Path : /opt/golang/1.22.0/src/cmd/go/testdata/script/ |
| Current File : //opt/golang/1.22.0/src/cmd/go/testdata/script/mod_alt_goroot.txt |
env GO111MODULE=on
# If the working directory is a different GOROOT, then the 'std' module should be
# treated as an ordinary module (with an ordinary module prefix).
# It should not override packages in GOROOT, but should not fail the command.
# See golang.org/issue/30756.
go list -e -deps -f '{{.ImportPath}} {{.Dir}}' ./bytes
stdout ^std/bytes.*$PWD[/\\]bytes
stdout '^bytes/modified'
-- go.mod --
module std
go 1.12
-- bytes/bytes.go --
package bytes
import _"bytes/modified"
-- bytes/modified/modified.go --
package modified