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/mod_toolchain.txt
env TESTGO_VERSION=go1.100.0
env TESTGO_VERSION_SWITCH=switch

go get [email protected]
stderr '^go: added toolchain go1.22.1$'
! stderr '(added|removed|upgraded|downgraded) go'
grep 'toolchain go1.22.1' go.mod

go get toolchain@none
stderr '^go: removed toolchain go1.22.1$'
! stderr '(added|removed|upgraded|downgraded) go'
! grep toolchain go.mod

go get [email protected]
stderr '^go: added toolchain go1.22.1$'
! stderr '(added|removed|upgraded|downgraded) go'
grep 'toolchain go1.22.1' go.mod

go get [email protected]
stderr '^go: upgraded go 1.10 => 1.22.3$'
stderr '^go: upgraded toolchain go1.22.1 => go1.100.0$'
grep 'go 1.22.3' go.mod

go get [email protected] [email protected]
stderr '^go: removed toolchain go1.100.0$'
! grep toolchain go.mod

go get [email protected] [email protected]
stderr '^go: downgraded go 1.22.3 => 1.22.1$'
stderr '^go: added toolchain go1.22.3$'
grep 'go 1.22.1' go.mod
grep 'toolchain go1.22.3' go.mod

go get [email protected] [email protected]
stderr '^go: upgraded go 1.22.1 => 1.22.3$'
stderr '^go: removed toolchain go1.22.3$'
grep 'go 1.22.3' go.mod
! grep toolchain go.mod

go get [email protected]
stderr '^go: downgraded go 1.22.3 => 1.22.1$'
! stderr toolchain # already gone, was not added
grep 'go 1.22.1' go.mod
! grep toolchain go.mod

env TESTGO_VERSION=go1.22.1
env GOTOOLCHAIN=local
! go get [email protected]
stderr 'go: updating go.mod requires go >= 1.22.3 \(running go 1.22.1; GOTOOLCHAIN=local\)$'

env TESTGO_VERSION=go1.30
go get [email protected]
grep 'toolchain go1.22.3' go.mod

go get [email protected]
grep 'go 1.22.1' go.mod
go get [email protected]
stderr '^go: upgraded go 1.22.1 => 1.23$'
stderr '^go: added m2 v1.0.0$'
grep 'go 1.23$' go.mod

go get [email protected] [email protected]
go get toolchain@none
stderr '^go: removed toolchain go1.23.9'
! stderr ' go 1'
grep 'go 1.23.5' go.mod

-- go.mod --
module m
go 1.10

replace m2 v1.0.0 => ./m2

-- m2/go.mod --
module m2
go 1.23