Server : LiteSpeed System : Linux in-mum-web1333.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64 User : u141265441 ( 141265441) PHP Version : 8.4.3 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail Directory : /proc/self/root/opt/golang/1.22.0/src/cmd/go/testdata/script/ |
env GO111MODULE=off
# smoke test for complex build configuration
go build -o complex.exe complex
[!cross] [exec:gccgo] go build -compiler=gccgo -o complex.exe complex
-- complex/main.go --
package main
import (
_ "complex/nest/sub/test12"
_ "complex/nest/sub/test23"
"complex/w"
"v"
)
func main() {
println(v.Hello + " " + w.World)
}
-- complex/nest/sub/test12/p.go --
package test12
// Check that vendor/v1 is used but vendor/v2 is NOT used (sub/vendor/v2 wins).
import (
"v1"
"v2"
)
const x = v1.ComplexNestVendorV1
const y = v2.ComplexNestSubVendorV2
-- complex/nest/sub/test23/p.go --
package test23
// Check that vendor/v3 is used but vendor/v2 is NOT used (sub/vendor/v2 wins).
import (
"v2"
"v3"
)
const x = v3.ComplexNestVendorV3
const y = v2.ComplexNestSubVendorV2
-- complex/nest/sub/vendor/v2/v2.go --
package v2
const ComplexNestSubVendorV2 = true
-- complex/nest/vendor/v1/v1.go --
package v1
const ComplexNestVendorV1 = true
-- complex/nest/vendor/v2/v2.go --
package v2
const ComplexNestVendorV2 = true
-- complex/nest/vendor/v3/v3.go --
package v3
const ComplexNestVendorV3 = true
-- complex/vendor/v/v.go --
package v
const Hello = "hello"
-- complex/w/w.go --
package w
const World = "world"