| Server IP : 217.160.0.135 / Your IP : 216.73.217.85 Web Server : Apache System : Linux www 6.18.52-i1-ampere #1203 SMP Mon Sep 14 18:29:59 CEST 2026 aarch64 User : sws1074145052 ( 1074145052) PHP Version : 8.3.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /lib/go-1.23/src/cmd/go/testdata/script/ |
Upload File : |
# Issue 46119
# When a module is inside a GOPATH workspace, Package.Root should be set to
# Module.Dir instead of $GOPATH/src.
env GOPATH=$WORK/tmp
cd $WORK/tmp/src/test
go list -f {{.Root}}
stdout ^$PWD$
# Were we really inside a GOPATH workspace?
env GO111MODULE=off
go list -f {{.Root}}
stdout ^$WORK/tmp$
-- $WORK/tmp/src/test/go.mod --
module test
-- $WORK/tmp/src/test/main.go --
package main
func main() {}