ROOTPLOIT
Server: LiteSpeed
System: Linux in-mum-web1878.main-hosting.eu 5.14.0-570.21.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jun 11 07:22:35 EDT 2025 x86_64
User: u435929562 (435929562)
PHP: 7.4.33
Disabled: system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail
Upload Files
File: //opt/golang/1.22.0/src/cmd/go/testdata/script/vendor_complex.txt
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"