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_empty_err.txt
# This test checks error messages for non-existent packages in module mode.
# Veries golang.org/issue/35414
env GO111MODULE=on
cd $WORK

go list -e -f {{.Error}} .
stdout 'no Go files in '$WORK

go list -e -f {{.Error}} ./empty
stdout 'no Go files in '$WORK${/}'empty'

go list -e -f {{.Error}} ./exclude
stdout 'build constraints exclude all Go files in '$WORK${/}'exclude'

go list -e -f {{.Error}} ./missing
stdout 'stat '$WORK'[/\\]missing: directory not found'

# use 'go build -n' because 'go list' reports no error.
! go build -n ./testonly
stderr 'example.com/m/testonly: no non-test Go files in '$WORK${/}'testonly'

-- $WORK/go.mod --
module example.com/m

go 1.14

-- $WORK/empty/empty.txt --
-- $WORK/exclude/exclude.go --
// +build exclude

package exclude
-- $WORK/testonly/testonly_test.go --
package testonly_test
-- $WORK/excluded-stdout --
package ./excluded: cannot find package "." in:
	$WORK/excluded