openbsd-amd64-72 at 4f35b335166bbf175ec73f9b1b1f0e54251f0fd9 :: Running /tmp/workdir/go/src/make.bash with args ["/tmp/workdir/go/src/make.bash" "-force"] and env ["HOME=/" "PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin" "INRC=1" "_=/bin/sh" "WORKDIR=/tmp/workdir" "GOROOT_BOOTSTRAP=/tmp/workdir/go1.4" "GO_BUILDER_NAME=openbsd-amd64-72" "GOBIN=" "TMPDIR=/tmp/workdir/tmp" "GOCACHE=/tmp/workdir/gocache" "GOPLSCACHE=/tmp/workdir/goplscache" "PWD=/tmp/workdir/go/src"] in dir /tmp/workdir/go/src Building Go cmd/dist using /tmp/workdir/go1.4. (go1.20.6 openbsd/amd64) Building Go toolchain1 using /tmp/workdir/go1.4. Building Go bootstrap cmd/go (go_bootstrap) using Go toolchain1. Building Go toolchain2 using go_bootstrap and Go toolchain1. Building Go toolchain3 using go_bootstrap and Go toolchain2. Building packages and commands for openbsd/amd64. --- Installed Go for openbsd/amd64 in /tmp/workdir/go Installed commands in /tmp/workdir/go/bin *** You need to add /tmp/workdir/go/bin to your PATH. ##### Test execution environment. # GOARCH: amd64 # CPU: Intel(R) Xeon(R) CPU @ 2.80GHz # GOOS: openbsd # OS Version: OpenBSD 7.2 OpenBSD 7.2 (GENERIC.MP) #5: Tue Jul 25 16:20:58 CEST 2023 root@syspatch-72-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP amd64 ##### Testing packages. ok archive/tar 0.194s ok archive/zip 0.355s ok bufio 0.083s ok bytes 0.289s ok cmp 0.024s ok compress/bzip2 0.097s ok compress/flate 0.784s ok compress/gzip 1.118s ok compress/lzw 0.071s ok compress/zlib 0.391s ok container/heap 0.035s ok container/list 0.022s ok container/ring 0.019s ok context 0.220s ok crypto 0.495s ok crypto/aes 0.046s ok crypto/cipher 0.028s ok crypto/des 0.021s ok crypto/dsa 0.032s ok crypto/ecdh 0.039s ok crypto/ecdsa 0.032s ok crypto/ed25519 0.061s ok crypto/elliptic 0.032s ok crypto/hmac 0.023s ok crypto/internal/alias 0.021s ok crypto/internal/bigmod 0.072s ok crypto/internal/boring 0.026s ok crypto/internal/boring/bcache 0.102s ok crypto/internal/edwards25519 0.074s ok crypto/internal/edwards25519/field 0.026s ok crypto/internal/nistec 0.128s ok crypto/internal/nistec/fiat 0.023s [no tests to run] ok crypto/md5 0.032s ok crypto/rand 0.105s ok crypto/rc4 0.054s ok crypto/rsa 0.235s ok crypto/sha1 0.040s ok crypto/sha256 0.019s ok crypto/sha512 0.024s ok crypto/subtle 0.274s ok crypto/tls 0.419s ok crypto/x509 0.305s ok database/sql 0.767s ok database/sql/driver 0.024s ok debug/buildinfo 0.036s ok debug/dwarf 0.058s ok debug/elf 0.186s ok debug/gosym 0.071s ok debug/macho 0.017s ok debug/pe 0.044s ok debug/plan9obj 0.019s ok embed 0.029s [no tests to run] ok embed/internal/embedtest 0.023s ok encoding/ascii85 0.035s ok encoding/asn1 0.022s ok encoding/base32 0.043s ok encoding/base64 0.015s ok encoding/binary 0.033s ok encoding/csv 0.040s ok encoding/gob 2.144s ok encoding/hex 0.023s ok encoding/json 0.409s ok encoding/pem 0.629s ok encoding/xml 0.117s ok errors 0.036s ok expvar 0.028s ok flag 0.123s ok fmt 0.101s ok go/ast 0.023s ok go/build 2.313s ok go/build/constraint 0.021s ok go/constant 0.026s ok go/doc 0.091s ok go/doc/comment 0.863s ok go/format 0.033s ok go/importer 0.561s ok go/internal/gccgoimporter 0.084s ok go/internal/gcimporter 2.775s ok go/internal/srcimporter 10.662s ok go/parser 0.532s ok go/printer 0.178s ok go/scanner 0.019s ok go/token 0.023s ok go/types 14.428s ok go/version 0.023s ok hash 0.019s ok hash/adler32 0.026s ok hash/crc32 0.039s ok hash/crc64 0.027s ok hash/fnv 0.031s ok hash/maphash 0.094s ok html 0.016s ok html/template 0.074s ok image 0.066s ok image/color 0.040s ok image/draw 0.096s ok image/gif 0.226s ok image/jpeg 0.208s ok image/png 0.243s ok index/suffixarray 0.120s ok internal/abi 0.121s ok internal/buildcfg 0.015s ok internal/chacha8rand 0.024s ok internal/coverage/cformat 0.029s ok internal/coverage/cmerge 0.022s ok internal/coverage/pods 0.023s ok internal/coverage/slicereader 0.017s ok internal/coverage/slicewriter 0.017s ok internal/coverage/test 0.018s ok internal/cpu 0.028s ok internal/dag 0.036s ok internal/diff 0.027s ok internal/fmtsort 0.012s ok internal/fuzz 0.035s ok internal/godebug 0.866s ok internal/godebugs 0.029s ok internal/gover 0.024s ok internal/intern 0.155s ok internal/itoa 0.018s ok internal/platform 2.124s ok internal/poll 0.056s ok internal/profile 0.018s ok internal/reflectlite 0.025s ok internal/saferio 0.092s ok internal/singleflight 0.124s ok internal/testenv 0.400s ok internal/trace 0.060s ok internal/trace/v2 8.361s ok internal/types/errors 0.633s ok internal/unsafeheader 0.024s ok internal/xcoff 0.040s ok internal/zstd 0.099s ok io 0.328s ok io/fs 0.225s ok io/ioutil 0.048s ok log 0.025s ok log/slog 0.042s ok log/slog/internal/benchmarks 0.021s ok log/slog/internal/buffer 0.027s ok log/syslog 1.352s ok maps 0.042s ok math 0.030s ok math/big 0.690s ok math/bits 0.038s ok math/cmplx 0.025s ok math/rand 0.194s ok math/rand/v2 0.252s ok mime 0.050s ok mime/multipart 0.597s ok mime/quotedprintable 0.033s ok net 30.127s ok net/http 8.391s ok net/http/cgi 0.338s ok net/http/cookiejar 0.038s ok net/http/fcgi 0.253s ok net/http/httptest 0.062s ok net/http/httptrace 0.022s ok net/http/httputil 0.641s ok net/http/internal 0.151s ok net/http/internal/ascii 0.017s ok net/http/pprof 5.123s ok net/internal/cgotest 0.013s ok net/internal/socktest 0.013s ok net/mail 0.027s ok net/rpc 0.067s ok net/rpc/jsonrpc 0.026s ok net/netip 0.415s ok net/smtp 0.048s ok net/textproto 0.064s ok net/url 0.037s ok os 0.343s ok os/exec 0.482s ok os/exec/internal/fdtest 0.012s ok os/signal 2.344s ok os/user 0.041s ok path 0.036s ok path/filepath 0.078s ok plugin 0.027s ok reflect 0.190s ok regexp 0.568s ok regexp/syntax 0.865s ok runtime 54.351s ok runtime/cgo 0.061s ok runtime/coverage 0.066s ok runtime/debug 0.253s ok runtime/internal/atomic 0.130s ok runtime/internal/math 0.051s ok runtime/internal/sys 0.066s ok runtime/internal/wasitest 0.083s ok runtime/metrics 0.076s ok runtime/pprof 7.548s ok runtime/trace 0.155s ok slices 0.066s ok sort 0.042s ok strconv 0.196s ok strings 0.596s ok sync 1.221s ok sync/atomic 0.342s ok syscall 0.216s ok testing 1.101s ok testing/fstest 0.045s ok testing/iotest 0.039s ok testing/quick 0.098s ok testing/slogtest 0.027s ok text/scanner 0.040s ok text/tabwriter 0.032s ok text/template 0.050s ok text/template/parse 0.023s ok time 2.274s ok unicode 0.039s ok unicode/utf16 0.052s ok unicode/utf8 0.049s ok cmd/addr2line 0.782s ok cmd/api 18.809s ok cmd/asm/internal/asm 0.349s ok cmd/asm/internal/lex 0.020s ok cmd/cgo/internal/swig 0.046s ok cmd/cgo/internal/test 2.639s ok cmd/cgo/internal/testcarchive 0.206s ok cmd/cgo/internal/testcshared 0.369s ok cmd/cgo/internal/testerrors 21.091s ok cmd/cgo/internal/testfortran 0.082s ok cmd/cgo/internal/testnocgo 0.020s ok cmd/cgo/internal/testplugin 0.027s ok cmd/cgo/internal/testsanitizers 0.023s [no tests to run] ok cmd/cgo/internal/testgodefs 1.545s ok cmd/cgo/internal/testlife 1.508s ok cmd/cgo/internal/testshared 0.014s ok cmd/cgo/internal/testso 3.130s ok cmd/cgo/internal/teststdio 3.514s ok cmd/cgo/internal/testtls 0.011s ok cmd/compile/internal/abt 0.015s ok cmd/compile/internal/amd64 0.015s ok cmd/compile/internal/base 0.014s ok cmd/compile/internal/compare 0.013s ok cmd/compile/internal/devirtualize 0.012s ok cmd/compile/internal/dwarfgen 0.447s ok cmd/compile/internal/importer 3.266s ok cmd/compile/internal/inline/inlheur 0.761s ok cmd/compile/internal/ir 0.013s ok cmd/compile/internal/logopt 0.407s ok cmd/compile/internal/loopvar 0.013s ok cmd/compile/internal/noder 0.014s ok cmd/compile/internal/reflectdata 0.013s [no tests to run] ok cmd/compile/internal/ssa 14.298s ok cmd/compile/internal/syntax 0.046s ok cmd/compile/internal/test 16.544s ok cmd/compile/internal/typecheck 0.409s ok cmd/compile/internal/types 0.011s ok cmd/compile/internal/types2 17.657s ok cmd/covdata 0.022s ok cmd/cover 3.014s ok cmd/dist 0.011s ok cmd/distpack 0.011s ok cmd/doc 0.160s ok cmd/fix 7.323s vcs-test.golang.org rerouted to http://127.0.0.1:32802 https://vcs-test.golang.org rerouted to https://127.0.0.1:33257 go test proxy running at GOPROXY=http://127.0.0.1:40509/mod --- FAIL: TestScript (0.11s) --- FAIL: TestScript/work_reject_modfile (0.14s) script_test.go:136: 2024-03-19T19:05:24Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_reject_modfile2754566413 script_test.go:160: # Test that -modfile=path/to/go.mod is rejected in workspace mode. (0.137s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_replace (0.19s) script_test.go:136: 2024-03-19T19:05:24Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_replace1383985222 script_test.go:160: # Support replace statement in go.work file # Replacement in go.work file, and none in go.mod file. (0.090s) # Wildcard replacement in go.work file overrides version replacement in go.mod # file. (0.042s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/autocgo (0.21s) script_test.go:136: 2024-03-19T19:05:24Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/autocgo2379678148 script_test.go:160: # Test automatic setting of CGO_ENABLED based on $CC and what's in $PATH. (0.000s) # Assume we're on a system that can enable cgo normally. (0.048s) # Clearing CC and removing everything but Go from the PATH should usually # disable cgo: no C compiler anymore (unless the baked-in defaultCC is an # absolute path and exists. (0.055s) # Setting CC should re-enable cgo. (0.068s) # So should setting CGO_ENABLED. (0.031s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_run_nonmain (0.34s) script_test.go:136: 2024-03-19T19:05:24Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_run_nonmain69147754 script_test.go:160: > ! go run $PWD [stderr] package example.net/nonmain is not a main package [exit status 1] > ! stderr 'no packages loaded' > stderr '^package example.net/nonmain is not a main package$' matched: package example.net/nonmain is not a main package > ! go run . [stderr] package example.net/nonmain is not a main package [exit status 1] > stderr '^package example.net/nonmain is not a main package$' matched: package example.net/nonmain is not a main package > ! go run ./... [stderr] go: warning: "./..." matched only non-main packages go: no packages loaded from ./... [exit status 1] > stderr '^go: warning: "\./\.\.\." matched only non-main packages$' matched: go: warning: "./..." matched only non-main packages > stderr '^go: no packages loaded from \./\.\.\.$' matched: go: no packages loaded from ./... script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_update_sum_readonly (0.57s) script_test.go:136: 2024-03-19T19:05:24Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_update_sum_readonly296584900 script_test.go:160: # When finding the latest version of a module, we should not download version # contents. Previously, we downloaded .zip files to determine whether a real # .mod file was present in order to decide whether +incompatible versions # could be "latest". # # Verifies #47377. # rsc.io/breaker has two versions, neither of which has a .mod file. (0.416s) # Delete downloaded .zip files. (0.052s) # Check for updates. (0.085s) # We should not have downloaded zips. (0.000s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_retract_versions (0.37s) script_test.go:136: 2024-03-19T19:05:25Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_retract_versions343849663 script_test.go:160: # https://golang.org/issue/44296: the --versions flag should not affect # the version reported by 'go list' in case of retractions. (0.337s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_run_path (0.70s) script_test.go:136: 2024-03-19T19:05:24Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_run_path4082709521 script_test.go:160: # Test that go run does not get confused by conflict # between go.mod's module path and what you'd # expect from GOPATH. golang.org/issue/26046. (0.680s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_run_flags_issue64738 (0.70s) script_test.go:136: 2024-03-19T19:05:25Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_run_flags_issue647381564572474 script_test.go:160: # Regression test for https://go.dev/issue/64738: # a bug in 'go run' caused flags arguments after the requested package to # also be parsed as cmd/go flags. (0.667s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/vendor_resolve (0.06s) script_test.go:136: 2024-03-19T19:05:25Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/vendor_resolve583065935 script_test.go:160: > env GO111MODULE=off > ! go build p [stderr] q/z/z.go:3:8: q/vendor/x must be imported as x [exit status 1] > stderr 'must be imported as x' matched: q/z/z.go:3:8: q/vendor/x must be imported as x script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_retract_rename (0.47s) script_test.go:136: 2024-03-19T19:05:25Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_retract_rename3830084528 script_test.go:160: # Populate go.sum. (0.087s) # 'go list -m -retracted' should load retractions, even if the version # containing retractions has a different module path. (0.068s) # 'go list -m -u' should load retractions, too. (0.079s) # 'go get' should warn about the retracted version. (0.079s) # We can't upgrade, since this latest version has a different module path. (0.097s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_retract_noupgrade (0.16s) script_test.go:136: 2024-03-19T19:05:25Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_retract_noupgrade2924103537 script_test.go:160: > go list -m -u example.com/retract/noupgrade [stdout] example.com/retract/noupgrade v1.0.0 (retracted) > stdout '^example.com/retract/noupgrade v1.0.0 \(retracted\)$' matched: example.com/retract/noupgrade v1.0.0 (retracted) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_retract_incompatible (0.25s) script_test.go:136: 2024-03-19T19:05:25Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_retract_incompatible2152175064 script_test.go:160: # The current version of a module should not be considered when loading # retractions. If the current version is +incompatible, we should not prefer # +incompatible versions when looking for retractions. # Verifies #42601. (0.067s) # Request a +incompatible version retracted in v1.0.0. (0.108s) # We should still see a warning if the +incompatible was previously in the # build list. (0.059s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_retract_replace (0.89s) script_test.go:136: 2024-03-19T19:05:25Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_retract_replace1139337393 script_test.go:160: # If the latest unretracted version of a module is replaced, 'go list' should # obtain retractions from the replacement. # Populate go.sum. (0.158s) # The latest version, v1.9.0, is not available on the proxy. (0.066s) # If we replace that version, we should see retractions. (0.233s) # If we replace the retracted version, we should not see a retraction. (0.077s) # If a replacement version is retracted, we should see a retraction. # It should appear in both the replaced module and the replacement, as other # fields like GoMod do. (0.315s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_why_download_graph (0.95s) script_test.go:136: 2024-03-19T19:05:25Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_why_download_graph2329390308 script_test.go:160: # Test go mod download, why, and graph work in workspace mode. # TODO(bcmills): clarify the interaction with #44435 (0.914s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_retract (0.34s) script_test.go:136: 2024-03-19T19:05:26Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_retract3406611697 script_test.go:160: > cp go.mod go.mod.orig # 'go list pkg' does not report an error when a retracted version is used. (0.093s) # Nor does 'go build'. (0.000s) # Neither 'go list' nor 'go build' should download go.mod from the version # that would list retractions. (0.000s) # Importing a package from a module with a retracted latest version will # select the latest non-retracted version. (0.197s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_match_only_benchmarks (1.69s) script_test.go:136: 2024-03-19T19:05:24Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_match_only_benchmarks3013374527 script_test.go:160: # Matches only benchmarks (1.678s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_retract_fix_version (0.63s) script_test.go:136: 2024-03-19T19:05:25Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_retract_fix_version1875405729 script_test.go:160: # retract must not be used without a module directive. (0.052s) # Commands that update go.mod should fix non-canonical versions in # retract directives. # Verifies #44494. (0.285s) # If a retracted version doesn't match the module's major version suffx, # an error should be reported. (0.288s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_compile_binary (1.91s) script_test.go:136: 2024-03-19T19:05:24Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_compile_binary3505515327 script_test.go:160: > env GO111MODULE=off > ! go test -c compile_binary/... [stderr] # compile_binary # [compile_binary] compile_binary/foo_test.go:1:1: misplaced +build comment [exit status 1] > stderr 'build comment' matched: compile_binary/foo_test.go:1:1: misplaced +build comment script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_vendor_modules_txt_consistent (0.49s) script_test.go:136: 2024-03-19T19:05:26Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_vendor_modules_txt_consistent1863555672 script_test.go:160: > go work vendor > cmp modules.txt.want vendor/modules.txt > go list example.com/a example.com/b [stdout] example.com/a example.com/b # Module required in go.mod but not marked explicit in modules.txt (0.061s) # Replacement in go.mod but no replacement in modules.txt (0.045s) # Replacement in go.mod but different replacement target in modules.txt (0.073s) # Module marked explicit in modules.txt but not required in go.mod (0.065s) # Replacement in modules.txt but not in go.mod (0.106s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_vendor_main_module_replaced (0.23s) script_test.go:136: 2024-03-19T19:05:26Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_vendor_main_module_replaced1903143991 script_test.go:160: # This is a test that if one of the main modules replaces the other # the vendor consistency checks still pass. The replacement is ignored # because it is of a main module, but it is still recorded in # vendor/modules.txt. (0.133s) # Removing the replace causes consistency checks to fail (0.086s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_vendor_modules_txt_conditional (0.88s) script_test.go:136: 2024-03-19T19:05:26Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_vendor_modules_txt_conditional2460986544 script_test.go:160: # This test checks to see if we only start in workspace vendor # mode if the modules.txt specifies ## workspace (and only in # standard vendor if it doesn't). # vendor directory produced for workspace, workspace mode # runs in mod=vendor (0.305s) # vendor directory produced for workspace, module mode # runs in mod=readonly (0.289s) # vendor directory produced for module, module mode # runs in mod=vendor (0.235s) # vendor directory produced for module, workspace mode # runs in mod=readonly (0.043s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_vendor_prune_all (1.21s) script_test.go:136: 2024-03-19T19:05:26Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_vendor_prune_all798762629 script_test.go:160: # This test exercises that vendoring works properly using the workspace in the # the work_prune test case. (1.163s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_retract_rationale (2.02s) script_test.go:136: 2024-03-19T19:05:25Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_retract_rationale1281675739 script_test.go:160: # When there is no rationale, 'go get' should print a hard-coded message. (0.146s) # 'go list' should print the same hard-coded message. (0.128s) # When there is a multi-line message, 'go get' should print the first line. (0.092s) # 'go list' should show the full message. (0.061s) # 'go get' output should be the same whether the retraction appears at top-level # or in a block. (0.092s) # Same for 'go list'. (0.078s) # 'go get' should omit long messages. (0.149s) # 'go list' should show the full message. (0.224s) # 'go get' should omit messages with unprintable characters. (0.094s) # 'go list' should show the full message. (0.117s) # When there is a comment on a block, but not on individual retractions within # the block, the rationale should come from the block comment. (0.213s) # When a version is covered by multiple retractions, all retractions should # be reported in the order they appear in the file. (0.420s) # 'go get' will only report the first retraction to avoid being too verbose. (0.148s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/vendor_list_issue11977 (0.19s) script_test.go:136: 2024-03-19T19:05:27Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/vendor_list_issue119774102569336 script_test.go:160: > env GO111MODULE=off > go list -f '{{join .TestImports "\n"}}' github.com/rsc/go-get-issue-11864/t [stdout] github.com/rsc/go-get-issue-11864/vendor/vendor.org/p github.com/rsc/go-get-issue-11864/vendor/vendor.org/p1 testing > stdout 'go-get-issue-11864/vendor/vendor.org/p' matched: github.com/rsc/go-get-issue-11864/vendor/vendor.org/p > go list -f '{{join .XTestImports "\n"}}' github.com/rsc/go-get-issue-11864/tx [stdout] github.com/rsc/go-get-issue-11864/vendor/vendor.org/p github.com/rsc/go-get-issue-11864/vendor/vendor.org/p1 testing > stdout 'go-get-issue-11864/vendor/vendor.org/p' matched: github.com/rsc/go-get-issue-11864/vendor/vendor.org/p > go list -f '{{join .XTestImports "\n"}}' github.com/rsc/go-get-issue-11864/vendor/vendor.org/tx2 [stdout] github.com/rsc/go-get-issue-11864/vendor/vendor.org/tx2 testing > stdout 'go-get-issue-11864/vendor/vendor.org/tx2' matched: github.com/rsc/go-get-issue-11864/vendor/vendor.org/tx2 > go list -f '{{join .XTestImports "\n"}}' github.com/rsc/go-get-issue-11864/vendor/vendor.org/tx3 [stdout] github.com/rsc/go-get-issue-11864/vendor/vendor.org/tx3 testing > stdout 'go-get-issue-11864/vendor/vendor.org/tx3' matched: github.com/rsc/go-get-issue-11864/vendor/vendor.org/tx3 script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_replace_readonly (0.57s) script_test.go:136: 2024-03-19T19:05:27Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_replace_readonly646594604 script_test.go:160: # Check that with -mod=readonly, when we load a package in a module that is # replaced but not required, we emit an error with the command to add the # requirement. # Verifies golang.org/issue/41416, golang.org/issue/41577. (0.000s) # Replace all versions of a module without requiring it. # With -mod=mod, we'd add a requirement for a "zero" pseudo-version, but we # can't in readonly mode, since its go.mod may alter the build list. (0.246s) # Same test with a specific version. (0.212s) # If there are multiple versions, the highest is suggested. (0.104s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_replace_import (0.56s) script_test.go:136: 2024-03-19T19:05:27Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_replace_import2873338436 script_test.go:160: > env GO111MODULE=on # 'go list' should not add requirements even if they can be resolved locally. (0.099s) # 'go list' should resolve imports using replacements. (0.297s) # The selected modules should prefer longer paths, # but should try shorter paths if needed. # Modules with a major-version suffix should have a corresponding pseudo-version. # Replacements that specify a version should use the latest such version. (0.069s) # The go command should print an informative error when the matched # module does not contain a package. # TODO(#26909): Ideally these errors should include line numbers for the imports within the main module. (0.057s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/vendor_issue12156 (0.16s) script_test.go:136: 2024-03-19T19:05:28Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/vendor_issue121561544710055 script_test.go:160: # Tests issue #12156, a former index out of range panic. (0.133s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/vendor_internal (0.20s) script_test.go:136: 2024-03-19T19:05:28Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/vendor_internal741549013 script_test.go:160: > go build ./vendor/foo.com/internal/bar/a script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_query_empty (0.56s) script_test.go:136: 2024-03-19T19:05:27Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_query_empty1101146224 script_test.go:160: > env GO111MODULE=on > env GOSUMDB=off > go mod download example.com/join@v1.1.0 # If the proxy serves a bogus result for the @latest version, # reading that version should cause 'go get' to fail. (0.106s) # If @v/list is empty, the 'go' command should still try to resolve # other module paths. (0.222s) # If @v/list includes a version that the proxy does not actually serve, # that version is treated as nonexistent. (0.070s) # If the proxy provides an empty @v/list but rejects @latest with # some other explicit error (for example, a "permission denied" error), # that error should be reported to the user (and override a successful # result for other possible module paths). # # Depending on how the specific platform enforces permissions, the 'go get' may # fail either due to the intended permission error or due to a parse error. # We accept either failure message. (0.069s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/vendor_import_wrong (0.08s) script_test.go:136: 2024-03-19T19:05:28Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/vendor_import_wrong1399103886 script_test.go:160: # Wrong import path (0.078s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/vendor_import_missing (0.06s) script_test.go:136: 2024-03-19T19:05:28Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/vendor_import_missing1173556179 script_test.go:160: # Missing package error message (0.050s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_require_exclude (1.53s) script_test.go:136: 2024-03-19T19:05:27Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_require_exclude3152651064 script_test.go:160: # build with no newer version to satisfy exclude (0.000s) # With the selected version excluded, commands that query that version without # updating go.mod should fail. (0.082s) # The failure message should be clear when -mod=vendor is implicit. (0.160s) # With the selected version excluded, commands that load only modules should # drop the excluded module. (0.037s) # With the latest version excluded, 'go list' should resolve needed packages # from the next-highest version. (0.437s) # build with newer version available (0.306s) # build with excluded newer version (0.455s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_query_main (1.20s) script_test.go:136: 2024-03-19T19:05:27Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_query_main2380248507 script_test.go:160: # 'go mod download' can download specific versions of the main module. (0.259s) # 'go mod download' will not download @upgrade or @patch, since they always # resolve to the main module. (0.202s) # 'go list -m' can show a version of the main module. (0.161s) # 'go list -m -versions' shows available versions. (0.091s) # 'go list -m' resolves @upgrade and @patch to the main module. (0.306s) # 'go get' will not attempt to upgrade the main module to any specific version. # See also: mod_get_main.txt. (0.165s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_proxy_invalid (0.19s) script_test.go:136: 2024-03-19T19:05:28Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_proxy_invalid2531740514 script_test.go:160: > env GO111MODULE=on > env GOPROXY=$GOPROXY/invalid > ! go list -m rsc.io/quote@latest [stderr] go: module rsc.io/quote: invalid response from proxy "http://127.0.0.1:40509/mod/invalid": invalid character 'i' looking for beginning of value [exit status 1] > stderr '^go: module rsc.io/quote: invalid response from proxy "'$GOPROXY'": invalid character ''i'' looking for beginning of value$' matched: go: module rsc.io/quote: invalid response from proxy "http://127.0.0.1:40509/mod/invalid": invalid character 'i' looking for beginning of value > ! go list -m rsc.io/quote@1.5.2 [stderr] go: rsc.io/quote@1.5.2: invalid version: invalid response from proxy "http://127.0.0.1:40509/mod/invalid": invalid character 'i' looking for beginning of value [exit status 1] > stderr '^go: rsc.io/quote@1.5.2: invalid version: invalid response from proxy "'$GOPROXY'": invalid character ''i'' looking for beginning of value$' matched: go: rsc.io/quote@1.5.2: invalid version: invalid response from proxy "http://127.0.0.1:40509/mod/invalid": invalid character 'i' looking for beginning of value script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_proxy_https (0.04s) script_test.go:136: 2024-03-19T19:05:28Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_proxy_https795618227 script_test.go:160: > env GO111MODULE=on # GOPROXY file paths must provide the "file://" prefix explicitly. (0.034s) stop script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_query (0.62s) script_test.go:136: 2024-03-19T19:05:28Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_query1216199674 script_test.go:160: > env GO111MODULE=on # TODO(golang.org/issue/41297): we shouldn't need go.sum. None of the commands # below depend on the build list. (0.057s) # Latest rsc.io/quote should be v1.5.2, not v1.5.3-pre1. (0.083s) # Same for rsc.io/quote@v1 and rsc.io/quote@v1.5 (with no patch version). (0.133s) # We should fall back to prereleases if no release tags match... (0.065s) # ...but prefer release versions when given the option. (0.265s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_query_exclude (1.34s) script_test.go:136: 2024-03-19T19:05:27Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_query_exclude2098320321 script_test.go:160: > env GO111MODULE=on # list excluded version (0.060s) # list versions should not print excluded versions (0.107s) # list query with excluded version (0.293s) # get excluded version (0.056s) # get non-excluded version (0.460s) # get query with excluded version (0.327s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_vendor_empty (0.18s) script_test.go:136: 2024-03-19T19:05:29Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_vendor_empty2828962756 script_test.go:160: > go work vendor [stderr] go: warning: "all" matched no packages go: no dependencies to vendor > stderr 'go: no dependencies to vendor' matched: go: no dependencies to vendor > ! exists vendor/modules.txt > ! go list . [stderr] go: no modules were found in the current workspace; see 'go help work' [exit status 1] > stderr 'go: no modules were found in the current workspace' matched: go: no modules were found in the current workspace; see 'go help work' > mkdir vendor > mv bad_modules.txt vendor/modules.txt > ! go list . [stderr] go: no modules were found in the current workspace; see 'go help work' [exit status 1] > stderr 'go: no modules were found in the current workspace' matched: go: no modules were found in the current workspace; see 'go help work' script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_proxy_list (0.66s) script_test.go:136: 2024-03-19T19:05:28Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_proxy_list4123814590 script_test.go:160: > env GO111MODULE=on > env proxy=$GOPROXY # Proxy that can't serve should fail. (0.138s) # get should walk down the proxy list past 404 and 410 responses. (0.137s) # get should not walk past other 4xx errors if proxies are separated with ','. (0.045s) # get should not walk past non-4xx errors if proxies are separated with ','. (0.046s) # get should walk past other 4xx errors if proxies are separated with '|'. (0.096s) # get should walk past non-4xx errors if proxies are separated with '|'. (0.080s) # get should return the final error if that's all we have. (0.048s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_patterns_vendor (0.10s) script_test.go:136: 2024-03-19T19:05:29Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_patterns_vendor3542898154 script_test.go:160: > env GO111MODULE=on > go list -mod=vendor example.com/... [stdout] example.com/x example.com/x/y > stdout ^example.com/x$ matched: example.com/x > stdout ^example.com/x/y$ matched: example.com/x/y > ! stdout ^example.com/x/vendor script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_off_init (0.06s) script_test.go:136: 2024-03-19T19:05:29Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_off_init2536403054 script_test.go:160: # 'go mod init' should refuse to initialize a module if it will be # ignored anyway due to GO111MODULE=off. (0.060s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/vendor_import (0.66s) script_test.go:136: 2024-03-19T19:05:28Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/vendor_import3852674818 script_test.go:160: # Imports (0.000s) # Pass -e to permit errors (e.g. bad.go, invalid.go) (0.633s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_use_only_dirs (0.12s) script_test.go:136: 2024-03-19T19:05:29Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_use_only_dirs3535568794 script_test.go:160: > ! go work use foo bar baz [stderr] go: foo is not a directory go: directory baz does not exist [exit status 1] > stderr '^go: foo is not a directory' matched: go: foo is not a directory > stderr '^go: directory baz does not exist' matched: go: directory baz does not exist > cmp go.work go.work_want > ! go work use -r qux [stderr] go: qux is not a directory [exit status 1] > stderr '^go: qux is not a directory' matched: go: qux is not a directory script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_off (0.32s) script_test.go:136: 2024-03-19T19:05:29Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_off1439817300 script_test.go:160: > env GO111MODULE=off # This script tests that running go mod with # GO111MODULE=off when outside of GOPATH will fatal # with an error message, even with some source code in the directory and a go.mod. (0.140s) # Same result in an empty directory (0.180s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_use_issue55952 (0.07s) script_test.go:136: 2024-03-19T19:05:29Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_use_issue559523613864733 script_test.go:160: > ! go list . [stderr] go: cannot load module y listed in go.work file: open y/go.mod: no such file or directory [exit status 1] > stderr '^go: cannot load module y listed in go\.work file: open y'${/}'go\.mod:' matched: go: cannot load module y listed in go.work file: open y/go.mod: no such file or directory script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_use_issue50958 (0.04s) script_test.go:136: 2024-03-19T19:05:29Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_use_issue509583235310060 script_test.go:160: > go work use -r . > cmp go.work go.work.want script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_vet (3.73s) script_test.go:136: 2024-03-19T19:05:26Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_vet2974830140 script_test.go:160: > ! go vet ./a [stderr] # example.com/a a/a.go:6:5: fmt.Println call has possible Printf formatting directive %s [exit status 1] > stderr 'fmt.Println call has possible Printf formatting directive' matched: a/a.go:6:5: fmt.Println call has possible Printf formatting directive %s script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/vendor_complex (0.94s) script_test.go:136: 2024-03-19T19:05:29Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/vendor_complex2767472378 script_test.go:160: > env GO111MODULE=off # smoke test for complex build configuration (0.912s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_use_deleted (0.06s) script_test.go:136: 2024-03-19T19:05:29Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_use_deleted888768682 script_test.go:160: > go work use -r . > cmp go.work go.work.want script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_use_dot (0.34s) script_test.go:136: 2024-03-19T19:05:29Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_use_dot4021959331 script_test.go:160: > cp go.work go.work.orig # If the current directory contains a go.mod file, # 'go work use .' should add an entry for it. (0.040s) # If the current directory lacks a go.mod file, 'go work use .' # should remove its entry. (0.043s) # If the path is absolute, it should remain absolute. (0.109s) # An absolute path should replace an entry for the corresponding relative path # and vice-versa. (0.090s) # If both the absolute and relative paths are named, 'go work use' should error # out: we don't know which one to use, and shouldn't add both because the # resulting workspace would contain a duplicate module. (0.041s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_use (0.27s) script_test.go:136: 2024-03-19T19:05:29Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_use3232708369 script_test.go:160: > go work use -r foo > cmp go.work go.want_work_r > ! go work use other [stderr] go: error reading other/go.mod: missing module declaration. To specify the module path: go mod edit -module=example.com/mod [exit status 1] > stderr '^go: error reading other'${/}'go.mod: missing module declaration' matched: go: error reading other/go.mod: missing module declaration. To specify the module path: > go mod edit -C other -module=other > go work use other > cmp go.work go.want_work_other script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_use_toolchain (1.04s) script_test.go:136: 2024-03-19T19:05:29Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_use_toolchain2720082552 script_test.go:160: # Create basic modules and work space. (0.493s) # work use with older modules should leave go 1.50 in the go.work. (0.035s) # work use with newer modules should bump go and toolchain, # including updating to a newer toolchain as needed. (0.187s) # work use with an even newer module should bump go again. (0.108s) # work use with an even newer module should bump go and toolchain again. (0.207s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_sync_relevant_dependency (0.08s) script_test.go:136: 2024-03-19T19:05:30Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_sync_relevant_dependency3522918427 script_test.go:160: # Test of go work sync in a workspace in which some dependency in the build # list of 'b' (but not otherwise needed by `b`, so not seen when lazy loading # occurs) actually is relevant to `a`. # # a -> p 1.0 # b -> q 1.1 -> p 1.1 (0.063s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_sync_missing_module (0.09s) script_test.go:136: 2024-03-19T19:05:30Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_sync_missing_module1172030845 script_test.go:160: # Ensure go work sync works without any modules in go.work. (0.036s) # Ensure go work sync works even without a go.mod file. (0.030s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_sync_irrelevant_dependency (0.16s) script_test.go:136: 2024-03-19T19:05:30Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_sync_irrelevant_dependency1714678672 script_test.go:160: # Test of go work sync in a workspace in which some dependency needed by `a` # appears at a lower version in the build list of `b`, but is not needed at all # by `b` (so it should not be upgraded within b). # # a -> p 1.1 # b -> q 1.0 -(through a test dependency)-> p 1.0 (0.148s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_sync_sum (0.55s) script_test.go:136: 2024-03-19T19:05:30Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_sync_sum1950393685 script_test.go:160: # Test that the sum file data state is properly reset between modules in # go work sync so that the sum file that's written is correct. # Exercises the fix to #50038. (0.000s) # As a sanity check, verify b/go.sum is tidy. (0.200s) # Run go work sync and verify it doesn't change b/go.sum. (0.321s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_notall (0.44s) script_test.go:136: 2024-03-19T19:05:30Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_notall2294909696 script_test.go:160: # This test demonstrates go commands that combine the 'all' pattern # with packages outside of 'all'. # With -deps, 'all' should include test dependencies of packages in the main # module, but not should not include test dependencies of packages imported only # by other root patterns. (0.067s) # With -deps -test, test dependencies of other roots should be included, # but test dependencies of non-roots should not. (0.348s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_sync (0.09s) script_test.go:136: 2024-03-19T19:05:30Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_sync1118507699 script_test.go:160: > go work sync > cmp a/go.mod a/want_go.mod > cmp b/go.mod b/want_go.mod script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/vendor_outside_module (3.98s) script_test.go:136: 2024-03-19T19:05:26Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/vendor_outside_module1521927184 script_test.go:160: # baz.go (importing just fmt) works with -mod=mod, -mod=vendor. (2.205s) # baz_with_outside_dep.go (with a non-std dependency) works with -mod=mod # but not with -mod=readonly and -mod=vendor. (1.679s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/tooltags (0.97s) script_test.go:136: 2024-03-19T19:05:29Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/tooltags1362157858 script_test.go:160: > env GOOS=linux > env GOARCH=amd64 > env GOAMD64=v3 > go list -f '{{context.ToolTags}}' [stdout] [goexperiment.regabiwrappers goexperiment.regabiargs goexperiment.coverageredesign goexperiment.allocheaders goexperiment.exectracer2 amd64.v1 amd64.v2 amd64.v3] > stdout 'amd64.v1 amd64.v2 amd64.v3' matched: [goexperiment.regabiwrappers goexperiment.regabiargs goexperiment.coverageredesign goexperiment.allocheaders goexperiment.exectracer2 amd64.v1 amd64.v2 amd64.v3] > env GOARCH=arm > env GOARM=6 > go list -f '{{context.ToolTags}}' [stdout] [goexperiment.coverageredesign goexperiment.allocheaders goexperiment.exectracer2 arm.5 arm.6] > stdout 'arm.5 arm.6' matched: [goexperiment.coverageredesign goexperiment.allocheaders goexperiment.exectracer2 arm.5 arm.6] > env GOARCH=mips > env GOMIPS=hardfloat > go list -f '{{context.ToolTags}}' [stdout] [goexperiment.coverageredesign goexperiment.allocheaders goexperiment.exectracer2 mips.hardfloat] > stdout 'mips.hardfloat' matched: [goexperiment.coverageredesign goexperiment.allocheaders goexperiment.exectracer2 mips.hardfloat] > env GOARCH=mips64 > env GOMIPS=hardfloat > go list -f '{{context.ToolTags}}' [stdout] [goexperiment.coverageredesign goexperiment.allocheaders goexperiment.exectracer2 mips64.hardfloat] > stdout 'mips64.hardfloat' matched: [goexperiment.coverageredesign goexperiment.allocheaders goexperiment.exectracer2 mips64.hardfloat] > env GOARCH=ppc64 > env GOPPC64=power9 > go list -f '{{context.ToolTags}}' [stdout] [goexperiment.regabiwrappers goexperiment.regabiargs goexperiment.coverageredesign goexperiment.allocheaders goexperiment.exectracer2 ppc64.power8 ppc64.power9] > stdout 'ppc64.power8 ppc64.power9' matched: [goexperiment.regabiwrappers goexperiment.regabiargs goexperiment.coverageredesign goexperiment.allocheaders goexperiment.exectracer2 ppc64.power8 ppc64.power9] > env GOARCH=ppc64 > env GOPPC64=power10 > go list -f '{{context.ToolTags}}' [stdout] [goexperiment.regabiwrappers goexperiment.regabiargs goexperiment.coverageredesign goexperiment.allocheaders goexperiment.exectracer2 ppc64.power8 ppc64.power9 ppc64.power10] > stdout 'ppc64.power8 ppc64.power9 ppc64.power10' matched: [goexperiment.regabiwrappers goexperiment.regabiargs goexperiment.coverageredesign goexperiment.allocheaders goexperiment.exectracer2 ppc64.power8 ppc64.power9 ppc64.power10] > env GOARCH=ppc64le > env GOPPC64=power9 > go list -f '{{context.ToolTags}}' [stdout] [goexperiment.regabiwrappers goexperiment.regabiargs goexperiment.coverageredesign goexperiment.allocheaders goexperiment.exectracer2 ppc64le.power8 ppc64le.power9] > stdout 'ppc64le.power8 ppc64le.power9' matched: [goexperiment.regabiwrappers goexperiment.regabiargs goexperiment.coverageredesign goexperiment.allocheaders goexperiment.exectracer2 ppc64le.power8 ppc64le.power9] > env GOARCH=ppc64le > env GOPPC64=power10 > go list -f '{{context.ToolTags}}' [stdout] [goexperiment.regabiwrappers goexperiment.regabiargs goexperiment.coverageredesign goexperiment.allocheaders goexperiment.exectracer2 ppc64le.power8 ppc64le.power9 ppc64le.power10] > stdout 'ppc64le.power8 ppc64le.power9 ppc64le.power10' matched: [goexperiment.regabiwrappers goexperiment.regabiargs goexperiment.coverageredesign goexperiment.allocheaders goexperiment.exectracer2 ppc64le.power8 ppc64le.power9 ppc64le.power10] > env GOARCH=riscv64 > env GORISCV64=rva20u64 > go list -f '{{context.ToolTags}}' [stdout] [goexperiment.regabiwrappers goexperiment.regabiargs goexperiment.coverageredesign goexperiment.allocheaders goexperiment.exectracer2 riscv64.rva20u64] > stdout 'riscv64.rva20u64' matched: [goexperiment.regabiwrappers goexperiment.regabiargs goexperiment.coverageredesign goexperiment.allocheaders goexperiment.exectracer2 riscv64.rva20u64] > env GOARCH=riscv64 > env GORISCV64=rva22u64 > go list -f '{{context.ToolTags}}' [stdout] [goexperiment.regabiwrappers goexperiment.regabiargs goexperiment.coverageredesign goexperiment.allocheaders goexperiment.exectracer2 riscv64.rva20u64 riscv64.rva22u64] > stdout 'riscv64.rva20u64 riscv64.rva22u64' matched: [goexperiment.regabiwrappers goexperiment.regabiargs goexperiment.coverageredesign goexperiment.allocheaders goexperiment.exectracer2 riscv64.rva20u64 riscv64.rva22u64] > env GOARCH=riscv64 > env GORISCV64=rva22 > ! go list -f '{{context.ToolTags}}' [stderr] go: invalid GORISCV64: must be rva20u64, rva22u64 [exit status 2] > stderr 'go: invalid GORISCV64: must be rva20u64, rva22u64' matched: go: invalid GORISCV64: must be rva20u64, rva22u64 > env GOARCH=riscv64 > env GORISCV64= > go list -f '{{context.ToolTags}}' [stdout] [goexperiment.regabiwrappers goexperiment.regabiargs goexperiment.coverageredesign goexperiment.allocheaders goexperiment.exectracer2 riscv64.rva20u64] > stdout 'riscv64.rva20u64' matched: [goexperiment.regabiwrappers goexperiment.regabiargs goexperiment.coverageredesign goexperiment.allocheaders goexperiment.exectracer2 riscv64.rva20u64] > env GOARCH=386 > env GO386=sse2 > go list -f '{{context.ToolTags}}' [stdout] [goexperiment.coverageredesign goexperiment.allocheaders goexperiment.exectracer2 386.sse2] > stdout '386.sse2' matched: [goexperiment.coverageredesign goexperiment.allocheaders goexperiment.exectracer2 386.sse2] > env GOARCH=wasm > env GOWASM=satconv > go list -f '{{context.ToolTags}}' [stdout] [goexperiment.coverageredesign goexperiment.allocheaders goexperiment.exectracer2 wasm.satconv] > stdout 'wasm.satconv' matched: [goexperiment.coverageredesign goexperiment.allocheaders goexperiment.exectracer2 wasm.satconv] script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_replace_conflict_override (0.07s) script_test.go:136: 2024-03-19T19:05:30Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_replace_conflict_override4109317806 script_test.go:160: # Conflicting workspace module replaces can be overridden by a replace in the # go.work file. (0.044s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_replace_main_module (0.10s) script_test.go:136: 2024-03-19T19:05:30Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_replace_main_module1194846232 script_test.go:160: # Ensure that replaces of the main module in workspace modules # are ignored, and replaces in the go.work file are disallowed. # This tests against an issue where requirements of the # main module were being ignored because the main module # was replaced in a transitive dependency with another # version. (0.091s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_sum_mismatch (0.17s) script_test.go:136: 2024-03-19T19:05:30Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_sum_mismatch4000315630 script_test.go:160: # Test mismatched sums in go.sum files (0.111s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_load_badzip (0.24s) script_test.go:136: 2024-03-19T19:05:30Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_load_badzip2002371604 script_test.go:160: # Zip files with unexpected file names inside should be rejected. (0.218s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_replace_conflict (0.32s) script_test.go:136: 2024-03-19T19:05:30Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_replace_conflict565143879 script_test.go:160: # Conflicting replaces in workspace modules returns error that suggests # overriding it in the go.work file. (0.298s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_load_badmod (0.39s) script_test.go:136: 2024-03-19T19:05:30Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_load_badmod4179443122 script_test.go:160: # Unknown lines should be ignored in dependency go.mod files. (0.206s) # ... and in replaced dependency go.mod files. (0.133s) # ... but not in the main module. (0.027s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_sync_toolchain (1.45s) script_test.go:136: 2024-03-19T19:05:29Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_sync_toolchain4237759666 script_test.go:160: # Create basic modules and work space. (0.368s) # work sync with older modules should leave go 1.50 in the go.work. (0.129s) # work sync with newer modules should update go 1.21 -> 1.22.1 and toolchain -> go1.22.9 in go.work (0.370s) # work sync with newer modules should update go 1.22.1 -> 1.24rc1 and drop toolchain (0.582s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_script_cmdcd (0.06s) script_test.go:136: 2024-03-19T19:05:31Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_script_cmdcd1098558988 script_test.go:160: # Tests that after a cd command, where usually the UNIX path separator is used, # a match against $PWD does not fail on Windows. (0.049s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_overlay (2.62s) script_test.go:136: 2024-03-19T19:05:29Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_overlay2585380931 script_test.go:160: # Test overlays that affect go.mod files # The go.mod file can exist only in the overlay. (0.167s) # Check content of overlaid go.mod is used. (0.097s) # Check content of overlaid go.mod in a replacement module is used. # The go.mod in the replacement module is missing a requirement # that the overlay has, so it will fail to list without the overlay. (0.140s) # Overlaid go.mod is not rewritten by 'go get'. (0.074s) # Content of overlaid go.sum is used. # The go.sum in the module directory has garbage values for its # hashes, but the overlaid file has the correct values. If # the correct go.sum is used with the overlay, 'go get .' should # not report a security error. (0.389s) # Overlaid go.sum is not rewritten. # Copy an incomplete file to the overlay file, and expect an error # attempting to update the file (0.450s) # -overlay works with -modfile. # There's an empty go.mod file in the directory, and the file alternate.mod is # overlaid to the true go.mod file, so the -modfile flag and the overlay # mechanism need to work together to determine the name of the module. (0.046s) # Even with -modfile, overlaid files can't be opened for write. (0.506s) # Carving out a module by adding an overlaid go.mod file (0.203s) # Carving out a module by adding an overlaid go.mod file and using # -modfile to write to that file. (0.055s) # Editing go.mod file fails because overlay is read only (0.166s) # Editing go.mod file succeeds because we use -modfile to redirect to same file (0.247s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_syntax_error_says_fail (0.88s) script_test.go:136: 2024-03-19T19:05:31Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_syntax_error_says_fail3075819637 script_test.go:160: # Test that the error message for a syntax error in a test go file # says FAIL. (0.871s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_no_gopath (0.23s) script_test.go:136: 2024-03-19T19:05:31Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_no_gopath1507094865 script_test.go:160: # https://golang.org/issue/43938: 'go build' should succeed # if GOPATH and the variables needed for its default value # are all unset but not relevant to the specific command. (0.231s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_sum (1.54s) script_test.go:136: 2024-03-19T19:05:30Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_sum4208397034 script_test.go:160: # Test adding sums to go.work.sum when sum isn't in go.mod. (1.478s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_list_upgrade_pseudo (0.76s) script_test.go:136: 2024-03-19T19:05:32Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_list_upgrade_pseudo1767191601 script_test.go:160: > env GO111MODULE=on # For this test module there are three versions: # * v0.1.1-0.20190429073117-b5426c86b553 # * v0.1.0 # * v0.0.0-20190430073000-30950c05d534 # Only v0.1.0 is tagged. # # The v0.1.1 pseudo-version is semantically higher than the latest tag. # The v0.0.0 pseudo-version is chronologically newer. # The latest pseudo-version is semantically higher than the latest tag. # 'list -u' should not suggest a lower version as an upgrade. (0.740s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_list_upgrade (0.18s) script_test.go:136: 2024-03-19T19:05:32Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_list_upgrade303744383 script_test.go:160: > env GO111MODULE=on # Populate go.sum (0.082s) # Check for upgrades. (0.081s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_vendor (2.82s) script_test.go:136: 2024-03-19T19:05:30Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_vendor1792835910 script_test.go:160: # In GOPATH mode, vendored packages can replace std packages. (1.570s) # In module mode, they cannot. (1.240s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_list_update_nolatest (0.40s) script_test.go:136: 2024-03-19T19:05:33Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_list_update_nolatest2630663101 script_test.go:160: # Check that if a proxy does not have a version of a module that could be # an upgrade, 'go list -m -u' still succeeds. # We use a local file proxy, since our test proxy doesn't have the behavior # we want to test, and we don't want it to be too clever. # Verifies #45305, where proxy.golang.org serves an empty /@v/list (200) # but has no /@latest (410) because the go.mod at the tip of the default # branch has a different major version suffix. (0.000s) # If the proxy does not return a list of versions (404/410) # or a latest version (404/410), we should see no error. (0.114s) # If the proxy returns an empty list of versions (200, not 404/410) # but does not have a latest version (404/410), we should see no error. (0.230s) # If proxy returns an invalid response, we should see an error. (0.043s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_status (2.51s) script_test.go:136: 2024-03-19T19:05:31Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_status3730119288 script_test.go:160: > env GO111MODULE=off > ! go test x y [stdout] --- FAIL: TestNothingJustFail (0.00s) FAIL FAIL x 0.026s ok y 0.031s [no tests to run] FAIL [exit status 1] > stdout ^FAIL\s+x matched: FAIL x 0.026s > stdout ^ok\s+y matched: ok y 0.031s [no tests to run] > stdout (?-m)FAIL\n$ matched: FAIL script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_relative_import (1.81s) script_test.go:136: 2024-03-19T19:05:31Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_relative_import259257428 script_test.go:160: # Relative imports in go test (0.000s) # Run tests outside GOPATH. (1.804s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_list_test_cycle (0.44s) script_test.go:136: 2024-03-19T19:05:33Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_list_test_cycle506989004 script_test.go:160: # https://golang.org/issue/45863: a typo in a test package leading to an # import cycle should be diagnosed, instead of causing an infinite loop. # The failure mode of this test prior to the fix was a timeout or OOM crash. (0.413s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_list_sums (0.35s) script_test.go:136: 2024-03-19T19:05:33Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_list_sums386772201 script_test.go:160: # https://golang.org/issue/41297: 'go list -m' should not require go.sum with # -versions or when all args are version queries. (0.211s) # Incidentally fetching the required version of a module records its checksum, # just because it happens to be in the build list, and recording the checksum # triggers an error under -mod=readonly. # # TODO(#41297): This should not be an error. (0.072s) # Attempting to list the versions of a module that is not a root dependency # causes the build list to be resolved (so that the selected version can *also* # be identified, even though it is not relevant to this particular output). # That, in turn, causes us to need checksums for the go.sum files for the # modules in the module graph. # # TODO(#41297): This should not be an error either. (0.052s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_regexps (1.87s) script_test.go:136: 2024-03-19T19:05:32Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_regexps1869532217 script_test.go:160: > go test -cpu=1 -run=X/Y -bench=X/Y -count=2 -v testregexp [stdout] === RUN TestX x_test.go:6: LOG: X running === RUN TestX/Y x_test.go:8: LOG: Y running --- PASS: TestX (0.00s) --- PASS: TestX/Y (0.00s) === RUN TestXX z_test.go:10: LOG: XX running --- PASS: TestXX (0.00s) === RUN TestX x_test.go:6: LOG: X running === RUN TestX/Y x_test.go:8: LOG: Y running --- PASS: TestX (0.00s) --- PASS: TestX/Y (0.00s) === RUN TestXX z_test.go:10: LOG: XX running --- PASS: TestXX (0.00s) goos: openbsd goarch: amd64 pkg: testregexp cpu: Intel(R) Xeon(R) CPU @ 2.80GHz BenchmarkX x_test.go:13: LOG: X running N=1 BenchmarkX/Y x_test.go:15: LOG: Y running N=1 x_test.go:15: LOG: Y running N=100 x_test.go:15: LOG: Y running N=10000 x_test.go:15: LOG: Y running N=1000000 x_test.go:15: LOG: Y running N=100000000 x_test.go:15: LOG: Y running N=1000000000 BenchmarkX/Y 1000000000 0.0001840 ns/op x_test.go:15: LOG: Y running N=1 x_test.go:15: LOG: Y running N=100 x_test.go:15: LOG: Y running N=10000 x_test.go:15: LOG: Y running N=1000000 x_test.go:15: LOG: Y running N=100000000 x_test.go:15: LOG: Y running N=1000000000 BenchmarkX/Y 1000000000 0.0000223 ns/op BenchmarkXX z_test.go:18: LOG: XX running N=1 PASS ok testregexp 0.097s # Test the following: # TestX is run, twice (0.000s) # TestX/Y is run, twice (0.000s) # TestXX is run, twice (0.001s) # TestZ is not run (0.000s) # BenchmarkX is run with N=1 once, only to discover what sub-benchmarks it has, # and should not print a final summary line. (0.000s) # Same for BenchmarkXX. (0.000s) # BenchmarkX/Y is run in full twice due to -count=2. # "Run in full" means that it runs for approximately the default benchtime, # but may cap out at N=1e9. # We don't actually care what the final iteration count is, but it should be # a large number, and the last iteration count prints right before the results. (0.000s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_relative_cmdline (2.17s) script_test.go:136: 2024-03-19T19:05:31Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_relative_cmdline1750743052 script_test.go:160: # Relative imports in command line package (0.000s) # Run tests outside GOPATH. (2.157s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_install_hint (0.24s) script_test.go:136: 2024-03-19T19:05:33Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_install_hint1823779665 script_test.go:160: # Module is replaced but not required. No hint appears as no module is suggested. (0.235s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_list_pseudo (0.61s) script_test.go:136: 2024-03-19T19:05:33Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_list_pseudo1913218069 script_test.go:160: > env GO111MODULE=on # Regression test for golang.org/issue/32715. # When using $GOPATH/pkg/mod/cache/download as a proxy, # 'latest' queries should prefer tagged versions over pseudo-versions. (0.364s) # If the module proxy contains only pseudo-versions, 'latest' should stat # the version with the most recent timestamp — not the highest semantic # version — and return its metadata. (0.207s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_list_e_readonly (0.05s) script_test.go:136: 2024-03-19T19:05:34Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_list_e_readonly3923480510 script_test.go:160: # 'go list -mod=readonly -e should attribute errors # to individual missing packages. # Verifies golang.org/issue/34829. (0.046s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_list_test (1.10s) script_test.go:136: 2024-03-19T19:05:33Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_list_test158654326 script_test.go:160: > env GO111MODULE=on # go list -compiled -test must handle test-only packages # golang.org/issue/27097. (0.619s) # https://golang.org/issue/39974: test packages should have the Module field populated. (0.482s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_list_m (0.63s) script_test.go:136: 2024-03-19T19:05:34Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_list_m54746897 script_test.go:160: > go mod tidy [stderr] go: downloading rsc.io/quote v1.5.1 go: downloading rsc.io/sampler v1.3.0 go: downloading golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c go: finding module for package rsc.io/testonly go: downloading rsc.io/testonly v1.0.0 go: found rsc.io/testonly in rsc.io/testonly v1.0.0 > go list -m -json all [stdout] { "Path": "example", "Main": true, "Dir": "/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_list_m54746897/gopath/src", "GoMod": "/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_list_m54746897/gopath/src/go.mod", "GoVersion": "1.21" } { "Path": "golang.org/x/text", "Version": "v0.0.0-20170915032832-14c0d48ead0c", "Time": "2017-09-15T03:28:32Z", "Indirect": true, "Dir": "/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_list_m54746897/gopath/pkg/mod/golang.org/x/text@v0.0.0-20170915032832-14c0d48ead0c", "GoMod": "/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_list_m54746897/gopath/pkg/mod/cache/download/golang.org/x/text/@v/v0.0.0-20170915032832-14c0d48ead0c.mod", "Sum": "h1:pvCbr/wm8HzDD3fVywevekufpn6tCGPY3spdHeZJEsw=", "GoModSum": "h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=" } { "Path": "rsc.io/quote", "Version": "v1.5.1", "Time": "2018-02-14T00:58:40Z", "Dir": "/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_list_m54746897/gopath/pkg/mod/rsc.io/quote@v1.5.1", "GoMod": "/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_list_m54746897/gopath/pkg/mod/cache/download/rsc.io/quote/@v/v1.5.1.mod", "Sum": "h1:ZE3OgnVGrhXtFkGw90HwW992ZRqcdli/33DLqEYsoxA=", "GoModSum": "h1:LzX7hefJvL54yjefDEDHNONDjII0t9xZLPXsUe+TKr0=" } { "Path": "rsc.io/sampler", "Version": "v1.3.0", "Time": "2018-02-13T19:05:03Z", "Indirect": true, "Dir": "/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_list_m54746897/gopath/pkg/mod/rsc.io/sampler@v1.3.0", "GoMod": "/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_list_m54746897/gopath/pkg/mod/cache/download/rsc.io/sampler/@v/v1.3.0.mod", "Sum": "h1:HLGR/BgEtI3r0uymSP/nl2uPLsUnNJX8toRyhfpBTII=", "GoModSum": "h1:T1hPZKmBbMNahiBKFy5HrXp6adAjACjK9JXDnKaTXpA=" } { "Path": "rsc.io/testonly", "Version": "v1.0.0", "Time": "0001-01-01T00:00:00Z", "Indirect": true, "Dir": "/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_list_m54746897/gopath/pkg/mod/rsc.io/testonly@v1.0.0", "GoMod": "/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_list_m54746897/gopath/pkg/mod/cache/download/rsc.io/testonly/@v/v1.0.0.mod", "Sum": "h1:K/VWHdO+Jv7woUXG0GzVNx1czBXUt3Ib1deaMn+xk64=", "GoModSum": "h1:OqmGbIFOcF+XrFReLOGZ6BhMM7uMBiQwZsyNmh74SzY=" } > stdout '"GoModSum":\s+"h1:.+"' matched: "GoModSum": "h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=" > stdout '"Sum":\s+"h1:.+"' matched: "Sum": "h1:pvCbr/wm8HzDD3fVywevekufpn6tCGPY3spdHeZJEsw=", script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_list_replace_dir (0.84s) script_test.go:136: 2024-03-19T19:05:33Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_list_replace_dir273325074 script_test.go:160: # Test that "go list" succeeds when given a directory in a replacement # module within the module cache. # Verifies golang.org/issue/29548 # Populate go.sum and download dependencies. (0.236s) # Ensure v1.5.2 is also in the cache so we can list it. (0.545s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_nomod (3.42s) script_test.go:136: 2024-03-19T19:05:31Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_nomod2125896938 script_test.go:160: # Test go commands with no module. (0.000s) # go mod edit fails unless given explicit mod file argument (0.088s) # bug succeeds (2.095s) # commands that load the package in the current directory fail (0.617s) # clean succeeds, even with -modcache (0.034s) # doc succeeds for standard library (0.242s) # env succeeds (0.253s) # tool succeeds (0.051s) # version succeeds (0.036s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_missingpkg_prerelease (0.19s) script_test.go:136: 2024-03-19T19:05:34Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_missingpkg_prerelease3034666719 script_test.go:160: > env GO111MODULE=on > ! go list -mod=mod -deps use.go [stdout] example.com/missingpkg/deprecated example.com/missingpkg example.com/usemissingpre command-line-arguments [stderr] go: finding module for package example.com/usemissingpre go: finding module for package example.com/missingpkg/deprecated go: downloading example.com v1.0.0 go: downloading example.com/usemissingpre v1.0.0 go: downloading example.com/missingpkg v1.0.0 go: found example.com/missingpkg/deprecated in example.com/missingpkg v1.0.0 go: found example.com/usemissingpre in example.com/usemissingpre v1.0.0 go: downloading example.com/missingpkg v1.0.1-beta go: finding module for package example.com/missingpkg/deprecated use.go:4:2: package example.com/missingpkg/deprecated provided by example.com/missingpkg at latest version v1.0.0 but not at required version v1.0.1-beta [exit status 1] > stderr '^use.go:4:2: package example.com/missingpkg/deprecated provided by example.com/missingpkg at latest version v1.0.0 but not at required version v1.0.1-beta$' matched: use.go:4:2: package example.com/missingpkg/deprecated provided by example.com/missingpkg at latest version v1.0.0 but not at required version v1.0.1-beta script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_local_replace (0.05s) script_test.go:136: 2024-03-19T19:05:34Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_local_replace3423580619 script_test.go:160: # Test that local replacements work even with dummy module names. # golang.org/issue/24100. (0.039s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_load_replace_mismatch (0.10s) script_test.go:136: 2024-03-19T19:05:34Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_load_replace_mismatch711111804 script_test.go:160: # If a replacement module declares a module path different from both # the original module and its location, report an error with all three paths. # In particular, the "required as" path should be the original. # Verifies golang.org/issue/38220. (0.076s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_list_deprecated_replace (0.48s) script_test.go:136: 2024-03-19T19:05:34Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_list_deprecated_replace2238755560 script_test.go:160: # When all versions are replaced, we should not look up a deprecation message. # We will still look up a deprecation message for the replacement. (0.213s) # When one version is replaced, we should see a deprecation message. (0.104s) # If the replacement is a directory, we won't look that up. (0.055s) # If the latest version of the replacement is replaced, we'll use the content # from that replacement. (0.080s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_race_install_cgo (1.53s) script_test.go:136: 2024-03-19T19:05:34Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_race_install_cgo3459278483 script_test.go:160: # Tests Issue #10500 (1.490s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_list_deprecated (0.82s) script_test.go:136: 2024-03-19T19:05:34Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_list_deprecated2277039839 script_test.go:160: # 'go list pkg' does not show deprecation. (0.070s) # 'go list -m' does not show deprecation. (0.031s) # 'go list -m -versions' does not show deprecation. (0.035s) # 'go list -m -u' shows deprecation. (0.036s) # 'go list -m -u -f' exposes the deprecation message. (0.082s) # This works even if we use an old version that does not have the deprecation # message in its go.mod file. (0.192s) # 'go list -m -u' does not show deprecation for the main module. (0.131s) # 'go list -m -u' does not show a deprecation message for a module that is not # deprecated at the latest version, even if it is deprecated at the current # version. (0.164s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_no_tests (0.59s) script_test.go:136: 2024-03-19T19:05:35Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_no_tests1092740451 script_test.go:160: # Tests issue #26242 (0.590s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_list_retract (2.21s) script_test.go:136: 2024-03-19T19:05:33Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_list_retract1015630502 script_test.go:160: # 'go list -mod=vendor -retracted' reports an error. (0.121s) # 'go list -retracted' reports an error in GOPATH mode. (0.054s) # 'go list pkg' does not show retraction. (0.083s) # 'go list -retracted pkg' shows retraction. (0.149s) # 'go list -m' does not show retraction. (0.056s) # 'go list -m -retracted' shows retraction. (0.078s) # 'go list -m mod@version' does not show retraction. (0.107s) # 'go list -m -retracted mod@version' does not show an error if the module # that would contain the retraction is unavailable. See #45305. (0.204s) # 'go list -m -retracted mod@version' shows retractions. (0.095s) # 'go list -m mod@latest' selects a previous release version, not self-retracted latest. (0.161s) # 'go list -m -retracted mod@latest' selects the self-retracted latest version. (0.070s) # 'go list -m mod@latest' selects a pre-release version if all release versions are retracted. (0.132s) # 'go list -m -retracted mod@latest' selects the self-retracted latest version. (0.088s) # 'go list -m mod@latest' selects a pseudo-version if all versions are retracted. # TODO(golang.org/issue/24031): the proxy does not expose the pseudo-version, # even if all release versions are retracted. (0.137s) # 'go list -m mod@latest' reports an error if all versions are retracted. (0.052s) # 'go list -m mod@ env GO111MODULE=on # initial standalone module should use no downloaded modules (0.117s) # v2 import should use a downloaded module # both without an explicit go.mod entry ... (0.752s) # ... and with one ... (0.484s) # ... and even if there is a v2 module in a subdirectory. (0.301s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_minus_n (1.27s) script_test.go:136: 2024-03-19T19:05:35Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_minus_n326570367 script_test.go:160: # The intent here is to verify that 'go test -n' works without crashing. # Any test will do. (1.257s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_wild (0.34s) script_test.go:136: 2024-03-19T19:05:37Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_wild1250878968 script_test.go:160: # This test covers a crazy edge-case involving wildcards and multiple passes of # patch-upgrades, but if we get it right we probably get many other edge-cases # right too. (0.040s) # Requesting pattern example.../b by itself fails: there is no such module # already in the build list, and the wildcard in the first element prevents us # from attempting to resolve a new module whose path is a prefix of the pattern. (0.093s) # Patching . causes a patch to example.net/a, which introduces a new match # for example.net/b/..., which is itself patched and causes another upgrade to # example.net/a, which is then patched again. (0.194s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_match_only_tests (1.78s) script_test.go:136: 2024-03-19T19:05:35Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_match_only_tests3562787870 script_test.go:160: # Matches only tests (1.766s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_match_only_subtests_parallel (1.75s) script_test.go:136: 2024-03-19T19:05:35Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_match_only_subtests_parallel1858129715 script_test.go:160: # Matches only subtests, parallel (1.751s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_getmode_vendor (1.17s) script_test.go:136: 2024-03-19T19:05:36Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_getmode_vendor2844001262 script_test.go:160: > env GO111MODULE=on > go get rsc.io/quote@v1.5.1 [stderr] go: downloading rsc.io/quote v1.5.1 go: downloading rsc.io/sampler v1.3.0 go: downloading golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c go: added rsc.io/quote v1.5.1 > go mod vendor > env GOPATH=$WORK/empty > env GOPROXY=file:///nonexist > go list -mod=vendor [stdout] x > go list -mod=vendor -f '{{with .Module}}{{.Path}} {{.Version}}{{end}} {{.Dir}}' all [stdout] /tmp/workdir/go/src/cmp /tmp/workdir/go/src/errors golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_getmode_vendor2844001262/gopath/src/vendor/golang.org/x/text/language /tmp/workdir/go/src/internal/abi /tmp/workdir/go/src/internal/bytealg /tmp/workdir/go/src/internal/chacha8rand /tmp/workdir/go/src/internal/coverage/rtcov /tmp/workdir/go/src/internal/cpu /tmp/workdir/go/src/internal/goarch /tmp/workdir/go/src/internal/godebugs /tmp/workdir/go/src/internal/goexperiment /tmp/workdir/go/src/internal/goos /tmp/workdir/go/src/internal/itoa /tmp/workdir/go/src/internal/oserror /tmp/workdir/go/src/internal/poll /tmp/workdir/go/src/internal/race /tmp/workdir/go/src/internal/reflectlite /tmp/workdir/go/src/internal/safefilepath /tmp/workdir/go/src/internal/syscall/execenv /tmp/workdir/go/src/internal/syscall/unix /tmp/workdir/go/src/internal/testlog /tmp/workdir/go/src/internal/unsafeheader /tmp/workdir/go/src/io /tmp/workdir/go/src/io/fs /tmp/workdir/go/src/math/bits /tmp/workdir/go/src/os /tmp/workdir/go/src/path rsc.io/quote v1.5.1 /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_getmode_vendor2844001262/gopath/src/vendor/rsc.io/quote rsc.io/sampler v1.3.0 /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_getmode_vendor2844001262/gopath/src/vendor/rsc.io/sampler /tmp/workdir/go/src/runtime /tmp/workdir/go/src/runtime/internal/atomic /tmp/workdir/go/src/runtime/internal/math /tmp/workdir/go/src/runtime/internal/sys /tmp/workdir/go/src/slices /tmp/workdir/go/src/sort /tmp/workdir/go/src/strings /tmp/workdir/go/src/sync /tmp/workdir/go/src/sync/atomic /tmp/workdir/go/src/syscall /tmp/workdir/go/src/time /tmp/workdir/go/src/unicode /tmp/workdir/go/src/unicode/utf8 /tmp/workdir/go/src/unsafe x /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_getmode_vendor2844001262/gopath/src > stdout '^rsc.io/quote v1.5.1 .*vendor[\\/]rsc.io[\\/]quote$' matched: rsc.io/quote v1.5.1 /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_getmode_vendor2844001262/gopath/src/vendor/rsc.io/quote > stdout '^golang.org/x/text v0.0.0.* .*vendor[\\/]golang.org[\\/]x[\\/]text[\\/]language$' matched: golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_getmode_vendor2844001262/gopath/src/vendor/golang.org/x/text/language > ! go list -mod=vendor -m rsc.io/quote@latest [stderr] go: rsc.io/quote@latest: cannot query module due to -mod=vendor [exit status 1] > stderr 'go: rsc.io/quote@latest: cannot query module due to -mod=vendor' matched: go: rsc.io/quote@latest: cannot query module due to -mod=vendor > ! go get -mod=vendor -u [stderr] flag provided but not defined: -mod usage: go get [-t] [-u] [-v] [build flags] [packages] Run 'go help get' for details. [exit status 2] > stderr 'flag provided but not defined: -mod' matched: flag provided but not defined: -mod # Since we don't have a complete module graph, 'go list -m' queries # that require the complete graph should fail with a useful error. (0.080s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_lazy_test_horizon (0.15s) script_test.go:136: 2024-03-19T19:05:37Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_lazy_test_horizon2809364594 script_test.go:160: # This file demonstrates the effect of lazy loading on the selected # versions of test dependencies. # The package import graph used in this test looks like: # # m ---- a # \ | # \ a_test ---- b # \ | # x b_test # | \ # x_test -------------- c # # And the module dependency graph looks like: # # m -- a.1 -- b.1 -- c.2 # \ # x.1 ------------ c.1 # Control case: in Go 1.15, the version of c imported by 'go test x' is the # version required by module b, even though b_test is not relevant to the main # module. (The main module imports a, and a_test imports b, but all of the # packages and tests in the main module can be built without b.) (0.050s) # With lazy loading, the go.mod requirements are the same, # but the irrelevant dependency on c v0.2.0 should be pruned out, # leaving only the relevant dependency on c v0.1.0. (0.075s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_no_run_example (2.25s) script_test.go:136: 2024-03-19T19:05:35Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_no_run_example181416627 script_test.go:160: > go test -v norunexample [stdout] File with non-runnable example was built. === RUN TestBuilt A normal test was executed. --- PASS: TestBuilt (0.00s) PASS ok norunexample 0.051s > stdout 'File with non-runnable example was built.' matched: File with non-runnable example was built. script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_match_only_subtests (1.75s) script_test.go:136: 2024-03-19T19:05:36Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_match_only_subtests474856722 script_test.go:160: # Matches only subtests (1.745s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_lazy_new_import (0.71s) script_test.go:136: 2024-03-19T19:05:37Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_lazy_new_import476567473 script_test.go:160: # This test illustrates the use of a deepening scan to resolve transitive # imports of imports of new packages from within existing dependencies. # The package import graph used in this test looks like: # # lazy ---- a/x ---- b # \ # ---- a/y (new) ---- c # # Where a/x and a/y are disjoint packages, but both contained in module a. # # The module dependency graph initially looks like: # # lazy ---- a.1 ---- b.1 # \ # c.1 (0.054s) # Before adding a new import, the go.mod file should # enumerate modules for all packages already imported. (0.071s) # When we add a new import of a package in an existing dependency, # and that dependency is already tidy, its transitive dependencies # should already be present. (0.235s) # Now, we repeat the test with a lazy main module. (0.001s) # Before adding a new import, the go.mod file should # enumerate modules for all packages already imported. (0.052s) # When a new import is found, we should perform a deepening scan of the existing # dependencies and add a requirement on the version required by those # dependencies — not re-resolve 'latest'. (0.271s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_update_unrelated_sum (1.06s) script_test.go:136: 2024-03-19T19:05:37Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_update_unrelated_sum2765903170 script_test.go:160: # Check that 'go get' adds sums for updated modules if we had sums before, # even if we didn't load packages from them. # Verifies #44129. (0.000s) # Control case: before upgrading, we have the sums we need. # go list -deps -e -f $fmt . # stdout '^rsc.io/quote: ok$' # ! stdout rsc.io/sampler # not imported by quote in this version (0.218s) # Upgrade a module. This also upgrades rsc.io/quote, and though we didn't load # a package from it, we had the sum for its old version, so we need the # sum for the new version, too. (0.143s) # The upgrade still breaks the build because the new version of quote imports # rsc.io/sampler, and we don't have its zip sum. (0.114s) # Replace the old version with a directory before upgrading. # We didn't need a sum for it before (even though we had one), so we won't # fetch a new sum. (0.143s) # Replace the new version with a directory before upgrading. # We can't get a sum for a directory. (0.169s) # Replace the new version with a different version. # We should get a sum for that version. (0.139s) # Delete the new version's zip (but not mod) from the cache and go offline. # 'go get' should fail when fetching the zip. (0.090s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_trailing_slash (0.77s) script_test.go:136: 2024-03-19T19:05:38Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_trailing_slash1445859956 script_test.go:160: # go list should succeed to load a package ending with ".go" if the path does # not correspond to an existing local file. Listing a pattern ending with # ".go/" should try to list a package regardless of whether a file exists at the # path without the suffixed "/" or not. (0.209s) # go get should succeed in either case, with or without a version. # Arguments are interpreted as packages or package patterns with versions, # not source files. (0.539s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_lazy_downgrade (1.29s) script_test.go:136: 2024-03-19T19:05:38Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_lazy_downgrade598770709 script_test.go:160: # This test illustrates the interaction between lazy loading and downgrading in # 'go get'. # The package import graph used in this test looks like: # # lazy ---- a # | # a_test ---- b # b_test ---- c # # The module dependency graph initially looks like: # # lazy ---- a.1 ---- b.1 ---- c.1 # \ / # b.3 ---- c.2 b.2 # # (Note that lazy loading will prune out the dependency from b.1 on c.1.) (0.159s) # Downgrading c should also downgrade the b that requires it. (0.223s) # Removing c entirely should also remove the a and b that require it. (0.099s) # With lazy loading, downgrading c should work the same way, but dependencies # outside of the deepening scan should not affect the downgrade. (0.174s) # At this point, b.2 is still an explicit root, so its dependency on c # is still tracked, and it will still be downgraded away if we remove c. # ('go get' never makes a root into a non-root. Only 'go mod tidy' does that.) (0.113s) # This time, we drop the explicit 'b' root by downgrading it to v0.1.0 # (the version required by a.1) and running 'go mod tidy'. # It is still selected at v0.1.0 (as a dependency of a), # but its dependency on c is now pruned from the module graph, so it doesn't # result in any downgrades to b or a if we run 'go get c@none'. (0.495s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_lazy_import_allmod (1.42s) script_test.go:136: 2024-03-19T19:05:37Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_lazy_import_allmod652178813 script_test.go:160: # This test demonstrates dependency resolution when the main module imports a # new package from a previously-test-only dependency. # # When lazy loading is active, the loader will not load dependencies of any # module whose packages are *only* imported by tests outside the main module. If # the main module is changed to import a package from such a module, the # dependencies of that module will need to be reloaded. # The import graph used in this test looks like: # # m ---- a # \ | # \ a_test ---- b/x # \ # --------------b/y (new) ---- c # # Where b/x and b/y are disjoint packages, but both contained in module b. # # The module dependency graph initially looks like: # # m ---- a.1 ---- b.1 ---- c.1 # # This configuration is similar to that used in mod_lazy_new_import, # but the new import is from what is initially a test-only dependency. # Control case: in Go 1.14, the original go.mod is tidy, # and the dependency on c is eagerly loaded. (0.314s) # After adding a new import of b/y, # the import of c from b/y should resolve to the version required by b. (0.349s) # With lazy loading, the go.mod requirements are the same, # but the dependency on c is initially pruned out. (0.328s) # After adding a new direct import of b/y, # the existing version of b should be promoted to a root, # bringing the version of c required by b into the build list. (0.405s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_lazy_consistency (0.61s) script_test.go:136: 2024-03-19T19:05:38Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_lazy_consistency277792666 script_test.go:160: # If the root requirements in a lazy module are inconsistent # (for example, due to a bad hand-edit or git merge), # they can go unnoticed as long as the module with the violated # requirement is not used. # When we load a package from that module, we should spot-check its # requirements and either emit an error or update the go.mod file. (0.001s) # If we load package x from x.1, we only check the requirements of x, # which are fine: loading succeeds. (0.138s) # However, if we load needx2, we should load the requirements of needx2. # Those requirements indicate x.2, not x.1, so the module graph is # inconsistent and needs to be fixed. (0.243s) # The command printed in the error message should fix the problem. (0.186s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_upgrade_pseudo (2.12s) script_test.go:136: 2024-03-19T19:05:37Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_upgrade_pseudo4046692481 script_test.go:160: > env GO111MODULE=on # For this test module there are three versions: # * v0.1.1-0.20190429073117-b5426c86b553 # * v0.1.0 # * v0.0.0-20190430073000-30950c05d534 # Only v0.1.0 is tagged. # # The v0.1.1 pseudo-version is semantically higher than the latest tag. # The v0.0.0 pseudo-version is chronologically newer. # Start at v0.1.1-0.20190429073117-b5426c86b553 (0.329s) # 'get -u' should not downgrade to the (lower) tagged version. (0.163s) # 'get example.com/pseudoupgrade@upgrade' should not downgrade. (0.220s) # 'get example.com/pseudoupgrade' should not downgrade. # This is equivalent to 'get example.com/pseudoupgrade@upgrade'. (0.177s) # 'get example.com/pseudoupgrade@latest' should downgrade. # @latest should not consider the current version. (0.251s) # We should observe the same behavior with the newer pseudo-version. (0.099s) # 'get -u' should not downgrade to the chronologically older tagged version. (0.186s) # 'get example.com/pseudoupgrade@upgrade should not downgrade. (0.359s) # 'get example.com/pseudoupgrade' should not downgrade. (0.134s) # 'get example.com/pseudoupgrade@latest' should downgrade. (0.169s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_lazy_test_of_test_dep (3.23s) script_test.go:136: 2024-03-19T19:05:36Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_lazy_test_of_test_dep1181752534 script_test.go:160: # This file demonstrates the effect of lazy loading on the reproducibility of # tests (and tests of test dependencies) outside the main module. # # It is similar to the cases in mod_all.txt and mod_lazy_test_horizon.txt, but # focuses on the effect of "go test" on specific packages instead of the "all" # pattern. # The package import graph used in this test looks like: # # lazy ---- a # | # a_test ---- b # | # b_test ---- c # # And the non-lazy module dependency graph looks like: # # lazy ---- a.1 ---- b.1 ---- c.1 (0.260s) # In Go 1.15 mode, 'go list -m all' includes modules needed by the # transitive closure of tests of dependencies of tests of dependencies of …. (0.086s) # 'go test' (or equivalent) of any such dependency, no matter how remote, does # not update the go.mod file. (0.870s) # After changing to 'go 1.17` uniformly, 'go list -m all' should prune out # example.com/c, because it is not imported by any package (or test of a package) # transitively imported by the main module. # # example.com/a is imported, # and example.com/b is needed in order to run 'go test example.com/a', # but example.com/c is not needed because we don't expect the user to need to run # 'go test example.com/b'. # If we skip directly to adding a new import of c, the dependency is too far # away for a deepening scan to find, which is fine because the package whose # test imported it wasn't even it "all". It should resolve from the latest # version of its module. # However, if we reach c by running successive tests starting from the main # module, we should end up with exactly the version required by b, with an update # to the go.mod file as soon as we test a test dependency that is not itself in # "all". (0.201s) # 'go test' of a package (transitively) imported by the main module # should work without changes to the go.mod file. (0.426s) # However, 'go test' of a package that is itself a dependency should require an # update to the go.mod file. (0.597s) # The update should bring the version required by b, not the latest version of c. (0.055s) # We should reach the same state if we arrive at it via `go test -mod=mod`. (0.714s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_issue35270 (0.43s) script_test.go:136: 2024-03-19T19:05:39Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_issue352702118813481 script_test.go:160: > cd a > ! go build [stderr] ambiguous import: found package image in multiple modules: image (/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_issue352702118813481/gopath/src/a) (/tmp/workdir/go/src/image) [exit status 1] > stderr '^ambiguous import: found package image in multiple modules:\s+image\s+.+\s.+image.+\s$' matched: ambiguous import: found package image in multiple modules: image (/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_issue352702118813481/gopath/src/a) (/tmp/workdir/go/src/image) > cd ../b > ! go build -mod=vendor [stderr] main.go:4:5: ambiguous import: found package image in multiple directories: /tmp/workdir/go/src/image /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_issue352702118813481/gopath/src/b/vendor/image [exit status 1] > stderr '^main.go:4:5: ambiguous import: found package image in multiple directories:\s+.+image\s+.+image\s+$' matched: main.go:4:5: ambiguous import: found package image in multiple directories: /tmp/workdir/go/src/image /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_issue352702118813481/gopath/src/b/vendor/image > cd ../c > ! go build -mod=vendor [stderr] main.go:4:5: package p is not in std (/tmp/workdir/go/src/p) [exit status 1] > stderr 'main.go:4:5: package p is not in std' matched: main.go:4:5: package p is not in std (/tmp/workdir/go/src/p) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_upgrade (2.16s) script_test.go:136: 2024-03-19T19:05:37Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_upgrade2453091570 script_test.go:160: > env GO111MODULE=on > go get rsc.io/quote@v1.5.1 [stderr] go: downloading rsc.io/quote v1.5.1 go: downloading rsc.io/sampler v1.3.0 go: downloading golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c go: added golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c go: upgraded rsc.io/quote v1.1.0 => v1.5.1 go: added rsc.io/sampler v1.3.0 > go list -m all [stdout] x golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c rsc.io/quote v1.5.1 rsc.io/sampler v1.3.0 > stdout 'rsc.io/quote v1.5.1' matched: rsc.io/quote v1.5.1 > grep 'rsc.io/quote v1.5.1$' go.mod matched: require rsc.io/quote v1.5.1 # get -u should update dependencies of the package in the current directory (0.349s) # get -u rsc.io/sampler should update only sampler's dependencies (0.170s) # move to a pseudo-version after any tags (0.270s) # get -u should not jump off newer pseudo-version to earlier tag (0.210s) # move to earlier pseudo-version (0.213s) # get -u should jump off earlier pseudo-version to newer tag (0.231s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_skip (8.74s) script_test.go:136: 2024-03-19T19:05:31Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_skip103575114 script_test.go:160: > go test -v -run Test -skip T skip_test.go [stdout] testing: warning: no tests to run PASS ok command-line-arguments 0.025s [no tests to run] > ! stdout RUN > stdout '^ok.*\[no tests to run\]' matched: ok command-line-arguments 0.025s [no tests to run] > go test -v -skip T skip_test.go [stdout] testing: warning: no tests to run PASS ok command-line-arguments 0.047s [no tests to run] > ! stdout RUN > go test -v -skip 1 skip_test.go [stdout] === RUN Test2 === RUN Test2/3 --- PASS: Test2 (0.00s) --- PASS: Test2/3 (0.00s) PASS ok command-line-arguments 0.065s > ! stdout Test1 > stdout RUN.*Test2 matched: === RUN Test2 > stdout RUN.*Test2/3 matched: === RUN Test2/3 > go test -v -skip 2/3 skip_test.go [stdout] === RUN Test1 --- PASS: Test1 (0.00s) === RUN Test2 --- PASS: Test2 (0.00s) === RUN ExampleTest1 --- PASS: ExampleTest1 (0.00s) PASS ok command-line-arguments 0.035s > stdout RUN.*Test1 matched: === RUN Test1 > stdout RUN.*Test2 matched: === RUN Test2 > stdout RUN.*ExampleTest1 matched: === RUN ExampleTest1 > ! stdout Test2/3 > go test -v -skip 2/4 skip_test.go [stdout] === RUN Test1 --- PASS: Test1 (0.00s) === RUN Test2 === RUN Test2/3 --- PASS: Test2 (0.00s) --- PASS: Test2/3 (0.00s) === RUN ExampleTest1 --- PASS: ExampleTest1 (0.00s) PASS ok command-line-arguments 0.140s > stdout RUN.*Test1 matched: === RUN Test1 > stdout RUN.*Test2 matched: === RUN Test2 > stdout RUN.*Test2/3 matched: === RUN Test2/3 > stdout RUN.*ExampleTest1 matched: === RUN ExampleTest1 > go test -v -skip Example skip_test.go [stdout] === RUN Test1 --- PASS: Test1 (0.00s) === RUN Test2 === RUN Test2/3 --- PASS: Test2 (0.00s) --- PASS: Test2/3 (0.00s) PASS ok command-line-arguments 0.047s > stdout RUN.*Test1 matched: === RUN Test1 > stdout RUN.*Test2 matched: === RUN Test2 > stdout RUN.*Test2/3 matched: === RUN Test2/3 > ! stdout ExampleTest1 script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_invalid_path_plus (0.58s) script_test.go:136: 2024-03-19T19:05:39Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_invalid_path_plus1141920383 script_test.go:160: # https://golang.org/issue/44776 # The '+' character should be disallowed in module paths, but allowed in package # paths within valid modules. # 'go list' accepts package paths with pluses. (0.246s) # 'go list -m' rejects module paths with pluses. (0.059s) # 'go get' accepts package paths with pluses. (0.257s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_invalid_path (0.58s) script_test.go:136: 2024-03-19T19:05:39Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_invalid_path3004254854 script_test.go:160: # Test that mod files with invalid or missing paths produce an error. # Test that go list fails on a go.mod with no module declaration. (0.044s) # Test that go mod init in GOPATH doesn't add a module declaration # with a path that can't possibly be a module path, because # it isn't even a valid import path. # The single quote and backtick are the only characters which are not allowed # but are a valid Windows file name. (0.045s) # Test that a go.mod file is rejected when its module declaration has a path that can't # possibly be a module path, because it isn't even a valid import path (0.036s) # Test that an import path containing an element with a leading dot is valid, # but such a module path is not. # Verifies #43985. (0.443s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_invalid_path_dotname (0.89s) script_test.go:136: 2024-03-19T19:05:39Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_invalid_path_dotname2663294102 script_test.go:160: # Test that an import path containing an element with a leading dot # in another module is valid. # 'go get' works with no version query. (0.165s) # 'go get' works with a version query. (0.158s) # 'go get' works on an importing package. (0.243s) # 'go list' works on the dotted package. (0.068s) # 'go list' works on an importing package. (0.075s) # 'go mod tidy' works. (0.163s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_sum_noroot (0.37s) script_test.go:136: 2024-03-19T19:05:39Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_sum_noroot2991291748 script_test.go:160: # When 'go get' is invoked on a module without a package in the root directory, # it should add sums for the module's go.mod file and its content to go.sum. # Verifies golang.org/issue/41103. (0.279s) # Double-check rsc.io/QUOTE does not have a root package. (0.065s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_tags (0.43s) script_test.go:136: 2024-03-19T19:05:39Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_tags764272730 script_test.go:160: > env GO111MODULE=on # get should add modules needed to build packages, even if those # dependencies are in sources excluded by build tags. # All build tags are considered true except "ignore". (0.375s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_install_versioned (0.83s) script_test.go:136: 2024-03-19T19:05:39Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_install_versioned1250497922 script_test.go:160: > env GO111MODULE=on > go get rsc.io/fortune [stderr] go: downloading rsc.io/fortune v1.0.0 go: downloading rsc.io/quote v1.5.2 go: downloading rsc.io/sampler v1.3.0 go: downloading golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c go: added golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c go: added rsc.io/fortune v1.0.0 go: added rsc.io/quote v1.5.2 go: added rsc.io/sampler v1.3.0 > go list -f '{{.Target}}' rsc.io/fortune [stdout] /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_install_versioned1250497922/gopath/bin/fortune > ! stdout fortune@v1 > stdout 'fortune(\.exe)?$' matched: /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_install_versioned1250497922/gopath/bin/fortune > go get rsc.io/fortune/v2 [stderr] go: downloading rsc.io/fortune/v2 v2.0.0 go: added rsc.io/fortune/v2 v2.0.0 > go list -f '{{.Target}}' rsc.io/fortune/v2 [stdout] /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_install_versioned1250497922/gopath/bin/fortune > ! stdout v2 > stdout 'fortune(\.exe)?$' matched: /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_install_versioned1250497922/gopath/bin/fortune script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_retract_ambiguous (0.24s) script_test.go:136: 2024-03-19T19:05:40Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_retract_ambiguous3638585454 script_test.go:160: > ! go get example.com/retract/ambiguous/other [stderr] go: downloading example.com v1.0.0 go: downloading example.com/retract v1.1.0 go: downloading example.com/retract/ambiguous/other v1.0.0 go: downloading example.com/retract/ambiguous v1.0.0 go: downloading example.com/retract/ambiguous/nested v1.9.0-bad go: example.com/retract/ambiguous/other imports example.com/retract/ambiguous/nested: ambiguous import: found package example.com/retract/ambiguous/nested in multiple modules: example.com/retract/ambiguous v1.0.0 (/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_retract_ambiguous3638585454/gopath/pkg/mod/example.com/retract/ambiguous@v1.0.0/nested) example.com/retract/ambiguous/nested v1.9.0-bad (/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_retract_ambiguous3638585454/gopath/pkg/mod/example.com/retract/ambiguous/nested@v1.9.0-bad) go: warning: example.com/retract/ambiguous/nested@v1.9.0-bad: retracted by module author: nested modules are bad go: to switch to the latest unretracted version, run: go get example.com/retract/ambiguous/nested@latest [exit status 1] > stderr 'ambiguous import: found package example.com/retract/ambiguous/nested in multiple modules:' matched: example.com/retract/ambiguous/nested: ambiguous import: found package example.com/retract/ambiguous/nested in multiple modules: > stderr '^go: warning: example.com/retract/ambiguous/nested@v1.9.0-bad: retracted by module author: nested modules are bad$' matched: go: warning: example.com/retract/ambiguous/nested@v1.9.0-bad: retracted by module author: nested modules are bad script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_test (1.14s) script_test.go:136: 2024-03-19T19:05:39Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_test2528112419 script_test.go:160: > env GO111MODULE=on # By default, 'go get' should ignore tests (0.065s) # 'go get -t' should consider test dependencies of the named package. (0.339s) # 'go get -t' should not consider test dependencies of imported packages, # including packages imported from tests. (0.050s) # 'go get -t -u' should update test dependencies of the named package. (0.266s) # 'go get -t -u' should not add or update test dependencies # of imported packages, including packages imported from tests. (0.217s) # 'go get all' should consider test dependencies with or without -t. (0.171s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_lazy_upgrade_lazy (0.53s) script_test.go:136: 2024-03-19T19:05:40Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_lazy_upgrade_lazy2423031251 script_test.go:160: # Check that 'go get -u' will upgrade a dependency (direct or indirect) # when the main module and the dependency are both lazy. # Verifies #47768. # Check that go.mod is tidy, and an upgrade is available. (0.136s) # 'go get -u' on a package that directly imports the dependency should upgrade. (0.224s) # 'go get -u' on a package that indirectly imports the dependency should upgrade. (0.144s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_latest_pseudo (0.22s) script_test.go:136: 2024-03-19T19:05:41Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_latest_pseudo3246629872 script_test.go:160: # Check that we can build a module with no tagged versions by querying # "@latest" through a proxy. # Verifies golang.org/issue/32636 (0.194s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_issue60490 (0.09s) script_test.go:136: 2024-03-19T19:05:41Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_issue60490894471047 script_test.go:160: # Regression test for https://go.dev/issue/60490: 'go get' should not cause an # infinite loop for cycles introduced in the pruned module graph. (0.071s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_retract (1.18s) script_test.go:136: 2024-03-19T19:05:40Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_retract530858317 script_test.go:160: # 'go get pkg' should not upgrade to a retracted version. (0.294s) # 'go get pkg' should not downgrade from a retracted version when no higher # version is available. (0.190s) # 'go get pkg@latest' should downgrade from a retracted version. (0.152s) # 'go get pkg@version' should update to a specific version, even if that # version is retracted. (0.155s) # 'go get -u' should not downgrade from a retracted version when no higher # version is available. (0.181s) # 'go get' should warn if a module needed to build named packages is retracted. # 'go get' should not warn about unrelated modules. (0.172s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_issue56494 (0.18s) script_test.go:136: 2024-03-19T19:05:41Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_issue564941190066904 script_test.go:160: # Regression test for https://go.dev/issue/56494: # 'go get' in module mode was failing to prune out dependencies # through modules whose versions are too low to be selected. # Initially, modules "a", "b", and "c" are unrelated. # # The package import graph at v1 of everything looks like: # # m --- a # | # + --- b # | # + --- c # # At v2, package "a" adds imports of "b" and "c" # (and a requirement on "c" v2): # # a --- b # | # + --- c # # And "b" adds an import of "a/sub" (in module "a"): # # b --- a/sub # # At v3, "a" no longer imports (nor requires) "c": # # a --- b # So upgrading to a3 adds a dependency on b2, # b2 adds a dependency on a2 (for "a/sub"), # and a2 (but not a3) would add a dependency on c2. # Since a2 is lower than a3 it cannot possibly be selected when # upgrading to a3: normally a2 is pruned out of a3's module graph, # so 'go get' should prune it out too, and c should remain at c1 # without error. (0.165s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_split (1.57s) script_test.go:136: 2024-03-19T19:05:40Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_split3490541092 script_test.go:160: > cp go.mod go.mod.orig # 'go get' on a package already provided by the build list should update # the module already in the build list, not fail with an ambiguous import error. (0.091s) # We should get the same behavior if we use a pattern that matches only that package. (0.180s) # If we request a version for which the package only exists in one particular module, # we should add that one particular module but not resolve import ambiguities. # # In particular, if the module that previously provided the package has a # matching version, but does not itself match the pattern and contains no # matching packages, we should not change its version. (We should *not* downgrade # module example.net/split to v0.1.0, despite the fact that # example.net/split v0.2.0 currently provides the package with the requested path.) # # TODO(#27899): Maybe we should resolve the ambiguities by upgrading. (0.103s) # A wildcard that matches packages in some module at its selected version # but not at the requested version should fail. # # We can't set the module to the selected version, because that version doesn't # even match the query: if we ran the same query twice, we wouldn't consider the # module to match the wildcard during the second call, so why should we consider # it to match during the first one? ('go get' should be idempotent, and if we # did that then it would not be.) # # But we also can't leave it where it is: the user requested that we set everything # matching the pattern to the given version, and right now we have packages # that match the pattern but *not* the version. # # That only leaves two options: we can set the module to an arbitrary version # (perhaps 'latest' or 'none'), or we can report an error and the let the user # disambiguate. We would rather not choose arbitrarily, so we do the latter. # # TODO(#27899): Should we instead upgrade or downgrade to an arbitrary version? (0.154s) # If another argument resolves the ambiguity, we should be ok again. (0.366s) # If a pattern applies to modules and to packages, we should set all matching # modules to the version indicated by the pattern, and also resolve packages # to match the pattern if possible. (0.363s) # @none applies to all matching module paths, # regardless of whether they contain any packages. (0.138s) # Starting from no dependencies, a wildcard can resolve to an empty module with # the same prefix even if it contains no packages. (0.164s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_issue48511 (0.24s) script_test.go:136: 2024-03-19T19:05:41Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_issue485112415208120 script_test.go:160: # Regression test for https://golang.org/issue/48511: # requirement minimization was accidentally replacing previous # versions of the main module, causing dependencies to be # spuriously dropping during requirement minimization and # leading to an infinite loop. (0.236s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_toolchain (2.39s) script_test.go:136: 2024-03-19T19:05:39Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_toolchain672166218 script_test.go:160: # setup (0.000s) # go get go should use the latest Go 1.23 (0.081s) # go get go@1.23 should use the latest Go 1.23 (0.056s) # go get go@1.22 should use the latest Go 1.22 (0.084s) # go get go@patch should use the latest patch release (0.284s) # go get go@1.24 does NOT find the release candidate (0.108s) # go get go@1.24rc1 works (0.062s) # go get go@latest finds the latest Go 1.23 (0.103s) # Again, with toolchains. # go get toolchain should find go1.999testmod. (0.064s) # go get toolchain@go1.23 should use the latest Go 1.23 (0.100s) # go get toolchain@go1.22 should use the latest Go 1.22 and downgrade go. (0.094s) # go get toolchain@patch should use the latest patch release (0.274s) # go get toolchain@go1.24 does NOT find the release candidate (0.156s) # go get toolchain@go1.24rc1 works (0.099s) # go get toolchain@latest finds go1.999testmod. (0.091s) # Bug fixes. # go get go@garbage should fail but not crash (0.117s) # go get go@go1.21.0 is OK - we silently correct to 1.21.0 (0.270s) # go get toolchain@1.24rc1 is OK too. (0.094s) # go get go@1.21 should work if we are the Go 1.21 language version, # even though there's no toolchain for it. # (Older versions resolve to the latest release in that version, so for example # go get go@1.20 might resolve to 1.20.9, but if we're the devel copy of # Go 1.21, there's no release yet to resolve to, so we resolve to ourselves.) (0.214s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_main (1.43s) script_test.go:136: 2024-03-19T19:05:40Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_main2321487352 script_test.go:160: > env GO111MODULE=on > cp go.mod.orig go.mod # relative and absolute paths must be within the main module. (0.193s) # @patch and @latest within the main module refer to the current version. # The main module won't be upgraded, but missing dependencies will be added. (0.671s) # Upgrading a package pattern not contained in the main module should not # attempt to upgrade the main module. (0.244s) # The main module cannot be updated to a specific version. (0.050s) # A package in the main module can't be upgraded either. (0.058s) # Nor can a pattern matching packages in the main module. (0.090s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_issue47979 (0.30s) script_test.go:136: 2024-03-19T19:05:41Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_issue47979939403479 script_test.go:160: # Regression test for https://golang.org/issue/47979: # # An argument to 'go get' that results in an upgrade to a different existing # root should be allowed, and should not panic the 'go' command. (0.002s) # Transitive upgrades from upgraded roots should not prevent # 'go get -u' from performing upgrades. (0.173s) # 'go get' of a specific version should allow upgrades of # every dependency (transitively) required by that version, # including dependencies that are pulled into the module # graph by upgrading other root requirements # (in this case, example.net/indirect). (0.105s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_init_tidy (0.21s) script_test.go:136: 2024-03-19T19:05:41Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_init_tidy379068219 script_test.go:160: # 'go mod init' should not recommend 'go mod tidy' in an empty directory # (one that contains no non-hidden .go files or subdirectories). (0.065s) # 'go mod init' should recommend 'go mod tidy' if the directory has a .go file. (0.086s) # 'go mod init' should recommend 'go mod tidy' if the directory has a # subdirectory. We don't walk the tree to see if it has .go files. (0.043s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_init_path (0.17s) script_test.go:136: 2024-03-19T19:05:41Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_init_path2379234608 script_test.go:160: > env GO111MODULE=on > ! go mod init . [stderr] go: malformed module path ".": is a local import path [exit status 1] > stderr '^go: malformed module path ".": is a local import path$' matched: go: malformed module path ".": is a local import path > cd x > go mod init example.com/x [stderr] go: creating new go.mod: module example.com/x go: to add module requirements and sums: go mod tidy > cd ../y > go mod init m [stderr] go: creating new go.mod: module m go: to add module requirements and sums: go mod tidy script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_lazy_indirect (0.97s) script_test.go:136: 2024-03-19T19:05:41Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_lazy_indirect2288086177 script_test.go:160: # https://golang.org/issue/45979: after 'go get' on a package, # that package should be importable without error. # We start out with an unresolved dependency. # 'go list' suggests that we run 'go get' on that dependency. (0.081s) # When we run the suggested 'go get' command, the new dependency can be used # immediately. # # 'go get' marks the new dependency as 'indirect', because it doesn't scan # enough source code to know whether it is direct, and it is easier and less # invasive to remove an incorrect indirect mark (e.g. using 'go get') than to # add one that is missing ('go mod tidy' or 'go mod vendor'). (0.645s) # 'go get .' (or 'go mod tidy') removes the indirect mark. (0.188s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_indirect_nospace (0.08s) script_test.go:136: 2024-03-19T19:05:41Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_indirect_nospace2380607098 script_test.go:160: # https://golang.org/issue/45932: "indirect" comments missing spaces # should not be corrupted when the comment is removed. (0.060s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_indirect_tidy (0.14s) script_test.go:136: 2024-03-19T19:05:41Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_indirect_tidy1805202889 script_test.go:160: > env GO111MODULE=on # golang.org/issue/31248: loading the build list must not add explicit entries # for indirect dependencies already implied by older-than-selected versions # already in the build list. (0.130s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_init_empty (0.24s) script_test.go:136: 2024-03-19T19:05:41Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_init_empty3449811439 script_test.go:160: > env GO111MODULE=on > env GOPATH=$WORK${/}invalid-gopath > go list -m [stdout] example.com > stdout '^example.com$' matched: example.com > go list [stdout] example.com > stdout '^example.com$' matched: example.com script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_indirect_main (0.19s) script_test.go:136: 2024-03-19T19:05:41Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_indirect_main3388043849 script_test.go:160: > env GO111MODULE=on # Regression test for golang.org/issue/29773: 'go list -m' was not following # dependencies through older versions of the main module. (0.173s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_indirect (0.26s) script_test.go:136: 2024-03-19T19:05:42Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_indirect2297480551 script_test.go:160: > env GO111MODULE=on # golang.org/issue/31248: required modules imposed by dependency versions # older than the selected version must still be taken into account. (0.000s) # Indirect dependencies required via older-than-selected versions must exist in # the module graph, but do not need to be listed explicitly in the go.mod file # (since they are implied). (0.054s) # The modules must also appear in the build list, not just the graph. (0.065s) # The packages provided by those dependencies must resolve. (0.133s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/env_sanitize (0.27s) script_test.go:136: 2024-03-19T19:05:42Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/env_sanitize3732621848 script_test.go:160: > env GOFLAGS='$(echo ''cc"''; echo ''OOPS="oops'')' > go env [stdout] GO111MODULE='' GOARCH='amd64' GOBIN='' GOCACHE='/tmp/workdir/gocache' GOENV='/no-home/.config/go/env' GOEXE='' GOEXPERIMENT='' GOFLAGS='$(echo '\''cc"'\''; echo '\''OOPS="oops'\'')' GOHOSTARCH='amd64' GOHOSTOS='openbsd' GOINSECURE='' GOMODCACHE='/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/env_sanitize3732621848/gopath/pkg/mod' GONOPROXY='' GONOSUMDB='' GOOS='openbsd' GOPATH='/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/env_sanitize3732621848/gopath' GOPRIVATE='' GOPROXY='http://127.0.0.1:40509/mod' GOROOT='/tmp/workdir/go' GOSUMDB='localhost.localdev/sumdb+00000c67+AcTrnkbUA+TU4heY3hkjiSES/DSQniBqIeQ/YppAUtK6' GOTMPDIR='' GOTOOLCHAIN='auto' GOTOOLDIR='/tmp/workdir/go/pkg/tool/openbsd_amd64' GOVCS='*:all' GOVERSION='devel 4f35b335166bbf175ec73f9b1b1f0e54251f0fd9' GODEBUG='' GCCGO='gccgo' GOAMD64='v1' AR='ar' CC='clang' CXX='clang++' CGO_ENABLED='1' GOMOD='/dev/null' GOWORK='' CGO_CFLAGS='-O2 -g' CGO_CPPFLAGS='' CGO_CXXFLAGS='-O2 -g' CGO_FFLAGS='-O2 -g' CGO_LDFLAGS='-O2 -g' PKG_CONFIG='pkg-config' GOGCCFLAGS='-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/env_sanitize3732621848/tmp/go-build4234661616=/tmp/go-build -gno-record-gcc-switches' > [GOOS:darwin] stdout 'GOFLAGS=''\$\(echo ''\\''''cc"''\\''''; echo ''\\''''OOPS="oops''\\''''\)''' [condition not met] > [GOOS:linux] stdout 'GOFLAGS=''\$\(echo ''\\''''cc"''\\''''; echo ''\\''''OOPS="oops''\\''''\)''' [condition not met] > [GOOS:windows] stdout 'set GOFLAGS=\$\(echo ''cc"''; echo ''OOPS="oops''\)' [condition not met] script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/env_issue46807 (0.34s) script_test.go:136: 2024-03-19T19:05:42Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/env_issue468072454910555 script_test.go:160: > ! go mod tidy [stderr] go: warning: ignoring go.mod in $GOPATH /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/env_issue468072454910555/gopath go: go.mod file not found in current directory or any parent directory; see 'go help modules' [exit status 1] > stderr '^go: warning: ignoring go.mod in \$GOPATH' matched: go: warning: ignoring go.mod in $GOPATH /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/env_issue468072454910555/gopath > stderr '^go: go.mod file not found in current directory or any parent directory; see ''go help modules''' matched: go: go.mod file not found in current directory or any parent directory; see 'go help modules' > go env [stdout] GO111MODULE='' GOARCH='amd64' GOBIN='' GOCACHE='/tmp/workdir/gocache' GOENV='/no-home/.config/go/env' GOEXE='' GOEXPERIMENT='' GOFLAGS='' GOHOSTARCH='amd64' GOHOSTOS='openbsd' GOINSECURE='' GOMODCACHE='/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/env_issue468072454910555/gopath/pkg/mod' GONOPROXY='' GONOSUMDB='' GOOS='openbsd' GOPATH='/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/env_issue468072454910555/gopath' GOPRIVATE='' GOPROXY='http://127.0.0.1:40509/mod' GOROOT='/tmp/workdir/go' GOSUMDB='localhost.localdev/sumdb+00000c67+AcTrnkbUA+TU4heY3hkjiSES/DSQniBqIeQ/YppAUtK6' GOTMPDIR='' GOTOOLCHAIN='auto' GOTOOLDIR='/tmp/workdir/go/pkg/tool/openbsd_amd64' GOVCS='*:all' GOVERSION='devel 4f35b335166bbf175ec73f9b1b1f0e54251f0fd9' GODEBUG='' GCCGO='gccgo' GOAMD64='v1' AR='ar' CC='clang' CXX='clang++' CGO_ENABLED='1' GOMOD='/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/env_issue468072454910555/gopath/go.mod' GOWORK='' CGO_CFLAGS='-O2 -g' CGO_CPPFLAGS='' CGO_CXXFLAGS='-O2 -g' CGO_FFLAGS='-O2 -g' CGO_LDFLAGS='-O2 -g' PKG_CONFIG='pkg-config' GOGCCFLAGS='-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/env_issue468072454910555/tmp/go-build1373176140=/tmp/go-build -gno-record-gcc-switches' [stderr] go: warning: ignoring go.mod in $GOPATH /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/env_issue468072454910555/gopath > stdout 'GOPATH=' matched: GOPATH='/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/env_issue468072454910555/gopath' > stderr '^go: warning: ignoring go.mod in \$GOPATH' matched: go: warning: ignoring go.mod in $GOPATH /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/env_issue468072454910555/gopath script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_install_pkg_version (2.86s) script_test.go:136: 2024-03-19T19:05:39Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_install_pkg_version441116710 script_test.go:160: # 'go install pkg@version' works outside a module. (0.839s) # 'go install pkg@version' reports an error if modules are disabled. (0.042s) # 'go install pkg@version' ignores go.mod in current directory. (0.962s) # 'go install -modfile=x.mod pkg@version' reports an error, but only if # -modfile is specified explicitly on the command line. (0.989s) # Every test case requires linking, so we only cover the most important cases # when -short is set. (0.000s) stop script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/env_unset (0.79s) script_test.go:136: 2024-03-19T19:05:41Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/env_unset2090725543 script_test.go:160: # Test that we can unset variables, even if initially invalid, # as long as resulting config is valid. (0.781s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_replaced (2.55s) script_test.go:136: 2024-03-19T19:05:40Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_replaced1550349027 script_test.go:160: > cp go.mod go.mod.orig > env oldGOPROXY=$GOPROXY # If a wildcard replacement exists for an otherwise-nonexistent module, # 'go get' should resolve it to the minimum valid pseudo-version. (0.275s) # If specific-version replacements exist, the highest matching version should be used. (0.445s) # The same should work with GOPROXY=off. (0.165s) # If specific-version replacements exist, the highest matching version should be used. (0.356s) # Replacements should also be listed as known versions, and 'go get' should sort # them in with ordinary versions. (0.765s) # Replacements should allow 'go get' to work even with dotless module paths. (0.500s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/env_exp (1.01s) script_test.go:136: 2024-03-19T19:05:42Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/env_exp4098816342 script_test.go:160: # Test GOEXPERIMENT variable # go env shows default empty GOEXPERIMENT (0.269s) # go env shows valid experiments (0.529s) # go env rejects unknown experiments (0.151s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_init_invalid_major (1.48s) script_test.go:136: 2024-03-19T19:05:41Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_init_invalid_major3726924647 script_test.go:160: > env GO111MODULE=on > env GOFLAGS=-mod=mod > ! go mod init example.com/user/repo/v0 [stderr] go: invalid module path "example.com/user/repo/v0": major version suffixes must be in the form of /vN and are only allowed for v2 or later: go mod init example.com/user/repo/v2 [exit status 1] > stderr '(?s)^go: invalid module path "example.com/user/repo/v0": major version suffixes must be in the form of /vN and are only allowed for v2 or later(.*)go mod init example.com/user/repo/v2$' matched: go: invalid module path "example.com/user/repo/v0": major version suffixes must be in the form of /vN and are only allowed for v2 or later: go mod init example.com/user/repo/v2 > ! go mod init example.com/user/repo/v02 [stderr] go: invalid module path "example.com/user/repo/v02": major version suffixes must be in the form of /vN and are only allowed for v2 or later: go mod init example.com/user/repo/v2 [exit status 1] > stderr '(?s)^go: invalid module path "example.com/user/repo/v02": major version suffixes must be in the form of /vN and are only allowed for v2 or later(.*)go mod init example.com/user/repo/v2$' matched: go: invalid module path "example.com/user/repo/v02": major version suffixes must be in the form of /vN and are only allowed for v2 or later: go mod init example.com/user/repo/v2 > ! go mod init example.com/user/repo/v023 [stderr] go: invalid module path "example.com/user/repo/v023": major version suffixes must be in the form of /vN and are only allowed for v2 or later: go mod init example.com/user/repo/v23 [exit status 1] > stderr '(?s)^go: invalid module path "example.com/user/repo/v023": major version suffixes must be in the form of /vN and are only allowed for v2 or later(.*)go mod init example.com/user/repo/v23$' matched: go: invalid module path "example.com/user/repo/v023": major version suffixes must be in the form of /vN and are only allowed for v2 or later: go mod init example.com/user/repo/v23 > ! go mod init example.com/user/repo/v1 [stderr] go: invalid module path "example.com/user/repo/v1": major version suffixes must be in the form of /vN and are only allowed for v2 or later: go mod init example.com/user/repo/v2 [exit status 1] > stderr '(?s)^go: invalid module path "example.com/user/repo/v1": major version suffixes must be in the form of /vN and are only allowed for v2 or later(.*)go mod init example.com/user/repo/v2$' matched: go: invalid module path "example.com/user/repo/v1": major version suffixes must be in the form of /vN and are only allowed for v2 or later: go mod init example.com/user/repo/v2 > ! go mod init example.com/user/repo/v2.0 [stderr] go: invalid module path "example.com/user/repo/v2.0": major version suffixes must be in the form of /vN and are only allowed for v2 or later: go mod init example.com/user/repo/v2 [exit status 1] > stderr '(?s)^go: invalid module path "example.com/user/repo/v2.0": major version suffixes must be in the form of /vN and are only allowed for v2 or later(.*)go mod init example.com/user/repo/v2$' matched: go: invalid module path "example.com/user/repo/v2.0": major version suffixes must be in the form of /vN and are only allowed for v2 or later: go mod init example.com/user/repo/v2 > ! go mod init example.com/user/repo/v2.1.4 [stderr] go: invalid module path "example.com/user/repo/v2.1.4": major version suffixes must be in the form of /vN and are only allowed for v2 or later: go mod init example.com/user/repo/v2 [exit status 1] > stderr '(?s)^go: invalid module path "example.com/user/repo/v2.1.4": major version suffixes must be in the form of /vN and are only allowed for v2 or later(.*)go mod init example.com/user/repo/v2$' matched: go: invalid module path "example.com/user/repo/v2.1.4": major version suffixes must be in the form of /vN and are only allowed for v2 or later: go mod init example.com/user/repo/v2 > ! go mod init example.com/user/repo/v3.5 [stderr] go: invalid module path "example.com/user/repo/v3.5": major version suffixes must be in the form of /vN and are only allowed for v2 or later: go mod init example.com/user/repo/v3 [exit status 1] > stderr '(?s)^go: invalid module path "example.com/user/repo/v3.5": major version suffixes must be in the form of /vN and are only allowed for v2 or later(.*)go mod init example.com/user/repo/v3$' matched: go: invalid module path "example.com/user/repo/v3.5": major version suffixes must be in the form of /vN and are only allowed for v2 or later: go mod init example.com/user/repo/v3 > ! go mod init example.com/user/repo/v4.1.4 [stderr] go: invalid module path "example.com/user/repo/v4.1.4": major version suffixes must be in the form of /vN and are only allowed for v2 or later: go mod init example.com/user/repo/v4 [exit status 1] > stderr '(?s)^go: invalid module path "example.com/user/repo/v4.1.4": major version suffixes must be in the form of /vN and are only allowed for v2 or later(.*)go mod init example.com/user/repo/v4$' matched: go: invalid module path "example.com/user/repo/v4.1.4": major version suffixes must be in the form of /vN and are only allowed for v2 or later: go mod init example.com/user/repo/v4 > ! go mod init example.com/user/repo/v.2.3 [stderr] go: invalid module path "example.com/user/repo/v.2.3": major version suffixes must be in the form of /vN and are only allowed for v2 or later: go mod init example.com/user/repo/v2 [exit status 1] > stderr '(?s)^go: invalid module path "example.com/user/repo/v.2.3": major version suffixes must be in the form of /vN and are only allowed for v2 or later(.*)go mod init example.com/user/repo/v2$' matched: go: invalid module path "example.com/user/repo/v.2.3": major version suffixes must be in the form of /vN and are only allowed for v2 or later: go mod init example.com/user/repo/v2 > ! go mod init example.com/user/repo/v.5.3 [stderr] go: invalid module path "example.com/user/repo/v.5.3": major version suffixes must be in the form of /vN and are only allowed for v2 or later: go mod init example.com/user/repo/v5 [exit status 1] > stderr '(?s)^go: invalid module path "example.com/user/repo/v.5.3": major version suffixes must be in the form of /vN and are only allowed for v2 or later(.*)go mod init example.com/user/repo/v5$' matched: go: invalid module path "example.com/user/repo/v.5.3": major version suffixes must be in the form of /vN and are only allowed for v2 or later: go mod init example.com/user/repo/v5 > ! go mod init gopkg.in/pkg [stderr] go: invalid module path "gopkg.in/pkg": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN: go mod init gopkg.in/pkg.v1 [exit status 1] > stderr '(?s)^go: invalid module path "gopkg.in/pkg": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN(.*)go mod init gopkg.in/pkg.v1$' matched: go: invalid module path "gopkg.in/pkg": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN: go mod init gopkg.in/pkg.v1 > ! go mod init gopkg.in/user/pkg [stderr] go: invalid module path "gopkg.in/user/pkg": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN: go mod init gopkg.in/user/pkg.v1 [exit status 1] > stderr '(?s)^go: invalid module path "gopkg.in/user/pkg": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN(.*)go mod init gopkg.in/user/pkg.v1$' matched: go: invalid module path "gopkg.in/user/pkg": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN: go mod init gopkg.in/user/pkg.v1 > ! go mod init gopkg.in/user/pkg/v0 [stderr] go: invalid module path "gopkg.in/user/pkg/v0": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN: go mod init gopkg.in/user/pkg.v1 [exit status 1] > stderr '(?s)^go: invalid module path "gopkg.in/user/pkg/v0": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN(.*)go mod init gopkg.in/user/pkg.v1$' matched: go: invalid module path "gopkg.in/user/pkg/v0": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN: go mod init gopkg.in/user/pkg.v1 > ! go mod init gopkg.in/user/pkg/v1 [stderr] go: invalid module path "gopkg.in/user/pkg/v1": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN: go mod init gopkg.in/user/pkg.v1 [exit status 1] > stderr '(?s)^go: invalid module path "gopkg.in/user/pkg/v1": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN(.*)go mod init gopkg.in/user/pkg.v1$' matched: go: invalid module path "gopkg.in/user/pkg/v1": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN: go mod init gopkg.in/user/pkg.v1 > ! go mod init gopkg.in/user/pkg/v2 [stderr] go: invalid module path "gopkg.in/user/pkg/v2": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN: go mod init gopkg.in/user/pkg.v2 [exit status 1] > stderr '(?s)^go: invalid module path "gopkg.in/user/pkg/v2": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN(.*)go mod init gopkg.in/user/pkg.v2$' matched: go: invalid module path "gopkg.in/user/pkg/v2": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN: go mod init gopkg.in/user/pkg.v2 > ! go mod init gopkg.in/user/pkg.v [stderr] go: invalid module path "gopkg.in/user/pkg.v": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN: go mod init gopkg.in/user/pkg.v1 [exit status 1] > stderr '(?s)^go: invalid module path "gopkg.in/user/pkg.v": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN(.*)go mod init gopkg.in/user/pkg.v1$' matched: go: invalid module path "gopkg.in/user/pkg.v": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN: go mod init gopkg.in/user/pkg.v1 > ! go mod init gopkg.in/user/pkg.v0.1 [stderr] go: invalid module path "gopkg.in/user/pkg.v0.1": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN: go mod init gopkg.in/user/pkg.v1 [exit status 1] > stderr '(?s)^go: invalid module path "gopkg.in/user/pkg.v0.1": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN(.*)go mod init gopkg.in/user/pkg.v1$' matched: go: invalid module path "gopkg.in/user/pkg.v0.1": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN: go mod init gopkg.in/user/pkg.v1 > ! go mod init gopkg.in/user/pkg.v.1 [stderr] go: invalid module path "gopkg.in/user/pkg.v.1": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN: go mod init gopkg.in/user/pkg.v1 [exit status 1] > stderr '(?s)^go: invalid module path "gopkg.in/user/pkg.v.1": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN(.*)go mod init gopkg.in/user/pkg.v1$' matched: go: invalid module path "gopkg.in/user/pkg.v.1": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN: go mod init gopkg.in/user/pkg.v1 > ! go mod init gopkg.in/user/pkg.v01 [stderr] go: invalid module path "gopkg.in/user/pkg.v01": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN: go mod init gopkg.in/user/pkg.v1 [exit status 1] > stderr '(?s)^go: invalid module path "gopkg.in/user/pkg.v01": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN(.*)go mod init gopkg.in/user/pkg.v1$' matched: go: invalid module path "gopkg.in/user/pkg.v01": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN: go mod init gopkg.in/user/pkg.v1 > ! go mod init gopkg.in/user/pkg.v.2.3 [stderr] go: invalid module path "gopkg.in/user/pkg.v.2.3": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN: go mod init gopkg.in/user/pkg.v2 [exit status 1] > stderr '(?s)^go: invalid module path "gopkg.in/user/pkg.v.2.3": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN(.*)go mod init gopkg.in/user/pkg.v2$' matched: go: invalid module path "gopkg.in/user/pkg.v.2.3": module paths beginning with gopkg.in/ must always have a major version suffix in the form of .vN: go mod init gopkg.in/user/pkg.v2 # module paths with a trailing dot are rejected as invalid import paths (0.362s) # module paths with spaces are also rejected (0.085s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_import_v1suffix (0.21s) script_test.go:136: 2024-03-19T19:05:43Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_import_v1suffix1458508136 script_test.go:160: > env GO111MODULE=on > ! go get example.com/invalidpath/v1 [stderr] go: example.com/invalidpath/v1: module example.com/invalidpath: reading http://127.0.0.1:40509/mod/example.com/invalidpath/@v/list: 404 Not Found server response: 404 page not found [exit status 1] > ! go install . [stderr] main.go:2:8: no required module provides package example.com/invalidpath/v1; to add it: go get example.com/invalidpath/v1 [exit status 1] script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_in_testdata_dir (0.71s) script_test.go:136: 2024-03-19T19:05:43Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_in_testdata_dir2818605676 script_test.go:160: # Regression test for golang.org/issue/28481: # 'mod tidy' removed dependencies if the module root was # within a directory named 'testdata' or '_foo'. (0.000s) # A module should be allowed in a directory named testdata. (0.125s) # Getting a package within that module should resolve its dependencies. (0.276s) # Tidying the module should preserve those dependencies. (0.273s) stop script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_import_mod (0.06s) script_test.go:136: 2024-03-19T19:05:43Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_import_mod1422730923 script_test.go:160: # Test that GOPATH/pkg/mod is excluded (0.057s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_chatty_success (1.74s) script_test.go:136: 2024-03-19T19:05:42Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_chatty_success3101951982 script_test.go:160: # Run chatty tests. Assert on CONT lines. (1.728s) # Non-parallel tests should not print CONT. (0.001s) # The assertion is condensed into one line so that it precisely matches output, # rather than skipping lines and allow rogue CONT lines. (0.002s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_chatty_parallel_success_run (1.73s) script_test.go:136: 2024-03-19T19:05:42Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_chatty_parallel_success_run1717272009 script_test.go:160: # Run parallel chatty tests. Assert on CONT or NAME lines. This test makes sure that # multiple parallel outputs have the appropriate CONT lines between them. (1.728s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_import_issue42891 (0.09s) script_test.go:136: 2024-03-19T19:05:44Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_import_issue428911747180000 script_test.go:160: # If an import declaration is an absolute path, most commands should report # an error instead of going into an infinite loop. # Verifies golang.org/issue/42891. (0.088s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_import_meta (0.33s) script_test.go:136: 2024-03-19T19:05:43Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_import_meta478328609 script_test.go:160: # The loader should not attempt to resolve imports of the "all", "std", and "cmd" meta-packages. (0.205s) # Not even if such a path is theoretically provided by a (necessarily replaced) module. (0.114s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_import_cycle (0.16s) script_test.go:136: 2024-03-19T19:05:44Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_import_cycle205913115 script_test.go:160: > env GO111MODULE=on # 'go list all' should fail with a reasonable error message (0.040s) # 'go list -e' should not print to stderr, but should mark all three # packages (m, m/a, and m/b) as Incomplete. (0.104s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_import_issue41113 (0.24s) script_test.go:136: 2024-03-19T19:05:44Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_import_issue411132339419923 script_test.go:160: # Regression test for https://golang.org/issue/41113. # # When resolving a missing import path, the inability to add the package from # one module path should not interfere with adding a nested path. # Initially, our module depends on split-incompatible v2.1.0-pre+incompatible, # from which an imported package has been removed (and relocated to the nested # split-incompatible/subpkg module). modload.QueryPattern will suggest # split-incompatible v2.0.0+incompatible, which we cannot use (because it would # be an implicit downgrade), and split-incompatible/subpkg v0.1.0, which we # *should* use. (0.191s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_help (0.08s) script_test.go:136: 2024-03-19T19:05:44Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_help1526294142 script_test.go:160: > env GO111MODULE=on # go help get shows usage for get (0.068s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_chatty_fail (1.50s) script_test.go:136: 2024-03-19T19:05:42Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_chatty_fail3579622386 script_test.go:160: # Run chatty tests. Assert on CONT lines. (1.496s) # Sanity check that output occurs. (0.001s) # Non-parallel tests should not print CONT. (0.000s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_bad_filenames (0.19s) script_test.go:136: 2024-03-19T19:05:44Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_bad_filenames3941663979 script_test.go:160: > env GO111MODULE=on > ! go get rsc.io/badfile1 rsc.io/badfile2 rsc.io/badfile3 rsc.io/badfile4 rsc.io/badfile5 [stderr] go: downloading rsc.io/badfile3 v1.0.0 go: downloading rsc.io/badfile2 v1.0.0 go: downloading rsc.io/badfile5 v1.0.0 go: downloading rsc.io/badfile4 v1.0.0 go: downloading rsc.io/badfile1 v1.0.0 -> unzip /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_bad_filenames3941663979/gopath/pkg/mod/cache/download/rsc.io/badfile2/@v/v1.0.0.zip: rsc.io/badfile2@v1.0.0/☺.go: malformed file path "☺.go": invalid char '☺' -> unzip /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_bad_filenames3941663979/gopath/pkg/mod/cache/download/rsc.io/badfile3/@v/v1.0.0.zip: rsc.io/badfile3@v1.0.0/x?y.go: malformed file path "x?y.go": invalid char '?' -> unzip /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_bad_filenames3941663979/gopath/pkg/mod/cache/download/rsc.io/badfile5/@v/v1.0.0.zip: rsc.io/badfile5@v1.0.0/x/Y/zz/ww.go: case-insensitive file name collision: "x/y" and "x/Y" -> unzip /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_bad_filenames3941663979/gopath/pkg/mod/cache/download/rsc.io/badfile4/@v/v1.0.0.zip: rsc.io/badfile4@v1.0.0/x/y.go: case-insensitive file name collision: "x/Y.go" and "x/y.go" go: rsc.io/badfile1@v1.0.0: verifying module: checksum mismatch downloaded: h1:SWLA6Nvezi6az7Z6pjhXuBt/JUxhLQHnath/4gCrwXg= localhost.localdev/sumdb: h1:uEjVkkSjxbXitVDTJ8ea8qHta+VQNl6XYnxv2odSgAI= SECURITY ERROR This download does NOT match the one reported by the checksum server. The bits may have been replaced on the origin server, or an attacker may have intercepted the download attempt. For more information, see 'go help module-auth'. go: unzip /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_bad_filenames3941663979/gopath/pkg/mod/cache/download/rsc.io/badfile2/@v/v1.0.0.zip: rsc.io/badfile2@v1.0.0/☺.go: malformed file path "☺.go": invalid char '☺' go: unzip /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_bad_filenames3941663979/gopath/pkg/mod/cache/download/rsc.io/badfile3/@v/v1.0.0.zip: rsc.io/badfile3@v1.0.0/x?y.go: malformed file path "x?y.go": invalid char '?' go: unzip /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_bad_filenames3941663979/gopath/pkg/mod/cache/download/rsc.io/badfile4/@v/v1.0.0.zip: rsc.io/badfile4@v1.0.0/x/y.go: case-insensitive file name collision: "x/Y.go" and "x/y.go" go: unzip /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_bad_filenames3941663979/gopath/pkg/mod/cache/download/rsc.io/badfile5/@v/v1.0.0.zip: rsc.io/badfile5@v1.0.0/x/Y/zz/ww.go: case-insensitive file name collision: "x/y" and "x/Y" [exit status 1] > ! stderr 'unzip.*badfile1' > stderr 'unzip.*badfile2[\\/]@v[\\/]v1.0.0.zip:.*malformed file path "☺.go": invalid char ''☺''' matched: -> unzip /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_bad_filenames3941663979/gopath/pkg/mod/cache/download/rsc.io/badfile2/@v/v1.0.0.zip: rsc.io/badfile2@v1.0.0/☺.go: malformed file path "☺.go": invalid char '☺' > stderr 'unzip.*badfile3[\\/]@v[\\/]v1.0.0.zip: rsc.io[\\/]badfile3@v1.0.0[\\/]x\?y.go: malformed file path "x\?y.go": invalid char ''\?''' matched: -> unzip /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_bad_filenames3941663979/gopath/pkg/mod/cache/download/rsc.io/badfile3/@v/v1.0.0.zip: rsc.io/badfile3@v1.0.0/x?y.go: malformed file path "x?y.go": invalid char '?' > stderr 'unzip.*badfile4[\\/]@v[\\/]v1.0.0.zip: rsc.io[\\/]badfile4@v1.0.0[\\/]x[\\/]y.go: case-insensitive file name collision: "x/Y.go" and "x/y.go"' matched: -> unzip /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_bad_filenames3941663979/gopath/pkg/mod/cache/download/rsc.io/badfile4/@v/v1.0.0.zip: rsc.io/badfile4@v1.0.0/x/y.go: case-insensitive file name collision: "x/Y.go" and "x/y.go" > stderr 'unzip.*badfile5[\\/]@v[\\/]v1.0.0.zip: rsc.io[\\/]badfile5@v1.0.0[\\/]x[\\/]Y[\\/]zz[\\/]ww.go: case-insensitive file name collision: "x/y" and "x/Y"' matched: -> unzip /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_bad_filenames3941663979/gopath/pkg/mod/cache/download/rsc.io/badfile5/@v/v1.0.0.zip: rsc.io/badfile5@v1.0.0/x/Y/zz/ww.go: case-insensitive file name collision: "x/y" and "x/Y" script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_import_toolchain (0.99s) script_test.go:136: 2024-03-19T19:05:43Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_import_toolchain3926168575 script_test.go:160: # This test verifies that 'go get' and 'go mod tidy' switch to a newer toolchain # if needed to process newly-reolved imports. (0.003s) # tidy reports needing 1.22.0 for b1 (0.963s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_graph (0.23s) script_test.go:136: 2024-03-19T19:05:44Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_graph2094365450 script_test.go:160: > env GO111MODULE=on > go mod graph [stdout] m go@1.16 m rsc.io/quote@v1.5.2 rsc.io/quote@v1.5.2 rsc.io/sampler@v1.3.0 rsc.io/sampler@v1.3.0 golang.org/x/text@v0.0.0-20170915032832-14c0d48ead0c > stdout '^m rsc.io/quote@v1.5.2$' matched: m rsc.io/quote@v1.5.2 > stdout '^rsc.io/quote@v1.5.2 rsc.io/sampler@v1.3.0$' matched: rsc.io/quote@v1.5.2 rsc.io/sampler@v1.3.0 > ! stdout '^m rsc.io/sampler@v1.3.0$' > ! stderr 'get '$GOPROXY > rm $GOPATH/pkg/mod/cache/download/rsc.io/quote > go mod graph -x [stdout] m go@1.16 m rsc.io/quote@v1.5.2 rsc.io/quote@v1.5.2 rsc.io/sampler@v1.3.0 rsc.io/sampler@v1.3.0 golang.org/x/text@v0.0.0-20170915032832-14c0d48ead0c [stderr] # get http://127.0.0.1:40509/mod/rsc.io/quote/@v/v1.5.2.mod # get http://127.0.0.1:40509/mod/rsc.io/quote/@v/v1.5.2.mod: 200 OK (0.054s) > stderr 'get '$GOPROXY matched: # get http://127.0.0.1:40509/mod/rsc.io/quote/@v/v1.5.2.mod script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_import (0.93s) script_test.go:136: 2024-03-19T19:05:44Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_import4162497548 script_test.go:160: > env GO111MODULE=on # latest rsc.io/quote should be v1.5.2 not v1.5.3-pre1 (0.621s) # but v1.5.3-pre1 should be a known version (0.252s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/env_cross_build (3.27s) script_test.go:136: 2024-03-19T19:05:42Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/env_cross_build1035755810 script_test.go:160: # Test that the correct default GOEXPERIMENT is used when cross # building with GOENV (#46815). # Unset variables set by the TestScript harness. Users typically won't # explicitly configure these, and #46815 doesn't repro if they are. (3.263s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_benchmark_chatty_success (1.48s) script_test.go:136: 2024-03-19T19:05:44Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_benchmark_chatty_success3446024282 script_test.go:160: # Run chatty tests. Assert on CONT lines. (1.473s) # Sanity check that output happens. We don't provide -count because the amount # of output is variable. (0.000s) # Benchmarks should not print CONT. (0.000s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/embed_fmt (0.32s) script_test.go:136: 2024-03-19T19:05:45Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/embed_fmt4005571048 script_test.go:160: # go fmt ignores file not found (0.322s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_chatty_parallel_fail (3.37s) script_test.go:136: 2024-03-19T19:05:42Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_chatty_parallel_fail2165987533 script_test.go:160: # Run parallel chatty tests. # Check that multiple parallel outputs continue running. (1.705s) # Run parallel chatty tests with -json. # Check that each output is attributed to the right test. (1.637s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_chatty_parallel_success (3.87s) script_test.go:136: 2024-03-19T19:05:42Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_chatty_parallel_success4024420283 script_test.go:160: # Run parallel chatty tests. Assert on CONT or NAME lines. This test makes sure that # multiple parallel outputs have the appropriate test name lines between them. (1.737s) # Run parallel chatty tests with -json. # Assert test2json has properly attributed output. (2.122s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_goroot_errors (0.31s) script_test.go:136: 2024-03-19T19:05:46Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_goroot_errors3401711128 script_test.go:160: > env GO111MODULE=on # Regression test for https://golang.org/issue/34769. # Missing standard-library imports should refer to GOROOT rather than # complaining about a malformed module path. # This is especially important when GOROOT is set incorrectly, # since such an error will occur for every package in std. # Building a nonexistent std package directly should fail usefully. (0.082s) # Building a nonexistent std package indirectly should also fail usefully. (0.134s) # Building an *actual* std package should fail if GOROOT is set to something bogus. (0.085s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_benchmark_labels (2.09s) script_test.go:136: 2024-03-19T19:05:44Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_benchmark_labels238285542 script_test.go:160: # Tests that go test -bench prints out goos, goarch, and pkg. # Check for goos, goarch, and pkg. (2.086s) # Check go test does not print pkg multiple times (0.000s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_benchmark_chatty_fail (1.78s) script_test.go:136: 2024-03-19T19:05:44Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_benchmark_chatty_fail1340646055 script_test.go:160: # Run chatty tests. Assert on CONT lines. (1.781s) # Sanity check that output occurs. (0.000s) # Benchmarks should not print CONT. (0.000s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_benchmark_fatal (1.99s) script_test.go:136: 2024-03-19T19:05:44Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_benchmark_fatal608281698 script_test.go:160: # Test that calling t.Fatal in a benchmark causes a non-zero exit status. (1.980s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_benchmark_1x (1.46s) script_test.go:136: 2024-03-19T19:05:45Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_benchmark_1x4101929310 script_test.go:160: # Test that -benchtime 1x only runs a total of 1 loop iteration. # See golang.org/issue/32051. (1.453s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_goline_too_new (0.24s) script_test.go:136: 2024-03-19T19:05:46Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_goline_too_new1743945744 script_test.go:160: # Go should refuse to build code that is too new according to go.mod. # go.mod too new (0.031s) # go.mod referenced from go.work too new (0.100s) # go.work too new (0.052s) # vendor too new (0.045s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_gomodcache (0.76s) script_test.go:136: 2024-03-19T19:05:46Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_gomodcache2414753534 script_test.go:160: # Test GOMODCACHE (0.000s) # Explicitly set GOMODCACHE (0.298s) # Ensure GOMODCACHE doesn't affect location of sumdb, but $GOMODCACHE/cache/download/sumdb is still written (0.000s) # Test that the default GOMODCACHE is $GOPATH[0]/pkg/mod (0.129s) # If neither GOMODCACHE or GOPATH are set, GOPATH defaults to the user's $HOME/go, so GOMODCACHE becomes $HOME/go/pkg/mod (0.038s) # If GOMODCACHE isn't set and GOPATH starts with the path list separator, # GOMODCACHE is empty and any command that needs it errors out. (0.076s) # If GOMODCACHE isn't set and GOPATH has multiple elements only the first is used. (0.067s) # Test error when cannot create GOMODCACHE directory (0.030s) # Test that the following work even with GO111MODULE=off (0.000s) # Cleaning modcache (0.099s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/embed_brackets (0.96s) script_test.go:136: 2024-03-19T19:05:46Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/embed_brackets606411342 script_test.go:160: # issue 53314 (0.948s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_gofmt_invalid (0.10s) script_test.go:136: 2024-03-19T19:05:47Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_gofmt_invalid2893641331 script_test.go:160: # Test for a crash in go fmt on invalid input when using modules. # Issue 26792. (0.089s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_goline_old (0.71s) script_test.go:136: 2024-03-19T19:05:46Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_goline_old506048334 script_test.go:160: > env TESTGO_VERSION=go1.24 > go list -f '{{.Module.GoVersion}}' [stdout] 1.15 > stdout 1.15 matched: 1.15 > go mod tidy > go list -f '{{.Module.GoVersion}}' [stdout] 1.15 > stdout 1.15 matched: 1.15 > go get example.com/a@v1.0.1 [stderr] go: upgraded example.com/a v1.0.0 => v1.0.1 go: upgraded example.com/b v1.0.0 => v1.0.1 > go list -f '{{.Module.GoVersion}}' [stdout] 1.15 > stdout 1.15 matched: 1.15 > go get example.com/a@v1.0.1 go@1.16 [stderr] go: upgraded go 1.15 => 1.16 > go list -f '{{.Module.GoVersion}}' [stdout] 1.16 > stdout 1.16 matched: 1.16 script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_go_version (0.08s) script_test.go:136: 2024-03-19T19:05:47Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_go_version1448270763 script_test.go:160: # Test support for declaring needed Go version in module. (0.079s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_go_version_mixed (0.31s) script_test.go:136: 2024-03-19T19:05:47Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_go_version_mixed550207092 script_test.go:160: # Test that dependencies can use Go language features newer than the # Go version specified by the main module. (0.301s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_go_version_missing (0.30s) script_test.go:136: 2024-03-19T19:05:47Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_go_version_missing1609050157 script_test.go:160: > cp go.mod go.mod.orig # For modules whose go.mod file does not include a 'go' directive, # we assume the language and dependency semantics of Go 1.16, # but do not trigger “automatic vendoring” mode (-mod=vendor), # which was added in Go 1.14 and was not triggered # under the same conditions in Go 1.16 (which would instead # default to -mod=readonly when no 'go' directive is present). # For Go 1.16 modules, 'all' should prune out dependencies of tests, # even if the 'go' directive is missing. (0.059s) # We should only default to -mod=vendor if the 'go' directive is explicit in the # go.mod file. Otherwise, we don't actually know whether the module was written # against Go 1.11 or 1.16. We would have to update the go.mod file to clarify, # and as of Go 1.16 we don't update the go.mod file by default. # # If we set -mod=vendor explicitly, we shouldn't apply the Go 1.14 # consistency check, because — again — we don't know whether we're in a 1.11 # module or a bad-script-edited 1.16 module. (0.054s) # When we set -mod=mod, the go version should be updated immediately, # to the current version, converting the requirements from eager to lazy. # # Since we don't know which requirements are actually relevant to the main # module, all requirements are added as roots, making the requirements untidy. (0.086s) # On the other hand, if we jump straight to 'go mod tidy', # the requirements remain tidy from the start. (0.045s) # The updated version should have been written back to go.mod, so now the 'go' # directive is explicit. -mod=vendor should trigger by default, and the stronger # Go 1.14 consistency check should apply. (0.031s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_android_issue62123 (0.99s) script_test.go:136: 2024-03-19T19:05:46Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_android_issue621231535094342 script_test.go:160: > env GOOS=android GOARCH=amd64 CGO_ENABLED=0 > ! go build -o $devnull cmd/buildid [stderr] android/amd64 requires external (cgo) linking, but cgo is not enabled [exit status 1] > stderr 'android/amd64 requires external \(cgo\) linking, but cgo is not enabled' matched: android/amd64 requires external (cgo) linking, but cgo is not enabled > ! stderr 'cannot find runtime/cgo' > ! go test -c -o $devnull os [stdout] FAIL os [setup failed] FAIL [stderr] # os android/amd64 requires external (cgo) linking, but cgo is not enabled [exit status 1] > stderr '# os\nandroid/amd64 requires external \(cgo\) linking, but cgo is not enabled' matched: # os android/amd64 requires external (cgo) linking, but cgo is not enabled > ! stderr 'cannot find runtime/cgo' > env GOOS=ios GOARCH=arm64 CGO_ENABLED=0 > ! go build -o $devnull cmd/buildid [stderr] ios/arm64 requires external (cgo) linking, but cgo is not enabled [exit status 1] > stderr 'ios/arm64 requires external \(cgo\) linking, but cgo is not enabled' matched: ios/arm64 requires external (cgo) linking, but cgo is not enabled > ! stderr 'cannot find runtime/cgo' > ! go test -c -o $devnull os [stdout] FAIL os [setup failed] FAIL [stderr] # os ios/arm64 requires external (cgo) linking, but cgo is not enabled [exit status 1] > stderr '# os\nios/arm64 requires external \(cgo\) linking, but cgo is not enabled' matched: # os ios/arm64 requires external (cgo) linking, but cgo is not enabled > ! stderr 'cannot find runtime/cgo' script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_downadd_indirect (0.22s) script_test.go:136: 2024-03-19T19:05:47Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_downadd_indirect274760918 script_test.go:160: # This test illustrates a case where downgrading one module may upgrade another. # Compare to the downcross2 test case in cmd/go/internal/mvs/mvs_test.go. # The initial package import graph used in this test looks like: # # a ---- b ---- d # # The module dependency graph originally looks like: # # a ---- b.2 ---- d.2 # # b.1 ---- c.1 # # If we downgrade module d to version 1, we must downgrade b as well. # If that downgrade selects b version 1, we will add a new dependency on module c. (0.213s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_bad_example (1.57s) script_test.go:136: 2024-03-19T19:05:46Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_bad_example964101842 script_test.go:160: # Tests that invalid examples are ignored. # Verifies golang.org/issue/35284 (1.567s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/dist_list_missing (0.25s) script_test.go:136: 2024-03-19T19:05:47Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/dist_list_missing3080680883 script_test.go:160: # Regression test for #60939: when 'go tool dist' is missing, # 'go tool dist list' should inject its output. # Set GOROOT to a directory that definitely does not include # a compiled 'dist' tool. 'go tool dist list' should still # work, because 'cmd/go' itself can impersonate this command. (0.240s) stop script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/src_file (0.05s) script_test.go:136: 2024-03-19T19:05:47Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/src_file1279416262 script_test.go:160: # Files in src should not be treated as packages (0.041s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_goline (1.32s) script_test.go:136: 2024-03-19T19:05:47Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_goline4113723700 script_test.go:160: > env TESTGO_VERSION=go1.99 > ! go list -f '{{.Module.GoVersion}}' [stderr] go: updates to go.mod needed; to update it: go mod tidy [exit status 1] > stderr 'go: updates to go.mod needed' matched: go: updates to go.mod needed; to update it: > stderr 'go mod tidy' matched: go mod tidy > go mod tidy > cat go.mod [stdout] module m go 1.22 require ( example.com/a v1.0.0 example.com/b v1.0.0 ) replace example.com/a v1.0.0 => ./a100 replace example.com/a v1.0.1 => ./a101 replace example.com/a v1.0.2 => ./a102 replace example.com/b v1.0.1 => ./b101 replace example.com/b v1.0.2 => ./b102 replace example.com/b v1.0.0 => ./b100 replace example.com/b v0.9.0 => ./b100 > go list -f '{{.Module.GoVersion}}' [stdout] 1.22 > stdout 1.22 matched: 1.22 # Adding a@v1.0.01 should upgrade to Go 1.23rc1. (0.210s) # Repeating the update with go@1.24.0 should use that Go version. (0.151s) # Go version-constrained updates should report the problems. (0.673s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_boost (0.20s) script_test.go:136: 2024-03-19T19:05:48Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_boost2273522004 script_test.go:160: # If 'go get -u' finds an upgrade candidate that isn't viable, # but some other upgraded module's requirement moves past it # (for example, to a higher prerelease), then we should accept # the transitive upgrade instead of trying lower roots. (0.170s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_deprecated (0.94s) script_test.go:136: 2024-03-19T19:05:47Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_deprecated3344538297 script_test.go:160: # 'go get pkg' should not show a deprecation message for an unrelated module. (0.092s) # 'go get pkg' should show a deprecation message for the module providing pkg. (0.228s) # 'go get pkg' should show a deprecation message for a module providing # packages directly imported by pkg. (0.226s) # 'go get pkg' may show a deprecation message for an indirectly required module # if it provides a package named on the command line. (0.256s) # 'go get pkg' does not show a deprecation message for a module providing a # directly imported package if the module is no longer deprecated in its # latest version, even if the module is deprecated in its current version. (0.092s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_changes (0.86s) script_test.go:136: 2024-03-19T19:05:47Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_changes1761722521 script_test.go:160: # When adding a requirement, 'go get' prints a message for the requirement # and for changed explicit dependencies. 'go get' does not print messages # for changed indirect dependencies. (0.400s) # When removing a requirement, 'go get' prints a message for the requiremnent # and for changed explicit dependencies. 'go get' does not print messages # for changed indirect dependencies. (0.152s) # When removing or downgrading a requirement, 'go get' also prints a message # for explicit dependencies removed as a consequence. (0.269s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_ambiguous_import (0.31s) script_test.go:136: 2024-03-19T19:05:48Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_ambiguous_import4160256969 script_test.go:160: > go list -m all [stdout] example.net/importer example.net/m v0.1.0 => ./m1 > stdout '^example.net/m v0.1.0 ' matched: example.net/m v0.1.0 => ./m1 > ! stdout '^example.net/m/p ' > cp go.mod go.mod.orig # Upgrading example.net/m/p without also upgrading example.net/m # causes the import of package example.net/m/p to be ambiguous. # # TODO(#27899): Should we automatically upgrade example.net/m to v0.2.0 # to resolve the conflict? (0.091s) # Upgrading both modules simultaneously resolves the ambiguous upgrade. # Note that this command line mixes a module path (example.net/m) # and a package path (example.net/m/p) in the same command. (0.127s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/std_vendor (1.67s) script_test.go:136: 2024-03-19T19:05:47Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/std_vendor3415403066 script_test.go:160: > env GO111MODULE=off > [!compiler:gc] skip [condition not met] # 'go list' should report imports from _test.go in the TestImports field. (0.082s) # 'go list' should report standard-vendored packages by path. (0.462s) # 'go list -test' should report vendored transitive dependencies of _test.go # imports in the Deps field, with a 'vendor' prefix on their import paths. (0.715s) # Packages outside the standard library should not use its copy of vendored packages. (0.400s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_ambiguous_arg (0.80s) script_test.go:136: 2024-03-19T19:05:48Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_ambiguous_arg1099463081 script_test.go:160: > go mod tidy [stderr] go: warning: "all" matched no packages > cp go.mod go.mod.orig # If there is no sensible *package* meaning for 'm/p', it should refer # to *module* m/p. (0.367s) # When feasible, the argument 'm/p' in 'go get m/p' refers to *package* m/p, # which is in module m. # # (It only refers to *module* m/p if there is no such package at the # requested version.) (0.169s) # Repeating the above with module m/p already in the module graph does not # change its meaning. (0.162s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/devnull (2.30s) script_test.go:136: 2024-03-19T19:05:47Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/devnull3560626900 script_test.go:160: > env GO111MODULE=off # Issue 28035: go test -c -o NUL should work. # Issue 28549: go test -c -o /dev/null should not overwrite /dev/null when run as root. (2.029s) # Issue 12407: go build -o /dev/null should succeed. (0.266s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_fileproxy_vcs_missing_issue51589 (0.55s) script_test.go:136: 2024-03-19T19:05:49Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_fileproxy_vcs_missing_issue515893689812039 script_test.go:160: # This test checks that "go mod tidy -e" do not panic when # using a file goproxy that is missing some modules. # Verifies golang.org/issue/51589 # download the modules first (0.338s) # Use download cache as file:/// proxy. (0.162s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_regression_hang (0.09s) script_test.go:136: 2024-03-19T19:05:50Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_regression_hang1446228648 script_test.go:160: # This test makes checks against a regression of a bug in the Go command # where the module loader hung forever because all main module dependencies # kept workspace pruning instead of adopting the pruning in their go.mod # files, and the loader kept adding dependencies on the queue until they # were either pruned or unpruned, never breaking a module dependency cycle. # # This is the module graph in the test: # # /-------------------------\ # | | # V | # example.com/a -> example.com/b v1.0.0 -> example.com/c v1.1.0 (0.054s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_ambiguous_pkg (1.89s) script_test.go:136: 2024-03-19T19:05:48Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_ambiguous_pkg1714380415 script_test.go:160: # Both example.net/ambiguous v0.1.0 and example.net/ambiguous/pkg v0.1.0 exist. # 'go mod tidy' would arbitrarily choose the one with the longer path, # but 'go mod tidy' also arbitrarily chooses the latest version. (0.000s) # From a clean slate, 'go get' currently does the same thing as 'go mod tidy': # it resolves the package from the module with the longest matching prefix. (0.186s) # From an initial state that already depends on the shorter path, # the same 'go get' command should (somewhat arbitrarily) keep the # existing path, since it is a valid interpretation of the command. (0.291s) # The user should be able to make the command unambiguous by explicitly # upgrading the conflicting module... (0.302s) # ...or by explicitly NOT adding the conflicting module. (0.217s) # The user should also be able to fix it by *downgrading* the conflicting module # away. (0.195s) # In contrast, if we do the same thing tacking a wildcard pattern ('/...') on # the end of the package path, we get different behaviors depending on the # initial state, and no error. (This seems to contradict the “same meaning # regardless of the initial state” point above, but maybe that's ok?) (0.652s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_fs_patterns (1.39s) script_test.go:136: 2024-03-19T19:05:49Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_fs_patterns2114610192 script_test.go:160: > env GO111MODULE=on # File system pattern searches should skip sub-modules and vendor directories. (0.000s) # all packages (0.255s) # path pattern (0.226s) # directory pattern (0.159s) # non-existent directory should not prompt lookups (0.210s) # File system paths and patterns should allow the '@' character. (0.205s) # The '@' character is not allowed in directory paths that are part of # a package path. (0.301s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_find (1.07s) script_test.go:136: 2024-03-19T19:05:49Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_find3246731692 script_test.go:160: > env GO111MODULE=on # Derive module path from import comment. (0.037s) # Import comment works even with CRLF line endings. (0.103s) # Derive module path from location inside GOPATH. # 'go mod init' should succeed if modules are not explicitly disabled. (0.045s) # go mod init rejects a zero-length go.mod file (0.041s) # Module path from Godeps/Godeps.json overrides GOPATH. (0.045s) # Empty directory outside GOPATH fails. (0.065s) # Empty directory inside GOPATH/src uses location inside GOPATH. (0.070s) # In Plan 9, directories are automatically created in /n. # For example, /n/go.mod always exist, but it's a directory. # Test that we ignore directories when trying to find go.mod. (0.046s) # gplink1/src/empty where gopathlink -> GOPATH (0.194s) # GOPATH/src/link where link -> out of GOPATH (0.106s) # GOPATH/src/empty where GOPATH itself is a symlink (0.231s) # GOPATH/src/link where GOPATH and link are both symlinks (0.065s) # Too hard: doesn't match unevaluated nor completely evaluated. (Only partially evaluated.) # Whether this works depends on which OS we are running on. # cd $WORK/gopath/src/link # ! go mod init script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_prune_all (0.08s) script_test.go:136: 2024-03-19T19:05:50Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_prune_all770083121 script_test.go:160: # This test makes sure workspace mode's handling of the module graph # is compatible with module pruning. The graph we load from either of # the workspace modules should be the same, even if their graphs # don't overlap. # # This is the module graph in the test: # # example.com/p -> example.com/q v1.0.0 # example.com/a -> example.com/b v1.0.0 -> example.com/q v1.1.0 -> example.com/w v1.0.0 -> example.com/x v1.0.0 -> example.com/y v1.0.0 # |-> example.com/z v1.0.0 |-> example.com/z v1.1.0 # |-> example.com/q v1.0.5 -> example.com/r v1.0.0 # If we didn't load the whole graph and didn't load the dependencies of b # when loading p, we would end up loading q v1.0.0, rather than v1.1.0, # which is selected by MVS. (0.059s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_prune (0.06s) script_test.go:136: 2024-03-19T19:05:50Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_prune1307987155 script_test.go:160: # This test makes sure workspace mode's handling of the module graph # is compatible with module pruning. The graph we load from either of # the workspace modules should be the same, even if their graphs # don't overlap. # # This is the module graph in the test: # # example.com/a -> example.com/b v1.0.0 -> example.com/q v1.1.0 # example.com/p -> example.com/q v1.0.0 # # If we didn't load the whole graph and didn't load the dependencies of b # when loading p, we would end up loading q v1.0.0, rather than v1.1.0, # which is selected by MVS. (0.050s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_exclude_go121 (0.18s) script_test.go:136: 2024-03-19T19:05:50Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_exclude_go1213315356132 script_test.go:160: # go.dev/issue/60028: use semver sort in exclude block in 1.21 (0.154s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_badtest (4.50s) script_test.go:136: 2024-03-19T19:05:46Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_badtest3585177885 script_test.go:160: > env GO111MODULE=off > ! go test badtest/badexec [stdout] panic: badexec goroutine 1 gp=0xc0000081c0 m=0 mp=0x6388c0 [running]: panic({0x50e680?, 0x568130?}) /tmp/workdir/go/src/runtime/panic.go:778 +0x16f fp=0xc00007ae00 sp=0xc00007ad50 pc=0x436f8f badtest/badexec.init.0() /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_badtest3585177885/gopath/src/badtest/badexec/x_test.go:4 +0x25 fp=0xc00007ae20 sp=0xc00007ae00 pc=0x500205 runtime.doInit1(0x61b910) /tmp/workdir/go/src/runtime/proc.go:7095 +0xd7 fp=0xc00007af50 sp=0xc00007ae20 pc=0x448557 runtime.doInit(...) /tmp/workdir/go/src/runtime/proc.go:7062 pc=0x43a505 runtime.main() /tmp/workdir/go/src/runtime/proc.go:253 +0x22e fp=0xc00007afe0 sp=0xc00007af50 pc=0x43a3ee runtime.goexit({}) /tmp/workdir/go/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc00007afe8 sp=0xc00007afe0 pc=0x46db41 goroutine 2 gp=0xc000008700 m=nil [force gc (idle)]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) /tmp/workdir/go/src/runtime/proc.go:402 +0xce fp=0xc000050fa8 sp=0xc000050f88 pc=0x43a88e runtime.goparkunlock(...) /tmp/workdir/go/src/runtime/proc.go:408 pc=0x43a705 runtime.forcegchelper() /tmp/workdir/go/src/runtime/proc.go:326 +0x83 fp=0xc000050fe0 sp=0xc000050fa8 pc=0x43a6e3 runtime.goexit({}) /tmp/workdir/go/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc000050fe8 sp=0xc000050fe0 pc=0x46db41 created by runtime.init.6 in goroutine 1 /tmp/workdir/go/src/runtime/proc.go:314 +0x1a goroutine 3 gp=0xc000008c40 m=nil [GC sweep wait]: runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?) /tmp/workdir/go/src/runtime/proc.go:402 +0xce fp=0xc000051780 sp=0xc000051760 pc=0x43a88e runtime.goparkunlock(...) /tmp/workdir/go/src/runtime/proc.go:408 pc=0x4256d4 runtime.bgsweep(0xc0000220e0) /tmp/workdir/go/src/runtime/mgcsweep.go:278 +0x72 fp=0xc0000517c8 sp=0xc000051780 pc=0x4256b2 runtime.gcenable.gowrap1() /tmp/workdir/go/src/runtime/mgc.go:203 +0x25 fp=0xc0000517e0 sp=0xc0000517c8 pc=0x419fc5 runtime.goexit({}) /tmp/workdir/go/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc0000517e8 sp=0xc0000517e0 pc=0x46db41 created by runtime.gcenable in goroutine 1 /tmp/workdir/go/src/runtime/mgc.go:203 +0x66 goroutine 4 gp=0xc000008e00 m=nil [GC scavenge wait]: runtime.gopark(0xc0000220e0?, 0x566da8?, 0x1?, 0x0?, 0xc000008e00?) /tmp/workdir/go/src/runtime/proc.go:402 +0xce fp=0xc000051f78 sp=0xc000051f58 pc=0x43a88e runtime.goparkunlock(...) /tmp/workdir/go/src/runtime/proc.go:408 pc=0x4230e9 runtime.(*scavengerState).park(0x637f40) /tmp/workdir/go/src/runtime/mgcscavenge.go:425 +0x2e fp=0xc000051fa8 sp=0xc000051f78 pc=0x4230ce runtime.bgscavenge(0xc0000220e0) /tmp/workdir/go/src/runtime/mgcscavenge.go:653 +0x3c fp=0xc000051fc8 sp=0xc000051fa8 pc=0x42365c runtime.gcenable.gowrap2() /tmp/workdir/go/src/runtime/mgc.go:204 +0x25 fp=0xc000051fe0 sp=0xc000051fc8 pc=0x419f65 runtime.goexit({}) /tmp/workdir/go/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc000051fe8 sp=0xc000051fe0 pc=0x46db41 created by runtime.gcenable in goroutine 1 /tmp/workdir/go/src/runtime/mgc.go:204 +0xa5 FAIL badtest/badexec 0.080s FAIL [exit status 1] > ! stdout ^ok > stdout ^FAIL\tbadtest/badexec matched: FAIL badtest/badexec 0.080s > ! go test badtest/badsyntax [stdout] FAIL badtest/badsyntax [setup failed] FAIL [stderr] # badtest/badsyntax badtest/badsyntax/x_test.go:3:6: expected 'IDENT', found 'func' [exit status 1] > ! stdout ^ok > stdout ^FAIL\tbadtest/badsyntax matched: FAIL badtest/badsyntax [setup failed] > ! go test badtest/badvar [stdout] FAIL badtest/badvar [build failed] FAIL [stderr] # badtest/badvar_test [badtest/badvar.test] badtest/badvar/x_test.go:4:6: undefined: notdefined [exit status 1] > ! stdout ^ok > stdout ^FAIL\tbadtest/badvar matched: FAIL badtest/badvar [build failed] > ! go test notest [stdout] FAIL notest [build failed] FAIL [stderr] # notest notest/hello.go:6:1: syntax error: non-declaration statement outside function body [exit status 1] > ! stdout ^ok > stderr '^notest.hello.go:6:1: syntax error: non-declaration statement outside function body' # Exercise issue #7108 matched: notest/hello.go:6:1: syntax error: non-declaration statement outside function body script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/run_wildcard (0.07s) script_test.go:136: 2024-03-19T19:05:50Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/run_wildcard547712022 script_test.go:160: > env GO111MODULE=off # Fix for https://github.com/golang/go/issues/28696: # go run x/... should not panic when directory x doesn't exist. (0.062s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_edit_toolchain (0.19s) script_test.go:136: 2024-03-19T19:05:50Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_edit_toolchain2230782397 script_test.go:160: # Test support for go mod edit -toolchain to set toolchain to use (0.175s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_empty_err (0.41s) script_test.go:136: 2024-03-19T19:05:50Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_empty_err658710688 script_test.go:160: # This test checks error messages for non-existent packages in module mode. # Veries golang.org/issue/35414 (0.269s) # use 'go build -n' because 'go list' reports no error. (0.136s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_download_too_many_redirects (0.19s) script_test.go:136: 2024-03-19T19:05:50Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_download_too_many_redirects2445532905 script_test.go:160: > env GO111MODULE=on > env GOPROXYBASE=$GOPROXY > env GOPROXY=$GOPROXYBASE/redirect/11 > env GOSUMDB=off > ! go mod download rsc.io/quote@v1.2.0 [stderr] go: rsc.io/quote@v1.2.0: Get "/mod/redirect/1/rsc.io/quote/@v/v1.2.0.info": stopped after 10 redirects [exit status 1] > stderr 'stopped after 10 redirects' matched: go: rsc.io/quote@v1.2.0: Get "/mod/redirect/1/rsc.io/quote/@v/v1.2.0.info": stopped after 10 redirects > env GOPROXY=$GOPROXYBASE/redirect/9 > go mod download rsc.io/quote@v1.2.0 script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_edit_go (0.70s) script_test.go:136: 2024-03-19T19:05:50Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_edit_go1676376618 script_test.go:160: # Test support for go mod edit -go to set language version. (0.393s) # Reverting the version should force a rebuild and error instead of using # the cached 1.9 build. (https://golang.org/issue/37804) (0.225s) # go=none should drop the line (0.060s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_e (0.55s) script_test.go:136: 2024-03-19T19:05:50Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_e2660207697 script_test.go:160: > cp go.mod go.mod.orig # If a dependency cannot be resolved, 'go mod tidy' fails with an error message # explaining the problem and does not update the go.mod file. # TODO(bcmills): Ideally, with less redundancy than these error messages! (0.145s) # If a dependency cannot be resolved, 'go mod vendor' fails with an error message # explaining the problem, does not update the go.mod file, and does not create # the vendor directory. (0.061s) # 'go mod tidy' still logs the errors, but succeeds and updates go.mod. (0.107s) # 'go mod vendor -e' still logs the errors, but creates a vendor directory # and exits with status 0. # 'go mod vendor -e' does not update go.mod and will not vendor packages that # would require changing go.mod, for example, by adding a requirement. (0.213s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/slashpath (1.50s) script_test.go:136: 2024-03-19T19:05:49Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/slashpath976217018 script_test.go:160: # .a files should use slash-separated paths even on windows # This is important for reproducing native builds with cross-compiled builds. (0.700s) # executables should use slash-separated paths even on windows # This is important for reproducing native builds with cross-compiled builds. (0.791s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_enabled (1.14s) script_test.go:136: 2024-03-19T19:05:50Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_enabled1822456931 script_test.go:160: # GO111MODULE=auto should trigger any time a go.mod exists in a parent directory. (0.498s) # GO111MODULE unset should be equivalent to on. (0.096s) # GO111MODULE=on should trigger everywhere (0.264s) # GO111MODULE=off should trigger nowhere (0.179s) # GO111MODULE=auto should ignore and warn about /tmp/go.mod (0.093s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/cover_mod_empty (0.33s) script_test.go:136: 2024-03-19T19:05:51Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/cover_mod_empty3971129172 script_test.go:160: > go tool cover -func=cover.out [stdout] total: (statements) 0.0% > stdout total.*statements.*0.0% matched: total: (statements) 0.0% > go mod init golang.org/issue/33855 [stderr] go: creating new go.mod: module golang.org/issue/33855 > go tool cover -func=cover.out [stdout] total: (statements) 0.0% > stdout total.*statements.*0.0% matched: total: (statements) 0.0% script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/doc (4.48s) script_test.go:136: 2024-03-19T19:05:47Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/doc340061260 script_test.go:160: # go doc --help (0.283s) # go help doc (0.045s) # go doc (0.469s) # go doc (0.327s) # go doc (0.265s) # go doc . (0.517s) # go doc .. (0.395s) # go doc (0.415s) # go doc (0.390s) # go doc . (0.353s) # go doc . (0.342s) # go doc (0.259s) # go doc (0.416s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/cover_pattern (0.78s) script_test.go:136: 2024-03-19T19:05:51Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/cover_pattern2597634597 script_test.go:160: > [compiler:gccgo] skip [condition not met] # If coverpkg=m/sleepy... expands by package loading # (as opposed to pattern matching on deps) # then it will try to load sleepybad, which does not compile, # and the test command will fail. (0.767s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_issue54372 (0.12s) script_test.go:136: 2024-03-19T19:05:52Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_issue543723211864683 script_test.go:160: # go mod verify should not try to verify the workspace modules. # This is a test for #54372. (0.074s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_edit (1.55s) script_test.go:136: 2024-03-19T19:05:50Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_edit662343749 script_test.go:160: > env GO111MODULE=on # Test that go mod edits and related mod flags work. # Also test that they can use a dummy name that isn't resolvable. golang.org/issue/24100 # go mod init (0.172s) # go mod edits (0.152s) # -exclude and -retract reject invalid versions. (0.257s) # go mod edit -json (0.049s) # go mod edit -json (retractions with rationales) (0.047s) # go mod edit -json (deprecation) (0.070s) # go mod edit -json (empty mod file) (0.063s) # go mod edit -replace (0.385s) # go mod edit -fmt (0.126s) # go mod edit -module (0.091s) # golang.org/issue/30513: don't require go-gettable module paths. (0.113s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_nowork (0.27s) script_test.go:136: 2024-03-19T19:05:52Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_nowork159003389 script_test.go:160: > ! go work use [stderr] go: no go.work file found (run 'go work init' first or specify path using GOWORK environment variable) [exit status 1] > stderr '^go: no go\.work file found\n\t\(run ''go work init'' first or specify path using GOWORK environment variable\)$' matched: go: no go.work file found (run 'go work init' first or specify path using GOWORK environment variable) > ! go work use . [stderr] go: no go.work file found (run 'go work init' first or specify path using GOWORK environment variable) [exit status 1] > stderr '^go: no go\.work file found\n\t\(run ''go work init'' first or specify path using GOWORK environment variable\)$' matched: go: no go.work file found (run 'go work init' first or specify path using GOWORK environment variable) > ! go work edit [stderr] go: no go.work file found (run 'go work init' first or specify path using GOWORK environment variable) [exit status 1] > stderr '^go: no go\.work file found\n\t\(run ''go work init'' first or specify path using GOWORK environment variable\)$' matched: go: no go.work file found (run 'go work init' first or specify path using GOWORK environment variable) > ! go work edit -go=1.18 [stderr] go: no go.work file found (run 'go work init' first or specify path using GOWORK environment variable) [exit status 1] > stderr '^go: no go\.work file found\n\t\(run ''go work init'' first or specify path using GOWORK environment variable\)$' matched: go: no go.work file found (run 'go work init' first or specify path using GOWORK environment variable) > ! go work sync [stderr] go: no go.work file found (run 'go work init' first or specify path using GOWORK environment variable) [exit status 1] > stderr '^go: no go\.work file found\n\t\(run ''go work init'' first or specify path using GOWORK environment variable\)$' matched: go: no go.work file found (run 'go work init' first or specify path using GOWORK environment variable) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_issue54048 (0.07s) script_test.go:136: 2024-03-19T19:05:52Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_issue540481616925109 script_test.go:160: > ! go list -m -json all [stderr] go: module example.com/foo appears multiple times in workspace [exit status 1] > stderr 'go: module example.com/foo appears multiple times in workspace' matched: go: module example.com/foo appears multiple times in workspace script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_module_not_in_go_work (0.28s) script_test.go:136: 2024-03-19T19:05:52Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_module_not_in_go_work4126667906 script_test.go:160: # This is a regression test for issue #49632. # The Go command should mention go.work if the user # tries to load a local package that's in a module # that's not in go.work and can't be resolved. (0.274s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_issue51204 (0.13s) script_test.go:136: 2024-03-19T19:05:52Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_issue512043079971836 script_test.go:160: > go work sync > go list -f '{{.Dir}}' example.com/test [stdout] /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_issue512043079971836/gopath/src/test > stdout '^'$PWD${/}test'$' matched: /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_issue512043079971836/gopath/src/test script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/run_vendor (1.34s) script_test.go:136: 2024-03-19T19:05:51Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/run_vendor2474256480 script_test.go:160: # Run (1.323s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/run_issue11709 (1.05s) script_test.go:136: 2024-03-19T19:05:51Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/run_issue117093224052545 script_test.go:160: # 'go run' should not pass extraneous environment variables to the subprocess. (1.041s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_init_path (0.20s) script_test.go:136: 2024-03-19T19:05:52Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_init_path311654914 script_test.go:160: # Regression test for https://go.dev/issue/51448. # 'go work init . .. foo/bar' should produce a go.work file # with the same paths as 'go work init; go work use -r ..', # and it should have 'use .' rather than 'use ./.' inside. (0.195s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_init_gowork (0.19s) script_test.go:136: 2024-03-19T19:05:52Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_init_gowork3469544250 script_test.go:160: # Test that the GOWORK environment variable flag is used by go work init. (0.182s) # Create directories to make go.work files in. script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_init_toolchain (0.31s) script_test.go:136: 2024-03-19T19:05:52Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_init_toolchain3663860865 script_test.go:160: # Create basic modules and work space. # Note that toolchain lines in modules should be completely ignored. (0.077s) # work init writes the current Go version to the go line (0.033s) # work init with older modules should leave go 1.50 in the go.work. (0.050s) # work init with newer modules should bump go, # including updating to a newer toolchain as needed. # Because work init writes the current toolchain as the go version, # it writes the bumped go version, not the max of the used modules. (0.134s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_install_submodule (0.48s) script_test.go:136: 2024-03-19T19:05:52Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_install_submodule2730111488 script_test.go:160: # This is a regression test for golang.org/issue/50036 # Don't check sums for other modules in the workspace. (0.466s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_get_toolchain (0.39s) script_test.go:136: 2024-03-19T19:05:52Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_get_toolchain2443960358 script_test.go:160: # go get should update the go and toolchain lines in go.work (0.331s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_empty_panic_GOPATH (0.29s) script_test.go:136: 2024-03-19T19:05:52Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_empty_panic_GOPATH199225929 script_test.go:160: # Regression test for https://go.dev/issue/58767: # with an empty go.work file in GOPATH mode, calls to load.defaultGODEBUG for a # package named "main" panicked in modload.MainModules.GoVersion. (0.270s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_goline_order (0.54s) script_test.go:136: 2024-03-19T19:05:52Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_goline_order3855377635 script_test.go:160: # Check that go line in go.work is always >= go line of used modules. # Using an old Go version, fails during module loading, but we rewrite the error to the # same one a switching version would use, without the auto-switch. # This is a misconfigured system that should not arise in practice. (0.286s) # Using a new enough Go version, fails later and can suggest 'go work use'. (0.042s) # go work use fixes the problem. (0.159s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_download_replace_file (0.08s) script_test.go:136: 2024-03-19T19:05:53Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_download_replace_file1158624760 script_test.go:160: # This test checks that 'go mod download' produces no output for # the main module (when specified implicitly) and for a module replaced # with a file path. # Verifies golang.org/issue/35505. (0.071s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_edit_toolchain (0.23s) script_test.go:136: 2024-03-19T19:05:52Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_edit_toolchain1974178310 script_test.go:160: # Test support for go work edit -toolchain to set toolchain to use (0.223s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/run_issue51125 (1.89s) script_test.go:136: 2024-03-19T19:05:51Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/run_issue511253033711055 script_test.go:160: # Regression test for https://go.dev/issue/51125: # Relative import paths (a holdover from GOPATH) were accidentally allowed in module mode. (0.000s) # Relative imports should not be allowed with a go.mod file. (0.763s) # Relative imports should not be allowed in module mode even without a go.mod file. (0.493s) # In GOPATH mode, they're still allowed (but only outside of GOPATH/src). (0.619s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/embed (6.99s) script_test.go:136: 2024-03-19T19:05:46Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/embed522327400 script_test.go:160: # go list shows patterns and files (1.612s) # build embeds x.txt (0.605s) # build uses cache correctly (1.050s) # build rejects invalid names (0.849s) # build rejects symlinks (0.155s) # build rejects empty directories (0.182s) # build ignores symlinks and invalid names in directories (1.185s) # build reports errors with positions in imported packages (0.172s) # all still ignores .git and symlinks (0.150s) # all finds dot files and underscore files (1.019s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_goproxy_off (0.93s) script_test.go:136: 2024-03-19T19:05:52Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_goproxy_off1434050127 script_test.go:160: > go work init > go work use . ./sub # Verify that the go.mod files for both modules in the workspace are tidy, # and add missing go.sum entries as needed. (0.599s) # Now remove the module dependencies from the module cache. # Because one module upgrades a transitive dependency needed by another, # listing the modules in the workspace should error out. (0.138s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_build_no_modules (0.05s) script_test.go:136: 2024-03-19T19:05:53Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_build_no_modules3768966862 script_test.go:160: > ! go build . [stderr] go: no modules were found in the current workspace; see 'go help work' [exit status 1] > stderr 'go: no modules were found in the current workspace; see ''go help work''' matched: go: no modules were found in the current workspace; see 'go help work' script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_disablevendor (0.39s) script_test.go:136: 2024-03-19T19:05:53Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_disablevendor1902104825 script_test.go:160: # Test that mod=vendor is disabled in workspace mode, even # with a single workspace module. (0.000s) # Base case: ensure the module would default to mod=vendor # outside of workspace mode. (0.186s) # Test case: endure the module does not enter mod=vendor outside # worspace mode. (0.183s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_gowork (1.23s) script_test.go:136: 2024-03-19T19:05:52Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_gowork2656467805 script_test.go:160: > env GOWORK=stop.work > ! go list a # require absolute path [stderr] go: go: invalid GOWORK: not an absolute path [exit status 1] > ! stderr panic > env GOWORK=doesnotexist > ! go list a [stderr] go: go: invalid GOWORK: not an absolute path [exit status 1] > ! stderr panic > env GOWORK=$GOPATH/src/stop.work > go list -n a [stdout] a > go build -n a [stderr] # # a # mkdir -p $WORK/b001/ echo '# import config' > $WORK/b001/importcfg # internal cd /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_gowork2656467805/gopath/src /tmp/workdir/go/pkg/tool/openbsd_amd64/compile -o $WORK/b001/_pkg_.a -trimpath "$WORK/b001=>" -p a -lang=go1.18 -complete -buildid a7DQjKs8SQjL7vTy7hAz/a7DQjKs8SQjL7vTy7hAz -c=4 -nolocalimports -importcfg $WORK/b001/importcfg -pack ./a/a.go /tmp/workdir/go/pkg/tool/openbsd_amd64/buildid -w $WORK/b001/_pkg_.a # internal > go test -n a [stderr] mkdir -p $WORK/b001/ # # a # mkdir -p $WORK/b090/ echo '# import config' > $WORK/b090/importcfg # internal cd /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_gowork2656467805/gopath/src /tmp/workdir/go/pkg/tool/openbsd_amd64/compile -o $WORK/b090/_pkg_.a -trimpath "$WORK/b090=>" -p a -lang=go1.18 -complete -buildid 80IxC6dLubxO272RQvxL/80IxC6dLubxO272RQvxL -c=4 -nolocalimports -importcfg $WORK/b090/importcfg -pack ./a/a.go ./a/a_test.go /tmp/workdir/go/pkg/tool/openbsd_amd64/buildid -w $WORK/b090/_pkg_.a # internal # # a.test # cat >$WORK/b001/importcfg << 'EOF' # internal # import config packagefile os=/tmp/workdir/gocache/34/34d3a0c178b07d2e6c5f0725b0c60b6494cd29a7d015d3e8aa84e58774fc2146-d packagefile reflect=/tmp/workdir/gocache/01/0133474fb2c61a93140f452d198666af849680417a27639d51bc07ba15fdcb63-d packagefile testing=/tmp/workdir/gocache/d2/d2e20e3951fcf24ee077fcc2a429d1cd2a78a9e850bb6704e01a3536a34ce507-d packagefile testing/internal/testdeps=/tmp/workdir/gocache/9e/9ec06158ea90d174c40578212c0613180eaefe40959428da841c87d43f79a7ef-d packagefile runtime=/tmp/workdir/gocache/71/71bd5138d52a8bee2438c671e9449bbfffdd1cd7b31c973dbed7dffa21b27d64-d packagefile a=$WORK/b090/_pkg_.a EOF /tmp/workdir/go/pkg/tool/openbsd_amd64/compile -o $WORK/b001/_pkg_.a -trimpath "$WORK/b001=>" -p main -lang=go1.18 -complete -buildid sqNoEscd1KfBZgJJVFpR/sqNoEscd1KfBZgJJVFpR -dwarf=false -c=4 -nolocalimports -importcfg $WORK/b001/importcfg -pack $WORK/b001/_testmain.go /tmp/workdir/go/pkg/tool/openbsd_amd64/buildid -w $WORK/b001/_pkg_.a # internal cat >$WORK/b001/importcfg.link << 'EOF' # internal packagefile a.test=$WORK/b001/_pkg_.a packagefile os=/tmp/workdir/gocache/34/34d3a0c178b07d2e6c5f0725b0c60b6494cd29a7d015d3e8aa84e58774fc2146-d packagefile reflect=/tmp/workdir/gocache/01/0133474fb2c61a93140f452d198666af849680417a27639d51bc07ba15fdcb63-d packagefile testing=/tmp/workdir/gocache/d2/d2e20e3951fcf24ee077fcc2a429d1cd2a78a9e850bb6704e01a3536a34ce507-d packagefile testing/internal/testdeps=/tmp/workdir/gocache/9e/9ec06158ea90d174c40578212c0613180eaefe40959428da841c87d43f79a7ef-d packagefile runtime=/tmp/workdir/gocache/71/71bd5138d52a8bee2438c671e9449bbfffdd1cd7b31c973dbed7dffa21b27d64-d packagefile a=$WORK/b090/_pkg_.a packagefile errors=/tmp/workdir/gocache/87/87fd6e8b34d20a0c1f056ae20a59ce4c80a5ba569ee3cfab90360e8805355d7b-d packagefile internal/bytealg=/tmp/workdir/gocache/5d/5d3349cde15ad6f1f03666a289629ca001e52ab1e6f6a3d024669f5f78c94585-d packagefile internal/itoa=/tmp/workdir/gocache/40/40bc55c64373ee9a12c18e9c60b3801a1ec87c6b1bbedbfb02e08293584bf07a-d packagefile internal/poll=/tmp/workdir/gocache/04/040676682aeb3263f1322d7628dd855dbc31322a70a9c3382a75fbfa1978111c-d packagefile internal/safefilepath=/tmp/workdir/gocache/61/61b4601b776575f5b144ba64901971243deb1cd461a0d6f383155148050f7a34-d packagefile internal/syscall/execenv=/tmp/workdir/gocache/cc/ccde0ed536fb564d09eb92e1734d80db7e6f022f2f026ccc274754da26506cb1-d packagefile internal/syscall/unix=/tmp/workdir/gocache/ee/ee80b97bce4b63ef119bfceaae2d3d362ce35a8dd7ef1d69f232b313fc86b089-d packagefile internal/testlog=/tmp/workdir/gocache/dc/dc2e78f6dbe738a1009bfbe7770d7b54469b8990af044df676dc8fb06a8e845a-d packagefile io=/tmp/workdir/gocache/29/29e418e052a3c5aac31d61f3f3f10d8f79a57a307c4a522acba0e83d721227d3-d packagefile io/fs=/tmp/workdir/gocache/a4/a4f578d696b80d81e58a46aa512da7d918063871c530e610575330fdea129393-d packagefile sort=/tmp/workdir/gocache/35/350c9c30aba5c2e4e28b1aec2356962f8eefd9f39e8bf832279d4212d231116c-d packagefile sync=/tmp/workdir/gocache/d0/d068d5f1819193fb89e1de4f14f86e84b7af10070054572eeea091782af3eeba-d packagefile sync/atomic=/tmp/workdir/gocache/5c/5c241ca6cc6efd6689a5766d406037693f048298b8eb4953e249d2b92fcc591b-d packagefile syscall=/tmp/workdir/gocache/1d/1dc126cd83de3a9e3496e01ba21a57411d4d192e8a74dc24f54df95aee9e1334-d packagefile time=/tmp/workdir/gocache/4c/4cd98ccbfc1e9ad2e84c6598643cd91591008be4fe8a23620c2098b1c646b1ba-d packagefile internal/abi=/tmp/workdir/gocache/bd/bd09a528fd70d8e47d6c4d2ea7b451a7d5bb2b1816ee8d7bb2ac7f5cfd32cc90-d packagefile internal/goarch=/tmp/workdir/gocache/e4/e4ea0279d969403d6d11da5c8f8358718eea76c20f0ec9ababc2a86983505b26-d packagefile internal/unsafeheader=/tmp/workdir/gocache/40/402f477107ad6da2178f9491942ec5dae37b8b0b20f3152c81ba220467404786-d packagefile math=/tmp/workdir/gocache/3b/3bdb02433cde85b81a87bd8aad239e0194261a39b51b93e364d67b3dcc4ea8ff-d packagefile strconv=/tmp/workdir/gocache/56/56bc6e8a98ff5b5906575d37ee9fe658b7ae0ed1b4488b5b087a4b2006305090-d packagefile unicode=/tmp/workdir/gocache/72/7293d9c33eaa9eb0145c78cc17a5b01e986854e84a899c7172846a768e3c288c-d packagefile unicode/utf8=/tmp/workdir/gocache/49/497bb9617fa663d92e4a5c807add7acef4ba3c0d24b23bd7b60ba884c9b049dc-d packagefile bytes=/tmp/workdir/gocache/3c/3c35dd3b3ffb523cb7f34f88132e4a8551d816b5610e73e108b549cb4f3fe028-d packagefile flag=/tmp/workdir/gocache/4d/4dee91cba1599ea5ff616d151448dde5130c6cbb763ca2bb799cfaebb72b79f6-d packagefile fmt=/tmp/workdir/gocache/2c/2cb4752aed8455397b4585d9928069e2b337eaea1058e1b9cf5ff6ed5746e973-d packagefile internal/goexperiment=/tmp/workdir/gocache/46/4698f369cef8f2c663214c85669a4dc6211ecb4b08921c1d517e2623a336df12-d packagefile internal/race=/tmp/workdir/gocache/a3/a3a28f275a65bdeb826149eb330fe23123f838724c92ac2719cb8f913aa682dc-d packagefile internal/sysinfo=/tmp/workdir/gocache/1e/1e4c30e787b36d22fe6e8068b28ce29454a53807dd363b7a2889082e7b060876-d packagefile math/rand=/tmp/workdir/gocache/63/63b56854a8f646e09bd07fbd297586e3a8fee19fb4a365055b929465190df2f1-d packagefile path/filepath=/tmp/workdir/gocache/c3/c34cda98505a44206a405d7754473c4ec3547cd9129202d24dbf76ad3a3c6ec4-d packagefile runtime/debug=/tmp/workdir/gocache/b3/b31f9c97483ff2a3cb1f2272de171f4d2301a1378e1e66e882199f8aad1cc445-d packagefile runtime/trace=/tmp/workdir/gocache/80/800af43cef5d9ded57a27cb1e31cfde8188378e6e0fdc2f685eaf94cb7d4bc78-d packagefile strings=/tmp/workdir/gocache/6a/6a30edfe9d92fe7c0ad62d651ba445120c9d57b97ca126ffeda5c7ac5f502252-d packagefile bufio=/tmp/workdir/gocache/6a/6ad2bb0d54201d6eb953ad2ddfc4ebfdc96d99d159dc60c0ca35ad0f68bdaf11-d packagefile context=/tmp/workdir/gocache/3a/3af39e001682cefe52b2ff3b37f3699cac4dce891550983993d5bf7b50ae04e5-d packagefile internal/fuzz=/tmp/workdir/gocache/5d/5ded4a5e5bdf1a7ac0e9492e60e75112b7560fb6e2c505ce18b6a97702f319d1-d packagefile os/signal=/tmp/workdir/gocache/ca/ca48c32aabb26291412c361c88e260c171893e535cca243f72e7526a7def5e24-d packagefile regexp=/tmp/workdir/gocache/98/98304dec5f5a9b6eb3cf8e52ffd8e061dc153aa731524abea0840cf991ea2448-d packagefile runtime/pprof=/tmp/workdir/gocache/1f/1f23e40796dde70b23e29eecb2215033c8f992f81188cb53fc653afdc51a00ea-d packagefile internal/chacha8rand=/tmp/workdir/gocache/d8/d8df45b4026c4018918815a4c0f1f4d2669c61393bf68cbfb8f64f8220e9f13f-d packagefile internal/coverage/rtcov=/tmp/workdir/gocache/fa/fadfd0977c045d1e9c25ba3b1d2dfcc80c611d6b996559c1e308d4dddf99b225-d packagefile internal/cpu=/tmp/workdir/gocache/99/99ab1ba876bc13683165c0ced29d97547e0cf1c1a1b014fff18d832639dfbfad-d packagefile internal/godebugs=/tmp/workdir/gocache/74/7453a7031fcec631ac2dfc20242d33efee3dfeb45955ab870054f45bb8533b36-d packagefile internal/goos=/tmp/workdir/gocache/4d/4dad13c0dbdcb996fc31c17a27ddfe609b58c043e67f76a44cd09c10e6fd68a6-d packagefile runtime/internal/atomic=/tmp/workdir/gocache/50/50c7aaa28ac08fbec3f0f8c4f07d0b4cc678b1007cd31a36a8a450550e1d3acf-d packagefile runtime/internal/math=/tmp/workdir/gocache/ae/ae3f6da79d12ef2c6078f9d7ff57a082fe5452deab2bfc69769673d25903091d-d packagefile runtime/internal/sys=/tmp/workdir/gocache/eb/ebe003d206563f8cd85cb9e6b8b9b80536dad2e35209e1a730eef13ed0470bbd-d packagefile internal/reflectlite=/tmp/workdir/gocache/bf/bf6586abe19d6585291ba5c4d1586bf53c3c8bea166bcbe919d34d643083cd7e-d packagefile internal/oserror=/tmp/workdir/gocache/c3/c3658ba381b6116aeb72812cb10656ba38c6fb8ef8e160771f0774d82f76d250-d packagefile path=/tmp/workdir/gocache/85/85eeb7a0ab6b04f02f99f39ebe1df2a5bc5fc0ad11e6ccef4dcf02b3a2e09c40-d packagefile math/bits=/tmp/workdir/gocache/43/435d71b1ae5adde1a4df9bf0259140eacdc07cc36c97302546f688ef2fb1d547-d packagefile slices=/tmp/workdir/gocache/ec/ec8c59941a32cdd3f10931571db2c081712e4a565cf2901efee524c2b341af35-d packagefile encoding=/tmp/workdir/gocache/cc/cc4e4d101a3679017802281e37bf29edf5dc6aceb0783c8f42e0519251bfa607-d packagefile internal/fmtsort=/tmp/workdir/gocache/27/27276ba7e77e133cf62f04813a38507a8e3105695176739c2fe2edeebfc8601a-d packagefile internal/godebug=/tmp/workdir/gocache/27/27355ba80f23be6f08d443df70389a81d131abb3b3a5af7c59a385bafb4d9228-d packagefile crypto/sha256=/tmp/workdir/gocache/22/22c1a40a7c33a850254d8954df290dcf4ca8f62e000f32c9e9f82de6329113f8-d packagefile encoding/binary=/tmp/workdir/gocache/c7/c78b1353d2d92accbbc0892e22de9606e9bf92f04098e067eb18d8962743bc4d-d packagefile encoding/json=/tmp/workdir/gocache/07/07a56aeb233cc69699069f33c01827679bde2bce52130fbc024ee00bb9ce26d6-d packagefile go/ast=/tmp/workdir/gocache/7d/7ddce7924cfefd9f3e8182a371128dec41faf8fcd3f688d997acd199b45f7a01-d packagefile go/parser=/tmp/workdir/gocache/fa/fadc1a0a66179bb1159324d60565d494e07edba5d6644a99836e677e16144c4b-d packagefile go/token=/tmp/workdir/gocache/19/19b28627b08ce258a68eb9badac25341de218d6c10cf76859cd5e3e9f3887b83-d packagefile os/exec=/tmp/workdir/gocache/fc/fc836b95fd8b58d0bce1e8f5556e9e1c190fd2fe9e64b4d590c7516fc7513184-d packagefile regexp/syntax=/tmp/workdir/gocache/c4/c42c1afbb7f436680172857cbc133b205d0864568f2651d593e4a46853307c1a-d packagefile compress/gzip=/tmp/workdir/gocache/7b/7b991395bb12532d8d156193da9aa7c4e1f645ff6f82e4109a8fb9ae1a8c841e-d packagefile text/tabwriter=/tmp/workdir/gocache/b2/b24b613136df67e3852b533b15e7a062526d723b6b42ecc0ed21b16443e1e665-d packagefile cmp=/tmp/workdir/gocache/72/72fc52a1b0c47048aeea06accd04c489ae2339e49e15308bb6b2e8bfb7488d3b-d packagefile internal/bisect=/tmp/workdir/gocache/61/61b0b9ef918cd2403712ea003073004648975863df8e982aaaed4ea19d9fdda8-d packagefile crypto=/tmp/workdir/gocache/16/16e2735b62c8781ccececac901c31e751e43f4d5bea764d48d8afe922828ff0c-d packagefile crypto/internal/boring=/tmp/workdir/gocache/92/928780b3ced730f5df14ff6623f579e08a2463ec51c982f9a164ce4d19d24204-d packagefile hash=/tmp/workdir/gocache/6f/6fcf8ea801e55424a580f4158812f9152cb6ce63ae5ef3a5f9f1a194443e3adf-d packagefile encoding/base64=/tmp/workdir/gocache/2e/2e8bf48b2a4cbd47d6f05749586ddd31693c9293c2f252e929fd0ab52d627645-d packagefile unicode/utf16=/tmp/workdir/gocache/b2/b29b9da41ce7c0bf6f6c69aa1c866d2d6b813409a65d9317a333d7cfaca3f93d-d packagefile go/scanner=/tmp/workdir/gocache/c2/c2b974a4744ae37f317ec17ab56d76cc797a2a24bf60a5132ec80ff19688757e-d packagefile go/build/constraint=/tmp/workdir/gocache/40/4097c59c1afd4f8407fa0c7d483765b30576d6bcf41432f9d2949eaaa0b68202-d packagefile go/internal/typeparams=/tmp/workdir/gocache/09/0986b872664867589edc4c4e964104702c82230913bf6d680662c38e27e84565-d packagefile compress/flate=/tmp/workdir/gocache/3a/3a5ec60430c79aa572b6d8a22c9c9913d2875bb47a79d25719779550d0402f91-d packagefile hash/crc32=/tmp/workdir/gocache/ba/baa6d999f440f8d20bd3fb5d6dbeb24f9758dda55b1612156a3fb9647d9d261e-d packagefile crypto/cipher=/tmp/workdir/gocache/4e/4e2421b582b27bbd9e904a76333c9a80f40a2159a6a86fbb6427381121e3d134-d packagefile crypto/internal/boring/sig=/tmp/workdir/gocache/e7/e7445954208d1e457bca4a136eafb2d6f30c72f648412486fce9404332ab075a-d packagefile crypto/internal/alias=/tmp/workdir/gocache/18/186b4ab92f52fdbb6f57e7a420274f70fd75c1ef36273df9ed6a73aeade404d6-d packagefile crypto/subtle=/tmp/workdir/gocache/ee/ee0dbd52bc40137b85a7633f33db2f9afa1cc934f99197b9999c44b59f7a663d-d modinfo "0w\xaf\f\x92t\b\x02A\xe1\xc1\a\xe6\xd6\x18\xe6\xf92C1\x86\x18 r\x00\x82B\x10A\x16\xd8\xf2" EOF cd . GOROOT='/tmp/workdir/go' /tmp/workdir/go/pkg/tool/openbsd_amd64/link -o $WORK/b001/a.test -importcfg $WORK/b001/importcfg.link -s -w -X=runtime.godebugDefault=httplaxcontentlength=1,httpmuxgo121=1,panicnil=1,tls10server=1,tlsrsakex=1,tlsunsafeekm=1,winreadlinkvolume=0,winsymlink=0 -buildmode=exe -buildid=VCTUJDsgElbNXivE0JNV/sqNoEscd1KfBZgJJVFpR/sqNoEscd1KfBZgJJVFpR/VCTUJDsgElbNXivE0JNV -X testing.testBinary=1 -extld=clang $WORK/b001/_pkg_.a cat >$WORK/b090/vet.cfg << 'EOF' # internal { "ID": "a", "Compiler": "gc", "Dir": "/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_gowork2656467805/gopath/src/a", "ImportPath": "a", "GoFiles": [ "/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_gowork2656467805/gopath/src/a/a.go", "/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_gowork2656467805/gopath/src/a/a_test.go" ], "NonGoFiles": [], "IgnoredFiles": [], "ImportMap": {}, "PackageFile": {}, "Standard": {}, "PackageVetx": {}, "VetxOnly": false, "VetxOutput": "$WORK/b090/vet.out", "GoVersion": "go1.18", "SucceedOnTypecheckFailure": false } EOF cd /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_gowork2656467805/gopath/src/a TERM='dumb' /tmp/workdir/go/pkg/tool/openbsd_amd64/vet -atomic -bool -buildtags -directive -errorsas -ifaceassert -nilfunc -printf -slog -stringintconv $WORK/b090/vet.cfg $WORK/b001/a.test -test.testlogfile=$WORK/b001/testlog.txt -test.paniconexit0 -test.timeout=10m0s rm -rf $WORK/b001/ script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_edit (0.72s) script_test.go:136: 2024-03-19T19:05:53Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_edit101674644 script_test.go:160: # Test editing go.work files. (0.700s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work_env (1.20s) script_test.go:136: 2024-03-19T19:05:52Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_env1182294469 script_test.go:160: > go env GOWORK [stdout] /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_env1182294469/gopath/src/go.work > stdout '^'$GOPATH'[\\/]src[\\/]go.work$' matched: /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_env1182294469/gopath/src/go.work > go env [stdout] GO111MODULE='' GOARCH='amd64' GOBIN='' GOCACHE='/tmp/workdir/gocache' GOENV='/no-home/.config/go/env' GOEXE='' GOEXPERIMENT='' GOFLAGS='' GOHOSTARCH='amd64' GOHOSTOS='openbsd' GOINSECURE='' GOMODCACHE='/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_env1182294469/gopath/pkg/mod' GONOPROXY='' GONOSUMDB='' GOOS='openbsd' GOPATH='/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_env1182294469/gopath' GOPRIVATE='' GOPROXY='http://127.0.0.1:40509/mod' GOROOT='/tmp/workdir/go' GOSUMDB='localhost.localdev/sumdb+00000c67+AcTrnkbUA+TU4heY3hkjiSES/DSQniBqIeQ/YppAUtK6' GOTMPDIR='' GOTOOLCHAIN='auto' GOTOOLDIR='/tmp/workdir/go/pkg/tool/openbsd_amd64' GOVCS='*:all' GOVERSION='devel 4f35b335166bbf175ec73f9b1b1f0e54251f0fd9' GODEBUG='' GCCGO='gccgo' GOAMD64='v1' AR='ar' CC='clang' CXX='clang++' CGO_ENABLED='1' GOMOD='/dev/null' GOWORK='/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_env1182294469/gopath/src/go.work' CGO_CFLAGS='-O2 -g' CGO_CPPFLAGS='' CGO_CXXFLAGS='-O2 -g' CGO_FFLAGS='-O2 -g' CGO_LDFLAGS='-O2 -g' PKG_CONFIG='pkg-config' GOGCCFLAGS='-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_env1182294469/tmp/go-build2094057633=/tmp/go-build -gno-record-gcc-switches' > stdout '^(set )?GOWORK=''?'$GOPATH'[\\/]src[\\/]go.work''?$' matched: GOWORK='/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_env1182294469/gopath/src/go.work' > cd .. > go env GOWORK [stdout] > ! stdout . > go env [stdout] GO111MODULE='' GOARCH='amd64' GOBIN='' GOCACHE='/tmp/workdir/gocache' GOENV='/no-home/.config/go/env' GOEXE='' GOEXPERIMENT='' GOFLAGS='' GOHOSTARCH='amd64' GOHOSTOS='openbsd' GOINSECURE='' GOMODCACHE='/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_env1182294469/gopath/pkg/mod' GONOPROXY='' GONOSUMDB='' GOOS='openbsd' GOPATH='/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_env1182294469/gopath' GOPRIVATE='' GOPROXY='http://127.0.0.1:40509/mod' GOROOT='/tmp/workdir/go' GOSUMDB='localhost.localdev/sumdb+00000c67+AcTrnkbUA+TU4heY3hkjiSES/DSQniBqIeQ/YppAUtK6' GOTMPDIR='' GOTOOLCHAIN='auto' GOTOOLDIR='/tmp/workdir/go/pkg/tool/openbsd_amd64' GOVCS='*:all' GOVERSION='devel 4f35b335166bbf175ec73f9b1b1f0e54251f0fd9' GODEBUG='' GCCGO='gccgo' GOAMD64='v1' AR='ar' CC='clang' CXX='clang++' CGO_ENABLED='1' GOMOD='/dev/null' GOWORK='' CGO_CFLAGS='-O2 -g' CGO_CPPFLAGS='' CGO_CXXFLAGS='-O2 -g' CGO_FFLAGS='-O2 -g' CGO_LDFLAGS='-O2 -g' PKG_CONFIG='pkg-config' GOGCCFLAGS='-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_env1182294469/tmp/go-build1921463536=/tmp/go-build -gno-record-gcc-switches' > stdout 'GOWORK=("")?' matched: GOWORK='' > cd src > go env GOWORK [stdout] /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_env1182294469/gopath/src/go.work > stdout 'go.work' matched: /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work_env1182294469/gopath/src/go.work > env GOWORK='off' > go env GOWORK [stdout] off > stdout 'off' matched: off > ! go env -w GOWORK=off [stderr] go: GOWORK cannot be modified [exit status 1] > stderr '^go: GOWORK cannot be modified$' matched: go: GOWORK cannot be modified script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_download_json (0.08s) script_test.go:136: 2024-03-19T19:05:53Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_download_json1963169122 script_test.go:160: > env GO111MODULE=on > env GOSUMDB=$sumdb' '$proxy/sumdb-wrong # download -json with version should print JSON on sumdb failure (0.055s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/pattern_syntax_error (0.18s) script_test.go:136: 2024-03-19T19:05:53Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/pattern_syntax_error3893040557 script_test.go:160: > env GO111MODULE=off # patterns match directories with syntax errors (0.170s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/cover_import_main_loop (0.57s) script_test.go:136: 2024-03-19T19:05:53Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/cover_import_main_loop1088313508 script_test.go:160: > [compiler:gccgo] skip # gccgo has no cover tool [condition not met] > ! go test -n importmain/test [stdout] FAIL importmain/test [setup failed] FAIL [stderr] # importmain/test test/test_test.go:4:8: import "importmain/ismain" is a program, not an importable package [exit status 1] > stderr 'not an importable package' # check that import main was detected matched: test/test_test.go:4:8: import "importmain/ismain" is a program, not an importable package > ! go test -n -cover importmain/test [stdout] FAIL importmain/test [setup failed] FAIL [stderr] # importmain/test test/test_test.go:4:8: import "importmain/ismain" is a program, not an importable package [exit status 1] > stderr 'not an importable package' # check that import main was detected matched: test/test_test.go:4:8: import "importmain/ismain" is a program, not an importable package script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/run_hello (0.84s) script_test.go:136: 2024-03-19T19:05:53Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/run_hello3657068999 script_test.go:160: > env GO111MODULE=off # hello world (0.835s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/noncanonical_import (0.07s) script_test.go:136: 2024-03-19T19:05:54Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/noncanonical_import2336985439 script_test.go:160: > env GO111MODULE=off > ! go build canonical/d [stderr] canonical/b/b.go:3:8: non-canonical import path "canonical/a/": should be "canonical/a" [exit status 1] > stderr '^canonical[/\\]b[/\\]b.go:3:8: non-canonical import path "canonical/a/": should be "canonical/a"$' matched: canonical/b/b.go:3:8: non-canonical import path "canonical/a/": should be "canonical/a" script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_match_no_tests_build_failure (0.37s) script_test.go:136: 2024-03-19T19:05:54Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_match_no_tests_build_failure3163975717 script_test.go:160: # Test that when there's a build failure and a -run flag that doesn't match, # that the error for not matching tests does not override the error for # the build failure. (0.364s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/old_tidy_toolchain (0.67s) script_test.go:136: 2024-03-19T19:05:53Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/old_tidy_toolchain2936696069 script_test.go:160: # Commands in an old module with no go line and no toolchain line, # or with only a go line, should succeed. # (They should not fail due to the go.mod not being tidy.) # No go line, no toolchain line. (0.063s) # Old go line, no toolchain line. (0.363s) # New go line, no toolchain line, using same toolchain. (0.146s) # New go line, no toolchain line, using newer Go version. # (Until we need to update the go line, no toolchain addition.) (0.092s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/run_dirs (0.92s) script_test.go:136: 2024-03-19T19:05:53Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/run_dirs2009312147 script_test.go:160: > cd rundir > ! go run x.go sub/sub.go [stderr] named files must all be in one directory; have . and sub [exit status 1] > stderr 'named files must all be in one directory; have . and sub' matched: named files must all be in one directory; have . and sub > ! go run sub/sub.go x.go [stderr] named files must all be in one directory; have sub and . [exit status 1] > stderr 'named files must all be in one directory; have sub and .' matched: named files must all be in one directory; have sub and . > cd ../ > go run rundir/foo.go ./rundir/bar.go [stderr] hello world > stderr 'hello world' matched: hello world script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/run_hello_pkg (1.89s) script_test.go:136: 2024-03-19T19:05:53Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/run_hello_pkg284363791 script_test.go:160: > go run m/hello [stderr] hello, world > stderr 'hello, world' matched: hello, world > cd hello > go run . [stderr] hello, world > stderr 'hello, world' matched: hello, world script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_download_partial (1.75s) script_test.go:136: 2024-03-19T19:05:53Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_download_partial4123616551 script_test.go:160: # Download modules and populate go.sum. (0.377s) # 'go mod verify' should fail if we delete a file. (0.180s) # Create a .partial file to simulate an failure extracting the zip file. (0.001s) # 'go mod verify' should not fail, since the module hasn't been completely # ingested into the cache. (0.063s) # 'go list' should not load packages from the directory. # NOTE: the message "directory $dir outside main module or its selected dependencies" # is reported for directories not in the main module, active modules in the # module cache, or local replacements. In this case, the directory is in the # right place, but it's incomplete, so 'go list' acts as if it's not an # active module. (0.121s) # 'go list -m' should not print the directory. (0.144s) # 'go mod download' should re-extract the module and remove the .partial file. (0.054s) # 'go list' should succeed. (0.358s) # 'go list -m' should print the directory. (0.129s) # go mod verify should fail if we delete a file. (0.210s) # 'go mod download' should not leave behind a directory or a .partial file # if there is an error extracting the zip file. (0.084s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_match_no_tests (1.57s) script_test.go:136: 2024-03-19T19:05:54Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_match_no_tests1096085157 script_test.go:160: # Matches no tests (1.567s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_match_no_tests_with_subtests (1.71s) script_test.go:136: 2024-03-19T19:05:54Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_match_no_tests_with_subtests1068989484 script_test.go:160: # Matches no tests with subtests (1.704s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/prevent_sys_unix_import (2.06s) script_test.go:136: 2024-03-19T19:05:53Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/prevent_sys_unix_import4219795383 script_test.go:160: # Policy decision: we shouldn't vendor golang.org/x/sys/unix in std # See https://golang.org/issue/32102 (2.058s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_domain_root (0.14s) script_test.go:136: 2024-03-19T19:05:55Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_domain_root1759619902 script_test.go:160: # Module paths that are domain roots should resolve. # (example.com not example.com/something) (0.120s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_match_no_subtests_parallel (1.62s) script_test.go:136: 2024-03-19T19:05:54Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_match_no_subtests_parallel3199613016 script_test.go:160: # Matches no subtests, parallel (1.615s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_match_no_subtests_failure (1.67s) script_test.go:136: 2024-03-19T19:05:54Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_match_no_subtests_failure3963114414 script_test.go:160: # Matches no subtests, but parent test still fails (1.659s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_download_exec_toolchain (1.57s) script_test.go:136: 2024-03-19T19:05:55Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_download_exec_toolchain3727460045 script_test.go:160: > env TESTGO_VERSION=go1.21 > env TESTGO_VERSION_SWITCH=switch # First, test 'go mod download' outside of a module. # # There is no go.mod file into which we can record the selected toolchain, # so unfortunately these version switches won't be as reproducible as other # go commands, but that's still preferable to failing entirely or downloading # a module zip that we don't understand. # GOTOOLCHAIN=auto should run the newer toolchain (0.313s) # GOTOOLCHAIN=min+auto should run the newer toolchain (0.221s) # GOTOOLCHAIN=go1.21 should NOT run the newer toolchain (0.184s) # JSON output should be emitted exactly once, # and non-JSON output should go to stderr instead of stdout. (0.207s) # GOTOOLCHAIN=go1.21 should write the errors in the JSON Error fields, not to stderr. (0.109s) # Within a module, 'go mod download' of explicit versions should upgrade if # needed to perform the download, but should not change the main module's # toolchain version (because the downloaded modules are still not required by # the main module). (0.188s) # However, 'go mod download' without arguments should fix up the # 'go' and 'toolchain' lines to be consistent with the existing # requirements in the module graph. (0.057s) # If an upgrade is needed, GOTOOLCHAIN=go1.21 should cause # the command to fail without changing go.mod. (0.055s) # If an upgrade is needed, GOTOOLCHAIN=auto should perform # the upgrade and record the resulting toolchain version. (0.218s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_doc_path (0.79s) script_test.go:136: 2024-03-19T19:05:56Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_doc_path1518888586 script_test.go:160: # cmd/doc should use GOROOT to locate the 'go' command, # not use whatever is in $PATH. # Remove 'go' from $PATH. (It can still be located via $GOROOT/bin/go, and the # test script's built-in 'go' command still knows where to find it.) (0.781s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_dot (1.74s) script_test.go:136: 2024-03-19T19:05:55Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_dot773144812 script_test.go:160: > env GOWORK=off > env GO111MODULE=on # golang.org/issue/32917 and golang.org/issue/28459: 'go build' and 'go test' # in an empty directory should refer to the path '.' and should not attempt # to resolve an external module. (0.208s) # golang.org/issue/30590: if a package is found in the filesystem # but is not in the main module, the error message should not say # "cannot find module providing package", and we shouldn't try # to find a module providing the package. (0.060s) # golang.org/issue/27122: 'go build' of a nonexistent directory should produce # a helpful "no Go files" error message, not a generic "unknown import path". (0.057s) # golang.org/issue/29280: 'go list -e' for a nonexistent directory should # report a nonexistent package with an error. (0.040s) # golang.org/issue/28155: 'go list ./testdata' should not synthesize underscores. (0.160s) # golang.org/issue/32921: vendor directories should only be accepted as directories # if the directory would actually be used to load the package. (0.448s) # Packages within GOROOT should resolve as in any other module, # except that -mod=vendor is implied by default. (0.514s) # golang.org/issue/30756: packages in other GOROOTs should not get the special # prefixless treatment of GOROOT itself. (0.229s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/vet_deps (1.96s) script_test.go:136: 2024-03-19T19:05:56Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/vet_deps2153815572 script_test.go:160: > env GO111MODULE=off # Issue 30296. Verify that "go vet" uses only immediate dependencies. # First run fills the cache. (1.943s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_versions (0.14s) script_test.go:136: 2024-03-19T19:05:58Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_versions2061773720 script_test.go:160: # Test rejection of pkg@version in GOPATH mode. (0.137s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_cache_rw (1.34s) script_test.go:136: 2024-03-19T19:05:57Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_cache_rw2137347182 script_test.go:160: # Regression test for golang.org/issue/31481. (0.000s) # golang.org/issue/31481: an explicit flag should make directories in the module # cache writable in order to work around the historical inability of 'rm -rf' to # forcibly remove files in unwritable directories. (0.386s) # After adding an extraneous file, 'go mod verify' should fail. (0.097s) # However, files within those directories should still be read-only to avoid # accidental mutations. (0.000s) # If all 'go' commands ran with the flag, the system's 'rm' binary # should be able to remove the module cache if the '-rf' flags are set. (0.097s) # The directories in the module cache should by default be unwritable, # so that tests and tools will not accidentally add extraneous files to them. # Windows does not respect FILE_ATTRIBUTE_READONLY on directories, according # to MSDN, so there we disable testing whether the directory itself is # unwritable. (0.405s) # Repeat part of the test with 'go mod download' instead of 'go get' to verify # -modcacherw is supported on 'go mod' subcommands. (0.334s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_verify_work (0.21s) script_test.go:136: 2024-03-19T19:05:58Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_verify_work1279008403 script_test.go:160: # Regression test for Issue #62663: we would filter out the toolchain and # main modules from the build list incorrectly, leading to the workspace # modules being checked for correct sums. Specifically this would happen when # the module name sorted after the virtual 'go' version module name because # it could not get chopped off when we removed the MainModules.Len() modules # at the beginning of the build list and we would remove the go module instead. (0.097s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/modfile_flag (4.90s) script_test.go:136: 2024-03-19T19:05:54Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/modfile_flag3286504787 script_test.go:160: # Tests the behavior of the -modfile flag in commands that support it. # The go.mod file exists but should not be read or written. # Same with go.sum. (0.002s) # go mod init should create a new file, even though go.mod already exists. (0.096s) # 'go env GOMOD' should print the path to the real file. # 'go env' does not recognize the '-modfile' flag. (0.049s) # 'go list -m' should print the effective go.mod file as GoMod though. (0.065s) # go mod edit should operate on the alternate file (0.044s) # 'go list -m' should add sums to the alternate go.sum. (0.084s) # other 'go mod' commands should work. 'go mod vendor' is tested later. (1.013s) # 'go list' and other commands with build flags should work. # They should update the alternate go.mod when a dependency is missing. (2.124s) # 'go mod vendor' should work. (0.287s) # Automatic vendoring should be broken by editing an explicit requirement # in the alternate go.mod file. (0.570s) # 'go generate' should use the alternate file when resolving packages. # Recursive go commands started with 'go generate' should not get an explicitly # passed -modfile, but they should see arguments from GOFLAGS. (0.375s) # The original files should not have been modified. (0.001s) # If the alternate mod file does not have a ".mod" suffix, an error # should be reported. (0.100s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/vet_asm (2.90s) script_test.go:136: 2024-03-19T19:05:56Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/vet_asm1655155250 script_test.go:160: > env GO111MODULE=off # Issue 27665. Verify that "go vet" analyzes non-Go files. (0.941s) # -c flag shows context (0.929s) # -json causes success, even with diagnostics and errors. (1.014s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_vendor_unused_only (0.07s) script_test.go:136: 2024-03-19T19:05:59Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_vendor_unused_only191360424 script_test.go:160: # Ensure that we generate a vendor/modules.txt file even when the only # requirements in go.mod are unused. Regression test for # golang.org/issue/36580 (0.056s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/vet_internal (4.03s) script_test.go:136: 2024-03-19T19:05:55Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/vet_internal1487496068 script_test.go:160: > env GO111MODULE=off # Issue 36173. Verify that "go vet" prints line numbers on load errors. (4.011s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_match_no_subtests (1.75s) script_test.go:136: 2024-03-19T19:05:58Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_match_no_subtests51695467 script_test.go:160: # The subtests don't match (1.743s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_vendor_unused (0.07s) script_test.go:136: 2024-03-19T19:06:00Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_vendor_unused2618111221 script_test.go:160: # Auxiliary test for inclusion of otherwise-unused replacements in # vendor/modules.txt for golang.org/issue/33848. # We need metadata about replacements in order to verify that modules.txt # remains in sync with the main module's go.mod file. (0.058s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_match_no_benchmarks (1.84s) script_test.go:136: 2024-03-19T19:05:59Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_match_no_benchmarks2772833650 script_test.go:160: # Matches no benchmarks (1.818s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_cache_dir (0.26s) script_test.go:136: 2024-03-19T19:06:00Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_cache_dir799347588 script_test.go:160: > env GO111MODULE=on # Go should reject relative paths in GOMODCACHE environment. (0.229s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_match_benchmark_labels (1.91s) script_test.go:136: 2024-03-19T19:05:59Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_match_benchmark_labels2713771030 script_test.go:160: # Benchmark labels, file outside gopath # TODO(matloob): This test was called TestBenchmarkLabelsOutsideGOPATH # why "OutsideGOPATH"? Does the go command need to be run outside GOPATH? # Do the files need to exist outside GOPATH? (1.906s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/cmd_import_error (0.10s) script_test.go:136: 2024-03-19T19:06:01Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/cmd_import_error2292749891 script_test.go:160: > env GO111MODULE=on # Regression test for golang.org/issue/31031: # Importing or loading a non-existent package in cmd/ should print # a clear error in module mode. (0.093s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_json_timeout (1.65s) script_test.go:136: 2024-03-19T19:05:59Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_json_timeout3745355828 script_test.go:160: > ! go test -json -timeout=1ms [stdout] {"Time":"2024-03-19T12:06:01.174555598-07:00","Action":"start","Package":"p"} {"Time":"2024-03-19T12:06:01.236993019-07:00","Action":"run","Package":"p","Test":"Test"} {"Time":"2024-03-19T12:06:01.237164392-07:00","Action":"output","Package":"p","Test":"Test","Output":"=== RUN Test\n"} {"Time":"2024-03-19T12:06:01.296296987-07:00","Action":"output","Package":"p","Test":"Test","Output":"panic: test timed out after 1ms\n"} {"Time":"2024-03-19T12:06:01.296416255-07:00","Action":"output","Package":"p","Test":"Test","Output":"running tests:\n"} {"Time":"2024-03-19T12:06:01.296423181-07:00","Action":"output","Package":"p","Test":"Test","Output":"\tTest (0s)\n"} {"Time":"2024-03-19T12:06:01.296427051-07:00","Action":"output","Package":"p","Test":"Test","Output":"\n"} {"Time":"2024-03-19T12:06:01.296455644-07:00","Action":"output","Package":"p","Test":"Test","Output":"goroutine 7 gp=0xc0000096c0 m=0 mp=0x6388e0 [running]:\n"} {"Time":"2024-03-19T12:06:01.296503495-07:00","Action":"output","Package":"p","Test":"Test","Output":"panic({0x50e680?, 0xc0000283a0?})\n"} {"Time":"2024-03-19T12:06:01.296509147-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/panic.go:778 +0x16f fp=0xc00007df10 sp=0xc00007de60 pc=0x436f8f\n"} {"Time":"2024-03-19T12:06:01.296529729-07:00","Action":"output","Package":"p","Test":"Test","Output":"testing.(*M).startAlarm.func1()\n"} {"Time":"2024-03-19T12:06:01.296535014-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/testing/testing.go:2366 +0x385 fp=0xc00007dfe0 sp=0xc00007df10 pc=0x4c82a5\n"} {"Time":"2024-03-19T12:06:01.296539327-07:00","Action":"output","Package":"p","Test":"Test","Output":"runtime.goexit({})\n"} {"Time":"2024-03-19T12:06:01.296542948-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc00007dfe8 sp=0xc00007dfe0 pc=0x46db41\n"} {"Time":"2024-03-19T12:06:01.296576301-07:00","Action":"output","Package":"p","Test":"Test","Output":"created by time.goFunc\n"} {"Time":"2024-03-19T12:06:01.296587838-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/time/sleep.go:179 +0x2d\n"} {"Time":"2024-03-19T12:06:01.296592144-07:00","Action":"output","Package":"p","Test":"Test","Output":"\n"} {"Time":"2024-03-19T12:06:01.296595587-07:00","Action":"output","Package":"p","Test":"Test","Output":"goroutine 1 gp=0xc0000081c0 m=nil [chan receive]:\n"} {"Time":"2024-03-19T12:06:01.296599346-07:00","Action":"output","Package":"p","Test":"Test","Output":"runtime.gopark(0xc000102a90?, 0xc000102b18?, 0x90?, 0x2a?, 0x519b20?)\n"} {"Time":"2024-03-19T12:06:01.296632527-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/proc.go:402 +0xce fp=0xc00007c9c8 sp=0xc00007c9a8 pc=0x43a88e\n"} {"Time":"2024-03-19T12:06:01.296642112-07:00","Action":"output","Package":"p","Test":"Test","Output":"runtime.chanrecv(0xc0000241c0, 0xc00007caaf, 0x1)\n"} {"Time":"2024-03-19T12:06:01.296647529-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/chan.go:583 +0x3bf fp=0xc00007ca40 sp=0xc00007c9c8 pc=0x406cff\n"} {"Time":"2024-03-19T12:06:01.296651512-07:00","Action":"output","Package":"p","Test":"Test","Output":"runtime.chanrecv1(0x637c60?, 0x50e680?)\n"} {"Time":"2024-03-19T12:06:01.296655453-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/chan.go:442 +0x12 fp=0xc00007ca68 sp=0xc00007ca40 pc=0x406932\n"} {"Time":"2024-03-19T12:06:01.296659229-07:00","Action":"output","Package":"p","Test":"Test","Output":"testing.(*T).Run(0xc000108680, {0x536a67?, 0xe18c6180007cb50?}, 0x5426b8)\n"} {"Time":"2024-03-19T12:06:01.296670809-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/testing/testing.go:1750 +0x3ab fp=0xc00007cb28 sp=0xc00007ca68 pc=0x4c4f0b\n"} {"Time":"2024-03-19T12:06:01.296674696-07:00","Action":"output","Package":"p","Test":"Test","Output":"testing.runTests.func1(0xc000108680)\n"} {"Time":"2024-03-19T12:06:01.296680963-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/testing/testing.go:2161 +0x37 fp=0xc00007cb68 sp=0xc00007cb28 pc=0x4c6ff7\n"} {"Time":"2024-03-19T12:06:01.2966859-07:00","Action":"output","Package":"p","Test":"Test","Output":"testing.tRunner(0xc000108680, 0xc00007cc70)\n"} {"Time":"2024-03-19T12:06:01.296689475-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/testing/testing.go:1689 +0xfb fp=0xc00007cbb8 sp=0xc00007cb68 pc=0x4c403b\n"} {"Time":"2024-03-19T12:06:01.296714447-07:00","Action":"output","Package":"p","Test":"Test","Output":"testing.runTests(0xc0000120f0, {0x62ece0, 0x1, 0x1}, {0x1?, 0x4aec0e?, 0x637e40?})\n"} {"Time":"2024-03-19T12:06:01.296721092-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/testing/testing.go:2159 +0x445 fp=0xc00007cca0 sp=0xc00007cbb8 pc=0x4c6ee5\n"} {"Time":"2024-03-19T12:06:01.296755455-07:00","Action":"output","Package":"p","Test":"Test","Output":"testing.(*M).Run(0xc0001040a0)\n"} {"Time":"2024-03-19T12:06:01.296759438-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/testing/testing.go:2027 +0x68b fp=0xc00007ced0 sp=0xc00007cca0 pc=0x4c58eb\n"} {"Time":"2024-03-19T12:06:01.296763079-07:00","Action":"output","Package":"p","Test":"Test","Output":"main.main()\n"} {"Time":"2024-03-19T12:06:01.296771291-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t_testmain.go:47 +0x16c fp=0xc00007cf50 sp=0xc00007ced0 pc=0x5003ec\n"} {"Time":"2024-03-19T12:06:01.296775084-07:00","Action":"output","Package":"p","Test":"Test","Output":"runtime.main()\n"} {"Time":"2024-03-19T12:06:01.296778575-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/proc.go:271 +0x28b fp=0xc00007cfe0 sp=0xc00007cf50 pc=0x43a44b\n"} {"Time":"2024-03-19T12:06:01.296790103-07:00","Action":"output","Package":"p","Test":"Test","Output":"runtime.goexit({})\n"} {"Time":"2024-03-19T12:06:01.29679379-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc00007cfe8 sp=0xc00007cfe0 pc=0x46db41\n"} {"Time":"2024-03-19T12:06:01.298431948-07:00","Action":"output","Package":"p","Test":"Test","Output":"\n"} {"Time":"2024-03-19T12:06:01.298444618-07:00","Action":"output","Package":"p","Test":"Test","Output":"goroutine 2 gp=0xc000008700 m=nil [force gc (idle)]:\n"} {"Time":"2024-03-19T12:06:01.298449499-07:00","Action":"output","Package":"p","Test":"Test","Output":"runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)\n"} {"Time":"2024-03-19T12:06:01.298456012-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/proc.go:402 +0xce fp=0xc000052fa8 sp=0xc000052f88 pc=0x43a88e\n"} {"Time":"2024-03-19T12:06:01.298468969-07:00","Action":"output","Package":"p","Test":"Test","Output":"runtime.goparkunlock(...)\n"} {"Time":"2024-03-19T12:06:01.298495555-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/proc.go:408 pc=0x43a705\n"} {"Time":"2024-03-19T12:06:01.298509223-07:00","Action":"output","Package":"p","Test":"Test","Output":"runtime.forcegchelper()\n"} {"Time":"2024-03-19T12:06:01.298517438-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/proc.go:326 +0x83 fp=0xc000052fe0 sp=0xc000052fa8 pc=0x43a6e3\n"} {"Time":"2024-03-19T12:06:01.298523211-07:00","Action":"output","Package":"p","Test":"Test","Output":"runtime.goexit({})\n"} {"Time":"2024-03-19T12:06:01.298553026-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc000052fe8 sp=0xc000052fe0 pc=0x46db41\n"} {"Time":"2024-03-19T12:06:01.298562999-07:00","Action":"output","Package":"p","Test":"Test","Output":"created by runtime.init.6 in goroutine 1\n"} {"Time":"2024-03-19T12:06:01.298575224-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/proc.go:314 +0x1a\n"} {"Time":"2024-03-19T12:06:01.298592684-07:00","Action":"output","Package":"p","Test":"Test","Output":"\n"} {"Time":"2024-03-19T12:06:01.2986109-07:00","Action":"output","Package":"p","Test":"Test","Output":"goroutine 3 gp=0xc000008c40 m=nil [GC sweep wait]:\n"} {"Time":"2024-03-19T12:06:01.298615345-07:00","Action":"output","Package":"p","Test":"Test","Output":"runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)\n"} {"Time":"2024-03-19T12:06:01.298622636-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/proc.go:402 +0xce fp=0xc000053780 sp=0xc000053760 pc=0x43a88e\n"} {"Time":"2024-03-19T12:06:01.298785936-07:00","Action":"output","Package":"p","Test":"Test","Output":"runtime.goparkunlock(...)\n"} {"Time":"2024-03-19T12:06:01.298796372-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/proc.go:408 pc=0x4256d4\n"} {"Time":"2024-03-19T12:06:01.29880207-07:00","Action":"output","Package":"p","Test":"Test","Output":"runtime.bgsweep(0xc0000240e0)\n"} {"Time":"2024-03-19T12:06:01.29880732-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/mgcsweep.go:278 +0x72 fp=0xc0000537c8 sp=0xc000053780 pc=0x4256b2\n"} {"Time":"2024-03-19T12:06:01.29884763-07:00","Action":"output","Package":"p","Test":"Test","Output":"runtime.gcenable.gowrap1()\n"} {"Time":"2024-03-19T12:06:01.298906085-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/mgc.go:203 +0x25 fp=0xc0000537e0 sp=0xc0000537c8 pc=0x419fc5\n"} {"Time":"2024-03-19T12:06:01.298914031-07:00","Action":"output","Package":"p","Test":"Test","Output":"runtime.goexit({})\n"} {"Time":"2024-03-19T12:06:01.298918077-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc0000537e8 sp=0xc0000537e0 pc=0x46db41\n"} {"Time":"2024-03-19T12:06:01.298941327-07:00","Action":"output","Package":"p","Test":"Test","Output":"created by runtime.gcenable in goroutine 1\n"} {"Time":"2024-03-19T12:06:01.298947929-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/mgc.go:203 +0x66\n"} {"Time":"2024-03-19T12:06:01.298951644-07:00","Action":"output","Package":"p","Test":"Test","Output":"\n"} {"Time":"2024-03-19T12:06:01.298955121-07:00","Action":"output","Package":"p","Test":"Test","Output":"goroutine 4 gp=0xc000008e00 m=nil [GC scavenge wait]:\n"} {"Time":"2024-03-19T12:06:01.298958725-07:00","Action":"output","Package":"p","Test":"Test","Output":"runtime.gopark(0xc0000240e0?, 0x566d98?, 0x1?, 0x0?, 0xc000008e00?)\n"} {"Time":"2024-03-19T12:06:01.298965114-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/proc.go:402 +0xce fp=0xc000053f78 sp=0xc000053f58 pc=0x43a88e\n"} {"Time":"2024-03-19T12:06:01.299081159-07:00","Action":"output","Package":"p","Test":"Test","Output":"runtime.goparkunlock(...)\n"} {"Time":"2024-03-19T12:06:01.29908837-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/proc.go:408 pc=0x4230e9\n"} {"Time":"2024-03-19T12:06:01.299092325-07:00","Action":"output","Package":"p","Test":"Test","Output":"runtime.(*scavengerState).park(0x637f60)\n"} {"Time":"2024-03-19T12:06:01.299152195-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/mgcscavenge.go:425 +0x2e fp=0xc000053fa8 sp=0xc000053f78 pc=0x4230ce\n"} {"Time":"2024-03-19T12:06:01.299158589-07:00","Action":"output","Package":"p","Test":"Test","Output":"runtime.bgscavenge(0xc0000240e0)\n"} {"Time":"2024-03-19T12:06:01.29916324-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/mgcscavenge.go:653 +0x3c fp=0xc000053fc8 sp=0xc000053fa8 pc=0x42365c\n"} {"Time":"2024-03-19T12:06:01.29916768-07:00","Action":"output","Package":"p","Test":"Test","Output":"runtime.gcenable.gowrap2()\n"} {"Time":"2024-03-19T12:06:01.299172005-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/mgc.go:204 +0x25 fp=0xc000053fe0 sp=0xc000053fc8 pc=0x419f65\n"} {"Time":"2024-03-19T12:06:01.299186216-07:00","Action":"output","Package":"p","Test":"Test","Output":"runtime.goexit({})\n"} {"Time":"2024-03-19T12:06:01.299211112-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc000053fe8 sp=0xc000053fe0 pc=0x46db41\n"} {"Time":"2024-03-19T12:06:01.299221849-07:00","Action":"output","Package":"p","Test":"Test","Output":"created by runtime.gcenable in goroutine 1\n"} {"Time":"2024-03-19T12:06:01.299225762-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/mgc.go:204 +0xa5\n"} {"Time":"2024-03-19T12:06:01.299229664-07:00","Action":"output","Package":"p","Test":"Test","Output":"\n"} {"Time":"2024-03-19T12:06:01.299233071-07:00","Action":"output","Package":"p","Test":"Test","Output":"goroutine 5 gp=0xc000009340 m=nil [finalizer wait]:\n"} {"Time":"2024-03-19T12:06:01.299242422-07:00","Action":"output","Package":"p","Test":"Test","Output":"runtime.gopark(0x2e7fe4888?, 0xc000028030?, 0x0?, 0x0?, 0x0?)\n"} {"Time":"2024-03-19T12:06:01.299247302-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/proc.go:402 +0xce fp=0xc000052620 sp=0xc000052600 pc=0x43a88e\n"} {"Time":"2024-03-19T12:06:01.29925426-07:00","Action":"output","Package":"p","Test":"Test","Output":"runtime.runfinq()\n"} {"Time":"2024-03-19T12:06:01.299320266-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/mfinal.go:194 +0x107 fp=0xc0000527e0 sp=0xc000052620 pc=0x419007\n"} {"Time":"2024-03-19T12:06:01.299331864-07:00","Action":"output","Package":"p","Test":"Test","Output":"runtime.goexit({})\n"} {"Time":"2024-03-19T12:06:01.29933654-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc0000527e8 sp=0xc0000527e0 pc=0x46db41\n"} {"Time":"2024-03-19T12:06:01.299342543-07:00","Action":"output","Package":"p","Test":"Test","Output":"created by runtime.createfing in goroutine 1\n"} {"Time":"2024-03-19T12:06:01.299346155-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/mfinal.go:164 +0x3d\n"} {"Time":"2024-03-19T12:06:01.299349795-07:00","Action":"output","Package":"p","Test":"Test","Output":"\n"} {"Time":"2024-03-19T12:06:01.299353767-07:00","Action":"output","Package":"p","Test":"Test","Output":"goroutine 6 gp=0xc000009500 m=nil [sleep]:\n"} {"Time":"2024-03-19T12:06:01.299365821-07:00","Action":"output","Package":"p","Test":"Test","Output":"runtime.gopark(0x611a80?, 0x3?, 0x0?, 0x47?, 0xc000054750?)\n"} {"Time":"2024-03-19T12:06:01.299390756-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/proc.go:402 +0xce fp=0xc000054718 sp=0xc0000546f8 pc=0x43a88e\n"} {"Time":"2024-03-19T12:06:01.299441218-07:00","Action":"output","Package":"p","Test":"Test","Output":"time.Sleep(0x34630b8a000)\n"} {"Time":"2024-03-19T12:06:01.29944732-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/time.go:214 +0x105 fp=0xc000054758 sp=0xc000054718 pc=0x46aca5\n"} {"Time":"2024-03-19T12:06:01.299451683-07:00","Action":"output","Package":"p","Test":"Test","Output":"p.Test(0xc000108820?)\n"} {"Time":"2024-03-19T12:06:01.29945957-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_json_timeout3745355828/gopath/src/x_test.go:9 +0x1d fp=0xc000054770 sp=0xc000054758 pc=0x5001fd\n"} {"Time":"2024-03-19T12:06:01.299495697-07:00","Action":"output","Package":"p","Test":"Test","Output":"testing.tRunner(0xc000108820, 0x5426b8)\n"} {"Time":"2024-03-19T12:06:01.299502261-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/testing/testing.go:1689 +0xfb fp=0xc0000547c0 sp=0xc000054770 pc=0x4c403b\n"} {"Time":"2024-03-19T12:06:01.299524906-07:00","Action":"output","Package":"p","Test":"Test","Output":"testing.(*T).Run.gowrap1()\n"} {"Time":"2024-03-19T12:06:01.299529511-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/testing/testing.go:1742 +0x25 fp=0xc0000547e0 sp=0xc0000547c0 pc=0x4c5065\n"} {"Time":"2024-03-19T12:06:01.299535856-07:00","Action":"output","Package":"p","Test":"Test","Output":"runtime.goexit({})\n"} {"Time":"2024-03-19T12:06:01.299540146-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/runtime/asm_amd64.s:1695 +0x1 fp=0xc0000547e8 sp=0xc0000547e0 pc=0x46db41\n"} {"Time":"2024-03-19T12:06:01.299566102-07:00","Action":"output","Package":"p","Test":"Test","Output":"created by testing.(*T).Run in goroutine 1\n"} {"Time":"2024-03-19T12:06:01.299570507-07:00","Action":"output","Package":"p","Test":"Test","Output":"\t/tmp/workdir/go/src/testing/testing.go:1742 +0x390\n"} {"Time":"2024-03-19T12:06:01.304686647-07:00","Action":"output","Package":"p","Test":"Test","Output":"exit status 2\n"} {"Time":"2024-03-19T12:06:01.304720279-07:00","Action":"output","Package":"p","Output":"FAIL\tp\t0.128s\n"} {"Time":"2024-03-19T12:06:01.304749143-07:00","Action":"fail","Package":"p","Elapsed":0.13} [exit status 1] > stdout '"Action":"output","Package":"p","Output":"FAIL\\tp\\t' matched: {"Time":"2024-03-19T12:06:01.304720279-07:00","Action":"output","Package":"p","Output":"FAIL\tp\t0.128s\n"} > stdout '"Action":"fail","Package":"p","Elapsed":' matched: {"Time":"2024-03-19T12:06:01.304749143-07:00","Action":"fail","Package":"p","Elapsed":0.13} script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_vendor_replace (0.43s) script_test.go:136: 2024-03-19T19:06:01Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_vendor_replace390168694 script_test.go:160: > env GO111MODULE=on # Replacement should not use a vendor directory as the target. (0.078s) # Before vendoring, we expect to see the original directory. (0.048s) # Since all dependencies are replaced, 'go mod vendor' should not # have to download anything from the network. (0.064s) # After vendoring, we expect to see the replacement in the vendor directory, # without attempting to look up the non-replaced version. (0.035s) # 'go list' should provide the original replacement directory as the module's # replacement path. (0.033s) # The same module can't be used as two different paths. (0.155s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_vendor_redundant_requirement (0.04s) script_test.go:136: 2024-03-19T19:06:01Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_vendor_redundant_requirement551581740 script_test.go:160: # 'go list -mod=vendor' should succeed even when go.mod contains redundant # requirements. Verifies #47565. (0.037s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_json_issue35169 (0.72s) script_test.go:136: 2024-03-19T19:06:01Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_json_issue351691377591332 script_test.go:160: > ! go test -json . [stdout] {"Time":"2024-03-19T12:06:01.91340702-07:00","Action":"start","Package":"example"} {"Time":"2024-03-19T12:06:01.913526716-07:00","Action":"output","Package":"example","Output":"FAIL\texample [build failed]\n"} {"Time":"2024-03-19T12:06:01.913536071-07:00","Action":"fail","Package":"example","Elapsed":0} [stderr] # example [example.test] ./example.go:3:1: syntax error: non-declaration statement outside function body [exit status 1] > ! stdout '^[^{]' > ! stdout '[^}]\n$' > ! stdout '\{.*"Action":"pass".*\}' > stdout '\{.*"Action":"output","Package":"example","Output":"FAIL\\texample \[build failed\]\\n"\}' matched: {"Time":"2024-03-19T12:06:01.913526716-07:00","Action":"output","Package":"example","Output":"FAIL\texample [build failed]\n"} > stdout '\{.*"Action":"fail","Package":"example",.*\}' matched: {"Time":"2024-03-19T12:06:01.913536071-07:00","Action":"fail","Package":"example","Elapsed":0} script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_vendor_nodeps (0.15s) script_test.go:136: 2024-03-19T19:06:01Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_vendor_nodeps643476032 script_test.go:160: > env GO111MODULE=on > go mod vendor [stderr] go: no dependencies to vendor > stderr '^go: no dependencies to vendor' matched: go: no dependencies to vendor script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_vendor_issue46867 (0.07s) script_test.go:136: 2024-03-19T19:06:02Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_vendor_issue468672699782816 script_test.go:160: # Regression test for golang.org/issue/46867: # 'go mod vendor' on Windows attempted to open and copy # files from directories outside of the module. (0.056s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_json_prints (1.89s) script_test.go:136: 2024-03-19T19:06:00Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_json_prints3645364549 script_test.go:160: > go test -json [stdout] {"Time":"2024-03-19T12:06:02.100835254-07:00","Action":"start","Package":"p"} {"Time":"2024-03-19T12:06:02.125743372-07:00","Action":"output","Package":"p","Output":"M1"} {"Time":"2024-03-19T12:06:02.125884053-07:00","Action":"run","Package":"p","Test":"Test"} {"Time":"2024-03-19T12:06:02.125896425-07:00","Action":"output","Package":"p","Test":"Test","Output":"=== RUN Test\n"} {"Time":"2024-03-19T12:06:02.126168254-07:00","Action":"output","Package":"p","Test":"Test","Output":"T1"} {"Time":"2024-03-19T12:06:02.126249659-07:00","Action":"run","Package":"p","Test":"Test/Sub1"} {"Time":"2024-03-19T12:06:02.126256035-07:00","Action":"output","Package":"p","Test":"Test/Sub1","Output":"=== RUN Test/Sub1\n"} {"Time":"2024-03-19T12:06:02.126437705-07:00","Action":"output","Package":"p","Test":"Test/Sub1","Output":"Sub1 x_test.go:19: SubLog1\n"} {"Time":"2024-03-19T12:06:02.126599293-07:00","Action":"output","Package":"p","Test":"Test/Sub1","Output":"Sub2"} {"Time":"2024-03-19T12:06:02.126633599-07:00","Action":"output","Package":"p","Test":"Test/Sub1","Output":"--- PASS: Test/Sub1 (0.00s)\n"} {"Time":"2024-03-19T12:06:02.126640681-07:00","Action":"pass","Package":"p","Test":"Test/Sub1","Elapsed":0} {"Time":"2024-03-19T12:06:02.126648385-07:00","Action":"run","Package":"p","Test":"Test/Sub3"} {"Time":"2024-03-19T12:06:02.126652023-07:00","Action":"output","Package":"p","Test":"Test/Sub3","Output":"=== RUN Test/Sub3\n"} {"Time":"2024-03-19T12:06:02.126655974-07:00","Action":"output","Package":"p","Test":"Test/Sub3","Output":"foo bar"} {"Time":"2024-03-19T12:06:02.12665966-07:00","Action":"output","Package":"p","Test":"Test/Sub3","Output":"baz\n"} {"Time":"2024-03-19T12:06:02.126665929-07:00","Action":"output","Package":"p","Test":"Test/Sub3","Output":"--- PASS: Test/Sub3 (0.00s)\n"} {"Time":"2024-03-19T12:06:02.126669547-07:00","Action":"pass","Package":"p","Test":"Test/Sub3","Elapsed":0} {"Time":"2024-03-19T12:06:02.126674111-07:00","Action":"output","Package":"p","Test":"Test","Output":"T2"} {"Time":"2024-03-19T12:06:02.126678928-07:00","Action":"output","Package":"p","Test":"Test","Output":"--- PASS: Test (0.00s)\n"} {"Time":"2024-03-19T12:06:02.12668378-07:00","Action":"pass","Package":"p","Test":"Test","Elapsed":0} {"Time":"2024-03-19T12:06:02.126712081-07:00","Action":"output","Package":"p","Output":"PASS\n"} {"Time":"2024-03-19T12:06:02.128953174-07:00","Action":"output","Package":"p","Output":"M2ok \tp\t0.027s\n"} {"Time":"2024-03-19T12:06:02.128991641-07:00","Action":"pass","Package":"p","Elapsed":0.028} > stdout '"Action":"output","Package":"p","Output":"M1"}' matched: {"Time":"2024-03-19T12:06:02.125743372-07:00","Action":"output","Package":"p","Output":"M1"} > stdout '"Action":"output","Package":"p","Test":"Test","Output":"=== RUN Test\\n"}' matched: {"Time":"2024-03-19T12:06:02.125896425-07:00","Action":"output","Package":"p","Test":"Test","Output":"=== RUN Test\n"} > stdout '"Action":"output","Package":"p","Test":"Test","Output":"T1"}' matched: {"Time":"2024-03-19T12:06:02.126168254-07:00","Action":"output","Package":"p","Test":"Test","Output":"T1"} > stdout '"Action":"output","Package":"p","Test":"Test/Sub1","Output":"=== RUN Test/Sub1\\n"}' matched: {"Time":"2024-03-19T12:06:02.126256035-07:00","Action":"output","Package":"p","Test":"Test/Sub1","Output":"=== RUN Test/Sub1\n"} > stdout '"Action":"output","Package":"p","Test":"Test/Sub1","Output":"Sub1 x_test.go:19: SubLog1\\n"}' matched: {"Time":"2024-03-19T12:06:02.126437705-07:00","Action":"output","Package":"p","Test":"Test/Sub1","Output":"Sub1 x_test.go:19: SubLog1\n"} > stdout '"Action":"output","Package":"p","Test":"Test/Sub1","Output":"Sub2"}' matched: {"Time":"2024-03-19T12:06:02.126599293-07:00","Action":"output","Package":"p","Test":"Test/Sub1","Output":"Sub2"} > stdout '"Action":"output","Package":"p","Test":"Test/Sub1","Output":"--- PASS: Test/Sub1 \([\d.]+s\)\\n"}' matched: {"Time":"2024-03-19T12:06:02.126633599-07:00","Action":"output","Package":"p","Test":"Test/Sub1","Output":"--- PASS: Test/Sub1 (0.00s)\n"} > stdout '"Action":"pass","Package":"p","Test":"Test/Sub1","Elapsed"' matched: {"Time":"2024-03-19T12:06:02.126640681-07:00","Action":"pass","Package":"p","Test":"Test/Sub1","Elapsed":0} > stdout '"Action":"output","Package":"p","Test":"Test/Sub3","Output":"foo bar"}' matched: {"Time":"2024-03-19T12:06:02.126655974-07:00","Action":"output","Package":"p","Test":"Test/Sub3","Output":"foo bar"} > stdout '"Action":"output","Package":"p","Test":"Test/Sub3","Output":"baz\\n"}' matched: {"Time":"2024-03-19T12:06:02.12665966-07:00","Action":"output","Package":"p","Test":"Test/Sub3","Output":"baz\n"} > stdout '"Action":"output","Package":"p","Test":"Test","Output":"T2"}' matched: {"Time":"2024-03-19T12:06:02.126674111-07:00","Action":"output","Package":"p","Test":"Test","Output":"T2"} > stdout '"Action":"output","Package":"p","Test":"Test","Output":"--- PASS: Test \([\d.]+s\)\\n"}' matched: {"Time":"2024-03-19T12:06:02.126678928-07:00","Action":"output","Package":"p","Test":"Test","Output":"--- PASS: Test (0.00s)\n"} > stdout '"Action":"pass","Package":"p","Test":"Test","Elapsed"' matched: {"Time":"2024-03-19T12:06:02.12668378-07:00","Action":"pass","Package":"p","Test":"Test","Elapsed":0} > stdout '"Action":"output","Package":"p","Output":"M2ok \\tp\\t[\d.]+s\\n"}' matched: {"Time":"2024-03-19T12:06:02.128953174-07:00","Action":"output","Package":"p","Output":"M2ok \tp\t0.027s\n"} > stdout '"Action":"pass","Package":"p","Elapsed"' matched: {"Time":"2024-03-19T12:06:02.128991641-07:00","Action":"pass","Package":"p","Elapsed":0.028} script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_vendor_gomod (0.56s) script_test.go:136: 2024-03-19T19:06:02Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_vendor_gomod3377166150 script_test.go:160: # https://golang.org/issue/42970: As of Go 1.17, go.mod and go.sum files should # be stripped from vendored dependencies. (0.551s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_import_error_stack (2.61s) script_test.go:136: 2024-03-19T19:06:01Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_import_error_stack3398830678 script_test.go:160: > env GO111MODULE=off > ! go test testdep/p1 [stdout] FAIL testdep/p1 [setup failed] FAIL [stderr] # testdep/p1 package testdep/p1 (test) imports testdep/p2 imports testdep/p3: build constraints exclude all Go files in /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_import_error_stack3398830678/gopath/src/testdep/p3 [exit status 1] > stderr 'package testdep/p1 \(test\)\n\timports testdep/p2\n\timports testdep/p3: build constraints exclude all Go files ' # check for full import stack matched: package testdep/p1 (test) imports testdep/p2 imports testdep/p3: build constraints exclude all Go files in /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_import_error_stack3398830678/gopath/src/testdep/p3 > ! go vet testdep/p1 [stderr] package testdep/p1 (test) imports testdep/p2 imports testdep/p3: build constraints exclude all Go files in /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_import_error_stack3398830678/gopath/src/testdep/p3 [exit status 1] > stderr 'package testdep/p1 \(test\)\n\timports testdep/p2\n\timports testdep/p3: build constraints exclude all Go files ' # check for full import stack matched: package testdep/p1 (test) imports testdep/p2 imports testdep/p3: build constraints exclude all Go files in /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_import_error_stack3398830678/gopath/src/testdep/p3 > env GO111MODULE=on > cd testdep > ! go test testdep/p1 [stdout] FAIL testdep/p1 [setup failed] FAIL [stderr] # testdep/p1 package testdep/p1 (test) imports testdep/p2 imports testdep/p3: build constraints exclude all Go files in /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_import_error_stack3398830678/gopath/src/testdep/p3 [exit status 1] > stderr 'package testdep/p1 \(test\)\n\timports testdep/p2\n\timports testdep/p3: build constraints exclude all Go files ' # check for full import stack matched: package testdep/p1 (test) imports testdep/p2 imports testdep/p3: build constraints exclude all Go files in /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_import_error_stack3398830678/gopath/src/testdep/p3 > ! go vet testdep/p1 [stderr] package testdep/p1 (test) imports testdep/p2 imports testdep/p3: build constraints exclude all Go files in /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_import_error_stack3398830678/gopath/src/testdep/p3 [exit status 1] > stderr 'package testdep/p1 \(test\)\n\timports testdep/p2\n\timports testdep/p3: build constraints exclude all Go files ' # check for full import stack matched: package testdep/p1 (test) imports testdep/p2 imports testdep/p3: build constraints exclude all Go files in /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_import_error_stack3398830678/gopath/src/testdep/p3 script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/work (9.39s) script_test.go:136: 2024-03-19T19:05:55Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work3452719232 script_test.go:160: > ! go work init doesnotexist [stderr] go: directory doesnotexist does not exist [exit status 1] > stderr 'go: directory doesnotexist does not exist' matched: go: directory doesnotexist does not exist > go env GOWORK [stdout] > ! stdout . > go work init ./a ./b > cmpenv go.work go.work.want > go env GOWORK [stdout] /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work3452719232/gopath/src/go.work > stdout '^'$WORK'(\\|/)gopath(\\|/)src(\\|/)go.work$' matched: /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work3452719232/gopath/src/go.work > ! go run example.com/b [stderr] a/a.go:4:8: no required module provides package rsc.io/quote; to add it: cd /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work3452719232/gopath/src/a go get rsc.io/quote [exit status 1] > stderr 'a(\\|/)a.go:4:8: no required module provides package rsc.io/quote; to add it:\n\tcd '$WORK(\\|/)gopath(\\|/)src(\\|/)a'\n\tgo get rsc.io/quote' matched: a/a.go:4:8: no required module provides package rsc.io/quote; to add it: cd /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work3452719232/gopath/src/a go get rsc.io/quote > cd a > go get rsc.io/quote [stderr] go: downloading rsc.io/quote v1.5.2 go: downloading rsc.io/sampler v1.3.0 go: downloading golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c go: added golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c go: added rsc.io/quote v1.5.2 go: added rsc.io/sampler v1.3.0 > cat go.mod [stdout] module example.com/a go 1.23 require ( golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c // indirect rsc.io/quote v1.5.2 // indirect rsc.io/sampler v1.3.0 // indirect ) > go env GOMOD # go env GOMOD reports the module in a single module context [stdout] /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work3452719232/gopath/src/a/go.mod > stdout $GOPATH(\\|/)src(\\|/)a(\\|/)go.mod matched: /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/work3452719232/gopath/src/a/go.mod > cd .. > go run example.com/b [stdout] Hello, world. > stdout 'Hello, world.' matched: Hello, world. # And try from a different directory (1.777s) # -mod can only be set to readonly in workspace mode (0.752s) # Test that duplicates in the use list return an error (1.244s) # Test that we don't run into "newRequirements called with unsorted roots" # panic with unsorted main modules. (1.591s) # Test that command-line-arguments work inside and outside modules. # This exercises the code that determines which module command-line-arguments # belongs to. (1.665s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_main (5.25s) script_test.go:136: 2024-03-19T19:05:59Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_main12485764 script_test.go:160: # Test TestMain (1.507s) # Test TestMain sees testing flags (1.876s) # Test TestMain with wrong signature (Issue #22388) (0.327s) # Test TestMain does not call os.Exit (Issue #34129) (1.528s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_test_err (0.52s) script_test.go:136: 2024-03-19T19:06:04Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_test_err531197615 script_test.go:160: > env GO111MODULE=off # issue 28491: errors in test source files should not prevent # "go list -test" from returning useful information. # go list -e prints information for all test packages. # The syntax error is shown in the package error field. (0.513s) stop script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_fuzz_unsupported (0.14s) script_test.go:136: 2024-03-19T19:06:04Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_fuzz_unsupported3271920906 script_test.go:160: > [fuzz] skip [condition not met] > ! go test -fuzz=. -fuzztime=1x [stderr] -fuzz flag is not supported on openbsd/amd64 [exit status 1] > ! stdout . > stderr '^-fuzz flag is not supported on '$GOOS'/'$GOARCH'$' matched: -fuzz flag is not supported on openbsd/amd64 script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/vet_flags (9.07s) script_test.go:136: 2024-03-19T19:05:56Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/vet_flags3351422935 script_test.go:160: > env GO111MODULE=on # Issue 35837: "go vet - " should use the requested # analyzers, not the default analyzers for 'go test'. (2.138s) # Issue 37030: "go vet " without other flags should disable the # unsafeptr check by default. (2.204s) # However, it should be enabled if requested explicitly. (2.132s) # -unreachable is disabled during test but on during plain vet. (1.722s) # A flag terminator should be allowed before the package list. (0.869s) stop script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_dir (0.11s) script_test.go:136: 2024-03-19T19:06:05Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_dir771904200 script_test.go:160: # The directory named go.mod should be ignored (0.100s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/chdir (3.17s) script_test.go:136: 2024-03-19T19:06:02Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/chdir3218958115 script_test.go:160: > env OLD=$PWD # basic -C functionality (0.146s) # check for -C in subcommands with custom flag parsing # cmd/go/chdir_test.go handles the normal ones more directly. # go doc (0.410s) # go env (0.087s) # go test (1.421s) # go vet (1.045s) # -C must be first on command line (as of Go 1.21) (0.047s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_deprecate_message (0.57s) script_test.go:136: 2024-03-19T19:06:05Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_deprecate_message3124393448 script_test.go:160: # When there is a short single-line message, 'go get' should print it all. (0.194s) # When there is a multi-line message, 'go get' should print the first line. (0.095s) # When there is a long message, 'go get' should print a placeholder. (0.153s) # When a message contains unprintable characters, 'go get' should say that # without printing the message. (0.121s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_convert_git (0.34s) script_test.go:136: 2024-03-19T19:06:05Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_convert_git408177475 script_test.go:160: > env GO111MODULE=on # We should not create a go.mod file unless the user ran 'go mod init' explicitly. # However, we should suggest 'go mod init' if we can find an alternate config file. (0.049s) # The command we suggested should succeed. (0.104s) # We should not suggest creating a go.mod file in $GOROOT, even though there may be a .git/config there. (0.059s) # We should also not suggest creating a go.mod file in $GOROOT if its own # .git/config has been stripped away and we find one in a parent directory. # (https://golang.org/issue/34191) (0.106s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_generated_main (1.06s) script_test.go:136: 2024-03-19T19:06:04Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_generated_main2838289363 script_test.go:160: # Tests that the generated test main file has a generated code comment. # This is needed by analyzers that access source files through 'go list'. # Verifies golang.org/issue/31971. # TODO(jayconrod): This test is brittle. We should write _testmain.go as # a build action instead of with an ad-hoc WriteFile call # in internal/test/test.go. Then we could just grep 'go get -n'. (1.054s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_build_tags (0.20s) script_test.go:136: 2024-03-19T19:06:05Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_build_tags2586547707 script_test.go:160: # Test that build tags are used. # golang.org/issue/24053. (0.197s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_vendor_embed (0.89s) script_test.go:136: 2024-03-19T19:06:05Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_vendor_embed1868201717 script_test.go:160: > go mod vendor > cmp vendor/example.com/a/samedir_embed.txt a/samedir_embed.txt > cmp vendor/example.com/a/subdir/embed.txt a/subdir/embed.txt > cmp vendor/example.com/a/subdir/test/embed.txt a/subdir/test/embed.txt > cmp vendor/example.com/a/subdir/test/xtest/embed.txt a/subdir/test/xtest/embed.txt > cd broken_no_matching_files > ! go mod vendor [stderr] go: resolving embeds in example.com/brokendep: pattern foo.txt: no matching files found [exit status 1] > stderr '^go: resolving embeds in example.com/brokendep: pattern foo.txt: no matching files found$' matched: go: resolving embeds in example.com/brokendep: pattern foo.txt: no matching files found > go mod vendor -e [stderr] go: resolving embeds in example.com/brokendep: pattern foo.txt: no matching files found > stderr '^go: resolving embeds in example.com/brokendep: pattern foo.txt: no matching files found$' matched: go: resolving embeds in example.com/brokendep: pattern foo.txt: no matching files found > cd ../broken_bad_pattern > ! go mod vendor [stderr] go: resolving embeds in example.com/brokendep: pattern ../foo.txt: invalid pattern syntax [exit status 1] > stderr '^go: resolving embeds in example.com/brokendep: pattern ../foo.txt: invalid pattern syntax$' matched: go: resolving embeds in example.com/brokendep: pattern ../foo.txt: invalid pattern syntax > go mod vendor -e [stderr] go: resolving embeds in example.com/brokendep: pattern ../foo.txt: invalid pattern syntax > stderr '^go: resolving embeds in example.com/brokendep: pattern ../foo.txt: invalid pattern syntax$' matched: go: resolving embeds in example.com/brokendep: pattern ../foo.txt: invalid pattern syntax > cd ../embed_go122 > go mod vendor > cmp vendor/example.com/a/samedir_embed.txt ../a/samedir_embed.txt > cmp vendor/example.com/a/subdir/embed.txt ../a/subdir/embed.txt > ! exists vendor/example.com/a/subdir/test/embed.txt > ! exists vendor/example.com/a/subdir/test/xtest/embed.txt script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_go111module_cache (3.31s) script_test.go:136: 2024-03-19T19:06:02Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_go111module_cache3521766949 script_test.go:160: > env GO111MODULE=on > go mod init foo [stderr] go: creating new go.mod: module foo go: to add module requirements and sums: go mod tidy > go test [stdout] PASS ok foo 0.146s > stdout ^ok\s+foo matched: ok foo 0.146s > env GO111MODULE=off > go test [stdout] PASS ok _/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_go111module_cache3521766949/gopath/src 0.042s > stdout ^ok\s+ matched: ok _/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_go111module_cache3521766949/gopath/src 0.042s > ! stdout ^ok\s+(cache)$ script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_build_info_err (0.71s) script_test.go:136: 2024-03-19T19:06:05Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_build_info_err807938773 script_test.go:160: # This test verifies that line numbers are included in module import errors. # Verifies golang.org/issue/34393. (0.356s) # TODO(#26909): This should include an import stack. # (Today it includes only a file and line.) (0.210s) # TODO(#41688): This should include a file and line, and report the reason for the error.. # (Today it includes only an import stack.) (0.113s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_bad_domain (0.66s) script_test.go:136: 2024-03-19T19:06:05Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_bad_domain2256371951 script_test.go:160: > env GO111MODULE=on # explicit get should report errors about bad names (0.172s) # 'go list -m' should report errors about module names, never GOROOT. (0.100s) # build should report all unsatisfied imports, # but should be more definitive about non-module import paths (0.127s) # 'get -d' should be similarly definitive (0.124s) # go mod vendor and go mod tidy should ignore appengine imports. (0.127s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_concurrent (0.97s) script_test.go:136: 2024-03-19T19:06:05Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_concurrent3791611606 script_test.go:160: > env GO111MODULE=on # Concurrent builds should succeed, even if they need to download modules. (0.936s) # Concurrent builds should update go.sum to the union of the hashes for the # modules they read. (0.002s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_case_cgo (0.08s) script_test.go:136: 2024-03-19T19:06:06Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_case_cgo311927671 script_test.go:160: > [!cgo] skip [condition not met] > env GO111MODULE=on > go get rsc.io/CGO [stderr] go: downloading rsc.io/CGO v1.0.0 go: added rsc.io/CGO v1.0.0 > [short] stop stop script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_clean_cache (0.46s) script_test.go:136: 2024-03-19T19:06:06Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_clean_cache1997506472 script_test.go:160: > env GO111MODULE=on # 'mod download' should download the module to the cache. (0.084s) # '-n' should print commands but not actually execute them. (0.029s) # 'go clean -modcache' should actually delete the files. (0.056s) # 'go clean -r -modcache' should clean only the dependencies that are within the # main module. # BUG(golang.org/issue/28680): Today, it cleans across module boundaries. (0.067s) # 'go clean -modcache' should not download anything before cleaning. (0.200s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_alt_goroot (0.12s) script_test.go:136: 2024-03-19T19:06:06Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_alt_goroot1590134918 script_test.go:160: > env GO111MODULE=on # If the working directory is a different GOROOT, then the 'std' module should be # treated as an ordinary module (with an ordinary module prefix). # It should not override packages in GOROOT, but should not fail the command. # See golang.org/issue/30756. (0.103s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_ambiguous_import (0.58s) script_test.go:136: 2024-03-19T19:06:06Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_ambiguous_import3401395204 script_test.go:160: > env GO111MODULE=on > cd $WORK # An import provided by two different modules should be flagged as an error. (0.071s) # However, it should not be an error if that import is unused. (0.245s) # An import provided by both the main module and the vendor directory # should be flagged as an error only when -mod=vendor is set. (0.243s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/cgo_stale_precompiled (1.11s) script_test.go:136: 2024-03-19T19:06:06Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/cgo_stale_precompiled460514905 script_test.go:160: # Regression test for https://go.dev/issue/47215 and https://go.dev/issue/50183: # A missing $CC caused the C dependencies of the net # package to appear stale, and it could not be rebuilt due to a missing $CC. (0.000s) # This test may start with the runtime/cgo package already stale. # Explicitly rebuild it to ensure that it is cached. # (See https://go.dev/issue/50892.) # # If running in non-short mode, explicitly vary CGO_CFLAGS # as a control case (to ensure that our regexps do catch rebuilds). (0.594s) # https://go.dev/issue/47215: a missing $(go env CC) caused the precompiled net # to be stale. But as of https://go.dev/cl/452457 the precompiled libraries are # no longer installed anyway! Since we're requiring a C compiler in order to # build and use cgo libraries in the standard library, we should make sure it # matches what's in the cache. (0.509s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_case (0.94s) script_test.go:136: 2024-03-19T19:06:06Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_case3682910868 script_test.go:160: > env GO111MODULE=on > go get [stderr] go: downloading rsc.io/QUOTE v1.5.2 go: downloading rsc.io/quote v1.5.2 go: downloading rsc.io/sampler v1.3.0 go: downloading golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c go: added golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c go: added rsc.io/QUOTE v1.5.2 go: added rsc.io/quote v1.5.2 go: added rsc.io/sampler v1.3.0 > go list -m all [stdout] x golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c rsc.io/QUOTE v1.5.2 rsc.io/quote v1.5.2 rsc.io/sampler v1.3.0 > stdout '^rsc.io/quote v1.5.2' matched: rsc.io/quote v1.5.2 > stdout '^rsc.io/QUOTE v1.5.2' matched: rsc.io/QUOTE v1.5.2 > go list -f 'DIR {{.Dir}} DEPS {{.Deps}}' rsc.io/QUOTE/QUOTE [stdout] DIR /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_case3682910868/gopath/pkg/mod/rsc.io/!q!u!o!t!e@v1.5.2/QUOTE DEPS [cmp errors golang.org/x/text/language internal/abi internal/bytealg internal/chacha8rand internal/coverage/rtcov internal/cpu internal/goarch internal/godebugs internal/goexperiment internal/goos internal/itoa internal/oserror internal/poll internal/race internal/reflectlite internal/safefilepath internal/syscall/execenv internal/syscall/unix internal/testlog internal/unsafeheader io io/fs math/bits os path rsc.io/quote rsc.io/sampler runtime runtime/internal/atomic runtime/internal/math runtime/internal/sys slices sort strings sync sync/atomic syscall time unicode unicode/utf8 unsafe] > stdout 'DEPS.*rsc.io/quote' matched: DIR /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_case3682910868/gopath/pkg/mod/rsc.io/!q!u!o!t!e@v1.5.2/QUOTE DEPS [cmp errors golang.org/x/text/language internal/abi internal/bytealg internal/chacha8rand internal/coverage/rtcov internal/cpu internal/goarch internal/godebugs internal/goexperiment internal/goos internal/itoa internal/oserror internal/poll internal/race internal/reflectlite internal/safefilepath internal/syscall/execenv internal/syscall/unix internal/testlog internal/unsafeheader io io/fs math/bits os path rsc.io/quote rsc.io/sampler runtime runtime/internal/atomic runtime/internal/math runtime/internal/sys slices sort strings sync sync/atomic syscall time unicode unicode/utf8 unsafe] > stdout 'DIR.*!q!u!o!t!e' matched: DIR /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_case3682910868/gopath/pkg/mod/rsc.io/!q!u!o!t!e@v1.5.2/QUOTE DEPS [cmp errors golang.org/x/text/language internal/abi internal/bytealg internal/chacha8rand internal/coverage/rtcov internal/cpu internal/goarch internal/godebugs internal/goexperiment internal/goos internal/itoa internal/oserror internal/poll internal/race internal/reflectlite internal/safefilepath internal/syscall/execenv internal/syscall/unix internal/testlog internal/unsafeheader io io/fs math/bits os path rsc.io/quote rsc.io/sampler runtime runtime/internal/atomic runtime/internal/math runtime/internal/sys slices sort strings sync sync/atomic syscall time unicode unicode/utf8 unsafe] > go get rsc.io/QUOTE@v1.5.3-PRE [stderr] go: downloading rsc.io/QUOTE v1.5.3-PRE go: upgraded rsc.io/QUOTE v1.5.2 => v1.5.3-PRE > go list -m all [stdout] x golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c rsc.io/QUOTE v1.5.3-PRE rsc.io/quote v1.5.2 rsc.io/sampler v1.3.0 > stdout '^rsc.io/QUOTE v1.5.3-PRE' matched: rsc.io/QUOTE v1.5.3-PRE > go list -f '{{.Dir}}' rsc.io/QUOTE/QUOTE [stdout] /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_case3682910868/gopath/pkg/mod/rsc.io/!q!u!o!t!e@v1.5.3-!p!r!e/QUOTE > stdout '!q!u!o!t!e@v1.5.3-!p!r!e' matched: /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_case3682910868/gopath/pkg/mod/rsc.io/!q!u!o!t!e@v1.5.3-!p!r!e/QUOTE script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_test_e (0.60s) script_test.go:136: 2024-03-19T19:06:07Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_test_e2948409785 script_test.go:160: > env GO111MODULE=off # issue 25980: crash in go list -e -test (0.571s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/malformed_gosum_issue62345 (0.88s) script_test.go:136: 2024-03-19T19:06:07Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/malformed_gosum_issue623452306878777 script_test.go:160: > ! go mod download [stderr] malformed go.sum: /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/malformed_gosum_issue623452306878777/gopath/src/go.sum:3: wrong number of fields 5 [exit status 1] > stderr '^malformed go.sum:\n.*go.sum:3: wrong number of fields 5\n$' matched: malformed go.sum: /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/malformed_gosum_issue623452306878777/gopath/src/go.sum:3: wrong number of fields 5 > go mod tidy [stderr] go: downloading rsc.io/quote v1.5.2 go: downloading rsc.io/sampler v1.3.0 go: downloading rsc.io/testonly v1.0.0 go: downloading golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c > cmp go.sum go.sum.after-tidy script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_wildcard_skip_nonmatching (0.10s) script_test.go:136: 2024-03-19T19:06:08Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_wildcard_skip_nonmatching1870668384 script_test.go:160: # Test that wildcards don't look in useless directories. # First make sure that badpkg fails the list of '...'. (0.046s) # Check that the list of './goodpkg...' succeeds. That implies badpkg was skipped. (0.048s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_testdata (0.06s) script_test.go:136: 2024-03-19T19:06:08Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_testdata1848653697 script_test.go:160: # Issue 65406. The testdata directory in GOROOT/src # shouldn't be treated as a standard package. (0.058s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_test_cycle (1.50s) script_test.go:136: 2024-03-19T19:06:07Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_test_cycle2284426801 script_test.go:160: > go list ./p [stdout] example/p > stdout 'example/p' matched: example/p > ! go list -json=ImportPath -test ./p [stderr] go: can't load test package: package example/p imports example/q imports example/r imports example/p: import cycle not allowed in test [exit status 1] > cmp stderr wanterr.txt > ! go list -json=ImportPath,Deps -test ./p [stderr] go: can't load test package: package example/p imports example/q imports example/r imports example/p: import cycle not allowed in test [exit status 1] > cmp stderr wanterr.txt > ! go list -json=ImportPath,Deps -deps -test ./p [stderr] go: can't load test package: package example/p imports example/q imports example/r imports example/p: import cycle not allowed in test [exit status 1] > cmp stderr wanterr.txt > ! go list -json=ImportPath -deps -test ./p [stderr] go: can't load test package: package example/p imports example/q imports example/r imports example/p: import cycle not allowed in test [exit status 1] > cmp stderr wanterr.txt script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/load_test_pkg_err (0.98s) script_test.go:136: 2024-03-19T19:06:07Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/load_test_pkg_err1132058403 script_test.go:160: # Tests issue 37971. Check that tests are still loaded even when the package has an error. (0.916s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_symlink_vendor_issue15201 (0.10s) script_test.go:136: 2024-03-19T19:06:08Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_symlink_vendor_issue152011792618922 script_test.go:160: > [!symlink] skip [condition not met] > env GO111MODULE=off > mkdir $WORK/tmp/gopath/src/x/y/_vendor/src/x > symlink $WORK/tmp/gopath/src/x/y/_vendor/src/x/y -> ../../.. > mkdir $WORK/tmp/gopath/src/x/y/_vendor/src/x/y/w > cp w.go $WORK/tmp/gopath/src/x/y/w/w.go > symlink $WORK/tmp/gopath/src/x/y/w/vendor -> ../_vendor/src > mkdir $WORK/tmp/gopath/src/x/y/_vendor/src/x/y/z > cp z.go $WORK/tmp/gopath/src/x/y/z/z.go > env GOPATH=$WORK/tmp/gopath/src/x/y/_vendor${:}$WORK/tmp/gopath > cd $WORK/tmp/gopath/src > go list ./... [stdout] _/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_symlink_vendor_issue152011792618922/tmp/gopath/src/x/y/w _/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_symlink_vendor_issue152011792618922/tmp/gopath/src/x/y/z script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_test_non_go_files (0.08s) script_test.go:136: 2024-03-19T19:06:08Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_test_non_go_files447516969 script_test.go:160: > env GO111MODULE=off # issue 29899: handling files with non-Go extension (0.068s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_test_imports (0.56s) script_test.go:136: 2024-03-19T19:06:08Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_test_imports1584479418 script_test.go:160: > env GO111MODULE=off # issue 26880: list with tests has wrong variant in imports (0.548s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/env_write (3.64s) script_test.go:136: 2024-03-19T19:06:05Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/env_write159610831 script_test.go:160: > env GO111MODULE=off # go env should default to the right places (0.108s) # Now override it to something writable. (0.054s) # go env shows all variables (0.306s) # go env ignores invalid flag in GOFLAGS environment variable (0.151s) # checking errors (0.107s) # go env -w changes default setting (0.100s) # go env -w does not override OS environment, and warns about that (0.096s) # but go env -w does do the update, and unsetting the env var exposes the change (0.095s) # unsetting with go env -u does not warn about OS environment overrides, # nor does it warn about variables that haven't been set by go env -w. (0.128s) # go env -w rejects unknown or bad variables (0.227s) # go env -w can set multiple variables (0.123s) # file is maintained in sorted order (0.034s) # go env -u unsets effect of go env -w. (0.133s) # go env -w rejects double-set variables (0.061s) # go env -w rejects missing variables (0.029s) # go env -w rejects invalid GO111MODULE values, as otherwise cmd/go would break (0.074s) # go env -w rejects invalid GOPATH values (0.113s) # go env -w rejects invalid GOTMPDIR values (0.032s) # go env -w should accept absolute GOTMPDIR value # and should not create it (0.075s) # we should be able to clear an env (0.273s) # go env -w rejects relative CC values (0.211s) # go env -w rejects relative CXX values (0.110s) # go env -w/-u checks validity of GOOS/ARCH combinations (0.000s) # check -w doesn't allow invalid GOOS (0.042s) # check -w doesn't allow invalid GOARCH (0.025s) # check -w doesn't allow invalid GOOS with valid GOARCH (0.036s) # check a valid GOOS and GOARCH values but an incompatible combinations (0.070s) # check that -u considers explicit envs (0.079s) # go env -w should reject relative paths in GOMODCACHE environment. (0.060s) # go env -w checks validity of GOEXPERIMENT (0.084s) # go env -w and go env -u work on unknown fields already in the go/env file (0.568s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_perm (0.23s) script_test.go:136: 2024-03-19T19:06:09Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_perm2611236762 script_test.go:160: > env GO111MODULE=on # Establish baseline behavior, before mucking with file permissions. (0.221s) # Make the directory ./noread unreadable, and verify that 'go list' reports an # explicit error for a pattern that should match it (rather than treating it as # equivalent to an empty directory). (0.000s) stop script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_symlink_vendor_issue14054 (1.76s) script_test.go:136: 2024-03-19T19:06:08Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_symlink_vendor_issue14054895352534 script_test.go:160: > [!symlink] skip [condition not met] > env GO111MODULE=off > mkdir $WORK/tmp/gopath/src/dir1/vendor/v > cp p.go $WORK/tmp/gopath/src/dir1/p.go > cp v.go $WORK/tmp/gopath/src/dir1/vendor/v/v.go > symlink $WORK/tmp/symdir1 -> $WORK/tmp/gopath/src/dir1 > env GOPATH=$WORK/tmp/gopath > cd $WORK/tmp/symdir1 > go list -f '{{.Root}}' . [stdout] /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_symlink_vendor_issue14054895352534/tmp/gopath > stdout '^'$WORK/tmp/gopath'$' matched: /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_symlink_vendor_issue14054895352534/tmp/gopath # All of these should succeed, not die in vendor-handling code. (1.365s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_symlink_dotdotdot (0.25s) script_test.go:136: 2024-03-19T19:06:10Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_symlink_dotdotdot3448508657 script_test.go:160: > [!symlink] skip [condition not met] > symlink $WORK/gopath/src/sym -> $WORK/gopath/src/tree > symlink $WORK/gopath/src/tree/squirrel -> $WORK/gopath/src/dir2 # this symlink should not be followed > cd sym > go list ./... [stdout] example.com/tree example.com/tree/branch > cmp stdout $WORK/gopath/src/want_list.txt script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_symlink (0.08s) script_test.go:136: 2024-03-19T19:06:10Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_symlink3574047471 script_test.go:160: > [!symlink] skip [condition not met] > env GO111MODULE=off > mkdir $WORK/tmp/src > symlink $WORK/tmp/src/dir1 -> $WORK/tmp > cp p.go $WORK/tmp/src/dir1/p.go > env GOPATH=$WORK/tmp > go list -f '{{.Root}}' dir1 [stdout] /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_symlink3574047471/tmp > stdout '^'$WORK/tmp'$' matched: /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_symlink3574047471/tmp script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_overlay (0.47s) script_test.go:136: 2024-03-19T19:06:10Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_overlay3044640434 script_test.go:160: # Test listing with overlays # Overlay in an existing directory (0.116s) # Overlays in a non-existing directory (0.060s) # Overlays in an existing directory with already existing files (0.065s) # Overlay that removes a file from a directory (0.112s) # Walking through an overlay (0.104s) # TODO(#39958): assembly files, C files, files that require cgo preprocessing script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_symlink_internal (1.87s) script_test.go:136: 2024-03-19T19:06:09Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_symlink_internal1958924409 script_test.go:160: > [!symlink] skip [condition not met] > env GO111MODULE=off > mkdir $WORK/tmp/gopath/src/dir1/internal/v > cp p.go $WORK/tmp/gopath/src/dir1/p.go > cp v.go $WORK/tmp/gopath/src/dir1/internal/v/v.go > symlink $WORK/tmp/symdir1 -> $WORK/tmp/gopath/src/dir1 > env GOPATH=$WORK/tmp/gopath > cd $WORK/tmp/symdir1 > go list -f '{{.Root}}' . [stdout] /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_symlink_internal1958924409/tmp/gopath > stdout '^'$WORK/tmp/gopath'$' matched: /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_symlink_internal1958924409/tmp/gopath # All of these should succeed, not die in internal-handling code. (1.498s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_module_when_error (0.24s) script_test.go:136: 2024-03-19T19:06:11Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_module_when_error2408001410 script_test.go:160: # The Module field should be populated even if there is an error loading the package. (0.226s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_all (4.94s) script_test.go:136: 2024-03-19T19:06:07Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_all2643894981 script_test.go:160: # This test illustrates the relationship between the 'all' pattern and # the dependencies of the main module. # The package import graph used in this test looks like: # # main --------- a --------- b # | | # | a_test ---- c # | | # | c_test ---- d # | # main_test ---- t --------- u # | # t_test ---- w # | # w_test ---- x # # main/testonly_test ---- q --------- r # | # q_test ---- s # # And the module dependency graph looks like: # # main --- a.1 ---- b.1 # \ \ \ # \ \ c.1 -- d.1 # \ \ # \ t.1 ---- u.1 # \ \ # \ w.1 -- x.1 # \ # q.1 ---- r.1 # \ # s.1 (0.000s) # 'go list -deps' lists packages and tests in the main module, # along with their transitive dependencies. (0.290s) # 'go list -deps -test' lists transitive imports of tests and non-tests in the # main module. (0.683s) # 'go list all' lists the fixpoint of iterating 'go list -deps -test' starting # with the packages in the main module, then reducing to only the non-test # variants of those packages. (0.338s) # 'go list -test all' is equivalent to 'go list -test $(go list all)' # and both should include tests for every package in 'all'. (0.759s) # 'go list -m all' covers the packages in 'go list -test -deps all'. (0.038s) # 'go mod vendor' copies in only the packages transitively imported by the main # module, and omits their tests. As a result, the 'all' and '...' patterns # report fewer packages when using '-mod=vendor'. (0.514s) # Convert all modules to go 1.17 to enable lazy loading. (1.066s) # With lazy loading, 'go list all' with neither -mod=vendor nor -test should # match -mod=vendor without -test in 1.15. (0.188s) # 'go list -test all' should expand that to include the test variants of the # packages in 'all', but not the dependencies of outside tests. (0.288s) # 'go list -test -deps all' should include the dependencies of those tests, # but not the tests of the dependencies of outside tests. (0.582s) # 'go list -m all' should cover all of the modules providing packages in # 'go list -test -deps all', but should exclude modules d and x, # which are not relevant to the main module and are outside of the # lazy-loading horizon. (0.139s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_std_vendor (0.58s) script_test.go:136: 2024-03-19T19:06:11Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_std_vendor3806337422 script_test.go:160: # https://golang.org/issue/44725: packages in std should have the same # dependencies regardless of whether they are listed from within or outside # GOROOT/src. # Control case: net, viewed from outside the 'std' module, # should depend on vendor/golang.org/… instead of golang.org/…. (0.314s) # It should still report the same package dependencies when viewed from # within GOROOT/src. (0.259s) # However, 'go mod' and 'go get' subcommands should report the original module # dependencies, not the vendored packages. (0.000s) stop script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_parse_err (2.16s) script_test.go:136: 2024-03-19T19:06:09Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_parse_err3137686200 script_test.go:160: # 'go list' without -e should fail and print errors on stderr. (1.225s) # 'go list -e' should report imports, even if some files have parse errors # before the import block. (0.161s) # 'go list' should report the position of the error if there's only one. (0.235s) # 'go test' should report the position of the error if there's only one. (0.498s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_split_main (0.45s) script_test.go:136: 2024-03-19T19:06:11Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_split_main2964970329 script_test.go:160: # This test checks that a "main" package with an external test package # is recompiled only once. # Verifies golang.org/issue/34321. (0.440s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_reserved (0.18s) script_test.go:136: 2024-03-19T19:06:11Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_reserved1382166790 script_test.go:160: # https://golang.org/issue/37641: the paths "example" and "test" are reserved # for end users, and must never exist in the standard library. (0.175s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_shadow (0.75s) script_test.go:136: 2024-03-19T19:06:11Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_shadow4086417069 script_test.go:160: > env GO111MODULE=off > env GOPATH=$WORK/gopath/src/shadow/root1${:}$WORK/gopath/src/shadow/root2 # The math in root1 is not "math" because the standard math is. (0.117s) # The foo in root1 is "foo". (0.113s) # The foo in root2 is not "foo" because the foo in root1 got there first. (0.232s) # The error for go install should mention the conflicting directory. (0.276s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_symlink_issue35941 (4.23s) script_test.go:136: 2024-03-19T19:06:08Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_symlink_issue359414069887608 script_test.go:160: > [!symlink] skip [condition not met] > env GO111MODULE=off # Issue 35941: suppress symlink warnings when running 'go list all'. (4.183s) # Show symlink warnings when patterns contain '...'. (0.039s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_pkgconfig_error (1.02s) script_test.go:136: 2024-03-19T19:06:12Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_pkgconfig_error2831846535 script_test.go:160: > [!cgo] skip 'test verifies cgo pkg-config errors' [condition not met] > [!exec:pkg-config] skip 'test requires pkg-config tool' [condition not met] > ! go list -export . [stdout] example [stderr] # example # [pkg-config --cflags -- libnot-a-valid-cgo-library] Package libnot-a-valid-cgo-library was not found in the pkg-config search path [exit status 1] > stderr '^# example\n# \[pkg-config .*\]\n(.*\n)*Package .* not found' matched: # example # [pkg-config --cflags -- libnot-a-valid-cgo-library] Package libnot-a-valid-cgo-library was not found in the pkg-config search path script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_import_cycle_deps_errors (0.05s) script_test.go:136: 2024-03-19T19:06:13Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_import_cycle_deps_errors3536519765 script_test.go:160: > go list -e -deps -json=ImportPath,Error,DepsErrors m/a [stdout] { "ImportPath": "m/c", "DepsErrors": [ { "ImportStack": [ "m/a", "m/b", "m/c", "m/a" ], "Pos": "", "Err": "import cycle not allowed" } ] } { "ImportPath": "m/b", "DepsErrors": [ { "ImportStack": [ "m/a", "m/b", "m/c", "m/a" ], "Pos": "", "Err": "import cycle not allowed" } ] } { "ImportPath": "m/a", "Error": { "ImportStack": [ "m/a", "m/b", "m/c", "m/a" ], "Pos": "", "Err": "import cycle not allowed" }, "DepsErrors": [ { "ImportStack": [ "m/a", "m/b", "m/c", "m/a" ], "Pos": "", "Err": "import cycle not allowed" } ] } > cmp stdout want script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_legacy_mod (0.67s) script_test.go:136: 2024-03-19T19:06:12Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_legacy_mod320922248 script_test.go:160: # In GOPATH mode, module legacy support does path rewriting very similar to vendoring. (0.653s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_load_err (1.45s) script_test.go:136: 2024-03-19T19:06:12Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_load_err3779795050 script_test.go:160: # go list -e -deps should list imports from any file it can read, even if # other files in the same package cause go/build.Import to return an error. # Verifies golang.org/issue/38568 (1.083s) # go list -e should include files with errors in GoFiles, TestGoFiles, and # other lists, assuming they match constraints. # Verifies golang.org/issue/39986 (0.327s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/cgo_depends_on_syscall (0.30s) script_test.go:136: 2024-03-19T19:06:13Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/cgo_depends_on_syscall285924069 script_test.go:160: > [!cgo] skip [condition not met] > [!race] skip [condition not met] > go list -race -deps foo [stdout] unsafe internal/goarch internal/goos runtime/internal/sys internal/abi internal/cpu internal/bytealg internal/chacha8rand internal/coverage/rtcov internal/godebugs internal/goexperiment runtime/internal/atomic runtime/internal/math runtime internal/race sync/atomic sync runtime/cgo internal/unsafeheader internal/reflectlite errors internal/itoa internal/oserror syscall foo > stdout syscall matched: syscall script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_find_nodeps (0.42s) script_test.go:136: 2024-03-19T19:06:13Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_find_nodeps2956189702 script_test.go:160: # Issue #46092 # go list -find should always return a package with an empty Deps list # The linker loads implicit dependencies (0.091s) # Cgo translation may add imports of "unsafe", "runtime/cgo" and "syscall" (0.127s) # SWIG adds imports of some standard packages (0.196s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_gofile_in_goroot (0.57s) script_test.go:136: 2024-03-19T19:06:13Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_gofile_in_goroot4074320790 script_test.go:160: # Return an error if the user tries to list a go source file directly in $GOROOT/src. # Tests golang.org/issue/36587 (0.034s) # switch to GOROOT/src (0.000s) # In module mode, 'go list ./...' should not treat .go files in GOROOT/src as an # importable package, since that directory has no valid import path. (0.221s) # In GOPATH mode, 'go list ./...' should synthesize a legacy GOPATH-mode path — # not a standard-library or empty path — for the errant package. (0.189s) # switch to GOPATH/src (0.000s) # GO111MODULE=off,GOPATH (0.121s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_gomod_in_gopath (0.74s) script_test.go:136: 2024-03-19T19:06:13Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_gomod_in_gopath3195934144 script_test.go:160: # Issue 46119 # When a module is inside a GOPATH workspace, Package.Root should be set to # Module.Dir instead of $GOPATH/src. (0.200s) # Were we really inside a GOPATH workspace? (0.538s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/cache_unix (0.24s) script_test.go:136: 2024-03-19T19:06:14Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/cache_unix4178388955 script_test.go:160: > env GO111MODULE=off # Integration test for cache directory calculation (cmd/go/internal/cache). (0.000s) # Set GOCACHE, XDG_CACHE_HOME, and HOME. (0.000s) # With all three set, we should prefer GOCACHE. (0.032s) # Without GOCACHE, we should prefer XDG_CACHE_HOME over HOME. (0.048s) # With only HOME set, we should use $HOME/.cache. (0.040s) # With no guidance from the environment, we must disable the cache, but that # should not cause commands that do not write to the cache to fail. (0.064s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/cgo_asm_error (0.71s) script_test.go:136: 2024-03-19T19:06:14Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/cgo_asm_error1208799535 script_test.go:160: > [!cgo] skip [condition not met] # Test that cgo package can't contain a go assembly file. # Ensure the build fails and reports that the package has a Go assembly file. (0.708s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_unsupported_goos (0.05s) script_test.go:136: 2024-03-19T19:06:14Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_unsupported_goos2452027515 script_test.go:160: > [compiler:gccgo] skip # gccgo assumes cross-compilation is always possible [condition not met] > env GOOS=windwos # intentional misspelling of windows > ! go build -n exclude [stderr] go: unsupported GOOS/GOARCH pair windwos/amd64 [exit status 2] > stderr 'unsupported GOOS/GOARCH pair' matched: go: unsupported GOOS/GOARCH pair windwos/amd64 script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_vendor (0.55s) script_test.go:136: 2024-03-19T19:06:14Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_vendor620333933 script_test.go:160: # Build (0.489s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_err_cycle (0.07s) script_test.go:136: 2024-03-19T19:06:15Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_err_cycle1570679711 script_test.go:160: # Check that we don't get infinite recursion when loading a package with # an import cycle and another error. Verifies #25830. (0.066s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_empty_import (0.07s) script_test.go:136: 2024-03-19T19:06:15Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_empty_import57974790 script_test.go:160: > ! go list a.go [stderr] /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_empty_import57974790/gopath/src/a.go:3:8: invalid import path: [exit status 1] > ! stdout . > stderr 'invalid import path' matched: /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_empty_import57974790/gopath/src/a.go:3:8: invalid import path: > ! stderr panic script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_vendor (3.21s) script_test.go:136: 2024-03-19T19:06:12Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_vendor1000809638 script_test.go:160: > env GO111MODULE=on # Without vendoring, a build should succeed unless -mod=vendor is set. (0.000s) # Without vendoring, 'go list' should report the replacement directory for # a package in a replaced module. (0.311s) # 'go mod vendor' should copy all replaced modules to the vendor directory. (0.463s) # An explicit '-mod=mod' should ignore the vendor directory. (0.104s) # An explicit '-mod=vendor' should report package directories within # the vendor directory. (0.034s) # 'go list -mod=vendor -m' should successfully list vendored modules, # but should not provide a module directory because no directory contains # the complete module. (0.044s) # -mod=vendor should cause 'go list' flags that look up versions to fail. (0.086s) # 'go list -mod=vendor -m' on a transitive dependency that does not # provide vendored packages should give a helpful error rather than # 'not a known dependency'. (0.046s) # 'go list -mod=mod' should report packages outside the import graph, # but 'go list -mod=vendor' should error out for them. (0.242s) # Test dependencies should not be copied. (0.000s) # Licenses and other metadata for each module should be copied # if any package within their module is copied. (0.000s) # 'go mod vendor' should work with an alternative vendor directory if the -o flag is provided. (0.087s) # 'go mod vendor' should interpret paths relative to the current working directory when the -o flag is provided. (0.337s) # 'go mod vendor' should fall back to the default 'vendor' directory when an empty argument is passed to the -o flag # the same behavior should be exhibited both on the module root directory, as well as nested subdirectories (1.110s) # 'go mod vendor' should work with absolute paths as well (0.238s) stop script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_json_issue64946 (0.06s) script_test.go:136: 2024-03-19T19:06:15Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_json_issue649464170862937 script_test.go:160: > cd mod > go list -e -json=ImportPath,Error ./foo [stdout] { "ImportPath": "./foo", "Error": { "ImportStack": [], "Pos": "", "Err": "no Go files in /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_json_issue649464170862937/gopath/src/mod/foo" } } > stdout '"Err": "no Go files in .*(/|\\\\)src(/|\\\\)mod(/|\\\\)foo"' matched: "Err": "no Go files in /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_json_issue649464170862937/gopath/src/mod/foo" script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_err_stack (0.37s) script_test.go:136: 2024-03-19T19:06:14Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_err_stack4013706246 script_test.go:160: # golang.org/issue/40544: regression in error stacks for parse errors (0.354s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_import_err (0.08s) script_test.go:136: 2024-03-19T19:06:16Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_import_err3165715959 script_test.go:160: # Test that errors importing packages are reported on the importing package, # not the imported package. (0.067s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_importmap (1.16s) script_test.go:136: 2024-03-19T19:06:15Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_importmap3842262694 script_test.go:160: > env GO111MODULE=off # gccgo does not have standard packages. (0.000s) # fmt should have no rewritten imports. # The import from a/b should map c/d to a's vendor directory. (0.441s) # flag [fmt.test] should import fmt [fmt.test] as fmt # fmt.test should import testing [fmt.test] as testing # fmt.test should not import a modified os (0.704s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_issue_59905 (1.44s) script_test.go:136: 2024-03-19T19:06:15Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_issue_599052673896906 script_test.go:160: # Expect no panic (0.844s) # Expect no panic (Issue 61816) (0.574s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_tags_no_comma (0.23s) script_test.go:136: 2024-03-19T19:06:16Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_tags_no_comma2546385559 script_test.go:160: > [compiler:gccgo] skip 'gccgo has no standard packages' [condition not met] > go build -tags 'tag1 tag2' math > ! go build -tags 'tag1,tag2 tag3' math [stderr] go: -tags space-separated list contains comma [exit status 2] > stderr 'space-separated list contains comma' matched: go: -tags space-separated list contains comma script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_test_only (0.69s) script_test.go:136: 2024-03-19T19:06:16Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_test_only3618009305 script_test.go:160: # Named explicitly, test-only packages should be reported as # unbuildable/uninstallable, even if there is a wildcard also matching. (0.432s) # Named through a wildcard, the test-only packages should be silently ignored. (0.238s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_dedup_packages (0.11s) script_test.go:136: 2024-03-19T19:06:16Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_dedup_packages3079427017 script_test.go:160: # Setup (0.001s) # Check output of go list to ensure no duplicates (0.097s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_relative_tmpdir (0.35s) script_test.go:136: 2024-03-19T19:06:16Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_relative_tmpdir2230265141 script_test.go:160: > env GO111MODULE=off # If GOTMPDIR is relative, 'go build' should derive an absolute $WORK directory. (0.236s) # Similarly if TMP/TMPDIR is relative. (0.110s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_export_e (2.67s) script_test.go:136: 2024-03-19T19:06:14Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_export_e1400216724 script_test.go:160: > ! go list -export ./... [stdout] example.com/p1 example.com/p2 [stderr] # example.com/p2 p2/main.go:7:25: invalid operation: p1.Name == 5 (mismatched types untyped string and untyped int) [exit status 1] > stderr '^# example.com/p2\np2'${/}'main\.go:7:.*' matched: # example.com/p2 p2/main.go:7:25: invalid operation: p1.Name == 5 (mismatched types untyped string and untyped int) > ! stderr '^go build ' > go list -f '{{with .Error}}{{.}}{{end}}' -e -export ./... [stdout] # example.com/p2 p2/main.go:7:25: invalid operation: p1.Name == 5 (mismatched types untyped string and untyped int) > ! stderr '.' > stdout '^# example.com/p2\np2'${/}'main\.go:7:.*' matched: # example.com/p2 p2/main.go:7:25: invalid operation: p1.Name == 5 (mismatched types untyped string and untyped int) > go list -export -e -f '{{.ImportPath}} -- {{.Incomplete}} -- {{.Error}}' ./... [stdout] example.com/p1 -- false -- example.com/p2 -- true -- # example.com/p2 p2/main.go:7:25: invalid operation: p1.Name == 5 (mismatched types untyped string and untyped int) > stdout 'example.com/p1 -- false -- ' matched: example.com/p1 -- false -- > stdout 'example.com/p2 -- true -- # example.com/p2' matched: example.com/p2 -- true -- # example.com/p2 > go list -e -export -json=Error ./... [stdout] {} { "Error": { "ImportStack": null, "Pos": "", "Err": "# example.com/p2\np2/main.go:7:25: invalid operation: p1.Name == 5 (mismatched types untyped string and untyped int)\n" } } > stdout '"Err": "# example.com/p2' matched: "Err": "# example.com/p2\np2/main.go:7:25: invalid operation: p1.Name == 5 (mismatched types untyped string and untyped int)\n" script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/cgo_path_space (4.48s) script_test.go:136: 2024-03-19T19:06:13Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/cgo_path_space4097812928 script_test.go:160: # Check that if the PATH directory containing the C compiler has a space, # we can still use that compiler with cgo. # Verifies #43808. (0.000s) # Set CC explicitly to something that requires a PATH lookup. # Normally, the default is gcc or clang, but if CC was set during make.bash, # that becomes the default. (3.728s) # TODO(#41400, #43078): when CC is set explicitly, it should be allowed to # contain spaces separating arguments, and it should be possible to quote # arguments with spaces (including the path), as in CGO_CFLAGS and other # variables. For now, this doesn't work. (0.738s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_single_error (0.92s) script_test.go:136: 2024-03-19T19:06:16Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_single_error3572088695 script_test.go:160: # go test ./... with a bad package should report the error once (#44624). (0.917s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_compiled_files_issue28749 (0.08s) script_test.go:136: 2024-03-19T19:06:17Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_compiled_files_issue287492372567631 script_test.go:160: > go list -compiled -f {{.CompiledGoFiles}} . [stdout] [foo.go] > ! stdout 'foo.s' script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/issue36000 (0.48s) script_test.go:136: 2024-03-19T19:06:17Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/issue360001398376066 script_test.go:160: # Tests golang.org/issue/36000 (0.000s) # go env with CGO flags should not make NUL file (0.383s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/link_external_undef (1.33s) script_test.go:136: 2024-03-19T19:06:16Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/link_external_undef1246433352 script_test.go:160: # Test case for issue 47993, in which the linker crashes # on a bad input instead of issuing an error and exiting. # This test requires external linking, so use cgo as a proxy (1.305s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/clean_cache_n (16.95s) script_test.go:136: 2024-03-19T19:06:01Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/clean_cache_n2039769040 script_test.go:160: # We're testing cache behavior, so start with a clean GOCACHE. (0.000s) # Build something so that the cache gets populates (16.553s) # Check that cache contains directories before running (0.000s) # Run go clean -cache -n and ensure that directories weren't deleted (0.042s) # Re-run go clean cache without the -n flag go ensure that directories were properly removed (0.304s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_json_fields (3.19s) script_test.go:136: 2024-03-19T19:06:15Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_json_fields4277838958 script_test.go:160: # Test using -json flag to specify specific fields. # Test -json produces "full" output by looking for multiple fields present. (0.601s) # Same thing for -json=true (0.454s) # Test -json=false produces non-json output. (0.240s) # Test -json= keeps only that field. (0.138s) # Test -json= with multiple fields. (0.171s) # Test -json= with Deps outputs the Deps field. (0.136s) # Test -json= with *EmbedPatterns outputs embed patterns. (0.129s) # Test -json= with *EmbedFiles fails due to broken file reference. (0.510s) # Test -json= without Stale skips computing buildinfo (0.121s) # Control case: with -json=Stale cmd/go executes git status to compute buildinfo (0.537s) # Test case: without -json=Stale cmd/go skips git status (0.140s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_pie_race (0.08s) script_test.go:136: 2024-03-19T19:06:18Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_pie_race3815193015 script_test.go:160: # go build -buildmode=pie -race main.go on Darwin should work without errors (0.061s) stop: not testing -buildmode=pie -race on platform that does not support it script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_case_collision (0.35s) script_test.go:136: 2024-03-19T19:06:18Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_case_collision4074308358 script_test.go:160: # Tests golang.org/issue/4773 (0.211s) # List files explicitly on command line, to encounter case-checking # logic even on case-insensitive filesystems. (0.084s) # Test that the path reported with an indirect import is correct. (0.038s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_constraints (1.29s) script_test.go:136: 2024-03-19T19:06:17Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_constraints1391168441 script_test.go:160: # Check that files and their imports are not included in 'go list' output # when they are excluded by build constraints. # Linux and cgo files should be included when building in that configuration. (0.683s) # Disabling cgo should exclude cgo files and their imports. (0.278s) # Changing OS should exclude linux sources. (0.136s) # Enabling a tag should include files that require it. (0.099s) # Packages that require a tag should not be listed unless the tag is on. (0.082s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_ambiguous_path (0.29s) script_test.go:136: 2024-03-19T19:06:18Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_ambiguous_path2897038001 script_test.go:160: # Ensures that we can correctly list package patterns ending in '.go'. # See golang.org/issue/34653. # A single pattern for a package ending in '.go'. (0.073s) # Multiple patterns for packages including one ending in '.go'. (0.053s) # A single pattern for a Go file. (0.098s) # A single typo-ed pattern for a Go file. This should # treat the wrong pattern as if it were a package. (0.030s) # Multiple patterns for Go files with a typo. This should # treat the wrong pattern as if it were a nonexistent file. (0.032s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/install_shadow_gopath (0.19s) script_test.go:136: 2024-03-19T19:06:18Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/install_shadow_gopath1431782961 script_test.go:160: # Tests Issue #3562 # go get foo.io (not foo.io/subdir) was not working consistently. (0.185s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/install_relative_gobin_fail (0.12s) script_test.go:136: 2024-03-19T19:06:18Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/install_relative_gobin_fail240168246 script_test.go:160: > env GOBIN=. > ! go install [stderr] cannot install, GOBIN must be an absolute path [exit status 1] > stderr 'cannot install, GOBIN must be an absolute path' matched: cannot install, GOBIN must be an absolute path script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_all_gobuild (0.13s) script_test.go:136: 2024-03-19T19:06:18Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_all_gobuild1826026348 script_test.go:160: # go list all should work with GOOS=linux because all packages build on Linux (0.063s) # go list all should work with GOOS=darwin, but it used to fail because # in the absence of //go:build support, p looked like it needed q # (p_test.go was not properly excluded), and q was Linux-only. # # Also testing with r and s that +build lines keep working. (0.058s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/install_modcacherw_issue64282 (0.29s) script_test.go:136: 2024-03-19T19:06:18Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/install_modcacherw_issue642822295675266 script_test.go:160: # Regression test for https://go.dev/issue/64282. # # 'go install' and 'go run' with pkg@version arguments should make # a best effort to parse flags relevant to downloading modules # (currently only -modcacherw) before actually downloading the module # to identify which toolchain version to use. # # However, the best-effort flag parsing should not interfere with # actual flag parsing if we don't switch toolchains. In particular, # unrecognized flags should still be diagnosed after the module for # the requested package has been downloaded and checked for toolchain # upgrades. (0.217s) # Also try it with a 'go install' that succeeds. # (But skip in short mode, because linking a binary is expensive.) (0.000s) # The flag should also be applied if given in GOFLAGS # instead of on the command line. (0.063s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/index (0.49s) script_test.go:136: 2024-03-19T19:06:18Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/index1887178449 script_test.go:160: # Check that standard library packages are cached. (0.486s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/install_msan_and_race_and_asan_require_cgo (0.05s) script_test.go:136: 2024-03-19T19:06:19Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/install_msan_and_race_and_asan_require_cgo697121774 script_test.go:160: # Tests Issue #21895 (0.048s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/linkname (0.74s) script_test.go:136: 2024-03-19T19:06:18Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/linkname325847623 script_test.go:160: > env GO111MODULE=off # check for linker name in error message about linker crash (0.731s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/install_dep_version (0.92s) script_test.go:136: 2024-03-19T19:06:18Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/install_dep_version1595967869 script_test.go:160: # Regression test for Issue #54908. When running a go install module@version # with --mod=readonly moduleInfo was not setting the GoVersion for the module # because the checksumOk function was failing because modfetch.GoSumFile # was not set when running outside of a module. (0.895s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/import_unix_tag (0.33s) script_test.go:136: 2024-03-19T19:06:19Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/import_unix_tag3197112554 script_test.go:160: # Regression test for https://go.dev/issue/54712: the "unix" build constraint # was not applied consistently during package loading. (0.320s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/install_cgo_excluded (0.04s) script_test.go:136: 2024-03-19T19:06:19Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/install_cgo_excluded1047754488 script_test.go:160: > env CGO_ENABLED=0 > ! go install cgotest [stderr] package cgotest: build constraints exclude all Go files in /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/install_cgo_excluded1047754488/gopath/src [exit status 1] > stderr 'build constraints exclude all Go files' matched: package cgotest: build constraints exclude all Go files in /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/install_cgo_excluded1047754488/gopath/src script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/list_compiled_imports (2.55s) script_test.go:136: 2024-03-19T19:06:17Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/list_compiled_imports2806927718 script_test.go:160: > env GO111MODULE=off > [!cgo] skip [condition not met] # go list should report import "C" (0.231s) # go list -compiled should report imports in compiled files as well, # adding "runtime/cgo", "unsafe", and "syscall" but not dropping "C". (2.319s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_negative_p (0.04s) script_test.go:136: 2024-03-19T19:06:20Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_negative_p2391424216 script_test.go:160: > ! go build -p=-1 example.go [stderr] go: -p must be a positive integer: -1 [exit status 1] > stderr 'go: -p must be a positive integer: -1' matched: go: -p must be a positive integer: -1 script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_no_go (0.52s) script_test.go:136: 2024-03-19T19:06:19Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_no_go3953407421 script_test.go:160: > ! go build ./empty/test [stderr] m/empty/test: no non-test Go files in /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_no_go3953407421/gopath/src/empty/test [exit status 1] > stderr 'no non-test Go files in ' matched: m/empty/test: no non-test Go files in /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_no_go3953407421/gopath/src/empty/test > ! go build ./empty/xtest [stderr] m/empty/xtest: no non-test Go files in /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_no_go3953407421/gopath/src/empty/xtest [exit status 1] > stderr 'no non-test Go files in ' matched: m/empty/xtest: no non-test Go files in /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_no_go3953407421/gopath/src/empty/xtest > ! go build ./empty/testxtest [stderr] m/empty/testxtest: no non-test Go files in /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_no_go3953407421/gopath/src/empty/testxtest [exit status 1] > stderr 'no non-test Go files in ' matched: m/empty/testxtest: no non-test Go files in /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_no_go3953407421/gopath/src/empty/testxtest > ! go build ./exclude [stderr] package m/exclude: build constraints exclude all Go files in /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_no_go3953407421/gopath/src/exclude [exit status 1] > stderr 'build constraints exclude all Go files in ' matched: package m/exclude: build constraints exclude all Go files in /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_no_go3953407421/gopath/src/exclude > ! go build ./exclude/ignore [stderr] no Go files in /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_no_go3953407421/gopath/src/exclude/ignore [exit status 1] > stderr 'no Go files in ' matched: no Go files in /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_no_go3953407421/gopath/src/exclude/ignore > ! go build ./exclude/empty [stderr] no Go files in /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_no_go3953407421/gopath/src/exclude/empty [exit status 1] > stderr 'no Go files in ' matched: no Go files in /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_no_go3953407421/gopath/src/exclude/empty script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/install_cmd_gobin (0.86s) script_test.go:136: 2024-03-19T19:06:19Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/install_cmd_gobin2660165141 script_test.go:160: # Check that commands in cmd are install to $GOROOT/bin, not $GOBIN. # Verifies golang.org/issue/32674. (0.452s) # Check that tools are installed to $GOTOOLDIR, not $GOBIN. (0.403s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_pgo_auto_multi (2.30s) script_test.go:136: 2024-03-19T19:06:18Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_pgo_auto_multi3089131040 script_test.go:160: # Test go build -pgo=auto flag with multiple main packages. (0.420s) # a/default.pgo applies to package a and (transitive) # dependencies. (0.029s) # b/default.pgo applies to package b and (transitive) # dependencies. (0.031s) # nopgo should be built without PGO. (0.007s) # Dependencies should also be built without PGO. # Here we want to match a compile action without -pgoprofile, # by matching 3 occurrences of "compile dep.go", among which # 2 of them have -pgoprofile (therefore one without). (0.088s) # check that pgo appears or not in build info as expected (0.001s) # go test works the same way (1.366s) # test-only dependencies also have profiles attached (0.170s) # go list -deps prints packages built multiple times. (0.172s) # Here we have 3 main packages, a, b, and nopgo, where a and b each has # its own default.pgo profile, and nopgo has none. # All 3 main packages import dep and dep2, both of which then import dep3 # (a diamond-shape import graph). script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_issue_65528 (0.39s) script_test.go:136: 2024-03-19T19:06:20Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_issue_65528396625376 script_test.go:160: > go build script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_n_cgo (0.74s) script_test.go:136: 2024-03-19T19:06:20Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_n_cgo3709910787 script_test.go:160: > [!cgo] skip [condition not met] # Test that nothing is prepended to $WORK path prefix. # See issue golang.org/issue/37012. (0.740s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/gopath_vendor_dup_err (0.20s) script_test.go:136: 2024-03-19T19:06:20Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/gopath_vendor_dup_err1589040788 script_test.go:160: > env GO111MODULE=off # Issue 17119: Test more duplicate load errors. (0.182s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_link_x_import_path_escape (0.69s) script_test.go:136: 2024-03-19T19:06:20Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_link_x_import_path_escape2666546848 script_test.go:160: > [compiler:gccgo] skip 'gccgo does not support -ldflags -X' [condition not met] > go build -o linkx$GOEXE -ldflags -X=my.pkg.Text=linkXworked my.pkg/main > exec ./linkx$GOEXE [stderr] linkXworked > stderr '^linkXworked$' matched: linkXworked script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/gopath_paths (0.20s) script_test.go:136: 2024-03-19T19:06:21Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/gopath_paths4239530504 script_test.go:160: # Regression test for GOPATH validation in GOPATH mode. (0.000s) # The literal path '.' in GOPATH should be rejected. (0.035s) # It should still be rejected if the requested package can be # found using another entry. (0.043s) # GOPATH cannot be a relative subdirectory of the working directory. (0.045s) # Blank paths in GOPATH should be rejected as relative (issue 21928). (0.068s) stop script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/install_rebuild_removed (2.85s) script_test.go:136: 2024-03-19T19:06:18Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/install_rebuild_removed3353332267 script_test.go:160: > env GO111MODULE=off # go command should detect package staleness as source file set changes (0.251s) # z.go was not compiled; removing it should NOT make mypkg stale (0.167s) # y.go was compiled; removing it should make mypkg stale (0.116s) # go command should detect executable staleness too (2.296s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/gotoolchain_modcmds (0.76s) script_test.go:136: 2024-03-19T19:06:20Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/gotoolchain_modcmds2518092219 script_test.go:160: > env TESTGO_VERSION=go1.21.0 > env TESTGO_VERSION_SWITCH=switch # If the main module's go.mod file lists a version lower than the version # required by its dependencies, the commands that fetch and diagnose the module # graph (such as 'go mod graph' and 'go mod verify') should fail explicitly: # they can't interpret the graph themselves, and they aren't allowed to update # the go.mod file to record a specific, stable toolchain version that can. (0.120s) # TODO(#64008): 'go mod download' without arguments should fail too. # 'go get' should update the main module's go.mod file to a version compatible with the # go version required for rsc.io/future, not fail. (0.235s) # Now, the various 'go mod' subcommands should succeed. (0.357s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_multi_main (2.30s) script_test.go:136: 2024-03-19T19:06:20Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_multi_main3057761427 script_test.go:160: # Verify build -o can output multiple executables to a directory. (1.047s) # Verify build -o output correctly local packages (1.233s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/go_version (0.07s) script_test.go:136: 2024-03-19T19:06:22Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/go_version289809944 script_test.go:160: # test that go version doesn't panic on non-go binaries # See Issue #49181 (0.061s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/import_ignore (0.04s) script_test.go:136: 2024-03-19T19:06:22Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/import_ignore798351608 script_test.go:160: > cp go.mod go.mod.orig > go mod tidy [stderr] go: warning: "all" matched no packages > cmp go.mod go.mod.orig script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/import_cycle (0.10s) script_test.go:136: 2024-03-19T19:06:22Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/import_cycle4131232082 script_test.go:160: > env GO111MODULE=off > ! go build selfimport [stderr] package selfimport imports selfimport: import cycle not allowed [exit status 1] > stderr -count=1 'import cycle not allowed' # 'go list' shouldn't hang forever. (0.069s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_env_term (1.60s) script_test.go:136: 2024-03-19T19:06:21Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_env_term1515983037 script_test.go:160: # Tests golang.org/issue/12096 (1.577s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/gopath_std_vendor (2.42s) script_test.go:136: 2024-03-19T19:06:20Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/gopath_std_vendor996336472 script_test.go:160: > env GO111MODULE=off > [!compiler:gc] skip [condition not met] > go list -f '{{.Dir}}' vendor/golang.org/x/net/http2/hpack [stdout] /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/gopath_std_vendor996336472/gopath/src/vendor/golang.org/x/net/http2/hpack > stdout $GOPATH[/\\]src[/\\]vendor matched: /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/gopath_std_vendor996336472/gopath/src/vendor/golang.org/x/net/http2/hpack # A package importing 'net/http' should resolve its dependencies # to the package 'vendor/golang.org/x/net/http2/hpack' within GOROOT. (1.023s) # In the presence of $GOPATH/src/vendor/golang.org/x/net/http2/hpack, # a package in GOPATH importing 'golang.org/x/net/http2/hpack' should # resolve its dependencies in GOPATH/src. (1.315s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_issue62156 (0.77s) script_test.go:136: 2024-03-19T19:06:22Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_issue621562088686010 script_test.go:160: # Regression test for https://go.dev/issue/62156: # DWARF generation for inlined functions may require more runtime type # descriptors to be written. (0.761s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/go_badcmd (0.04s) script_test.go:136: 2024-03-19T19:06:23Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/go_badcmd1242940307 script_test.go:160: > ! go asdf [stderr] go asdf: unknown command Run 'go help' for usage. [exit status 2] > stderr '^go asdf: unknown command' matched: go asdf: unknown command script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/help (0.69s) script_test.go:136: 2024-03-19T19:06:23Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/help2810777495 script_test.go:160: > env GO111MODULE=off # go help shows overview. (0.053s) # go help bug shows usage for bug (0.067s) # go bug help is an error (bug takes no arguments) (0.105s) # go help mod shows mod subcommands (0.061s) # go help mod tidy explains tidy (0.064s) # go mod help tidy does too (0.059s) # go mod --help doesn't print help but at least suggests it. (0.051s) # Earlier versions of Go printed the same as 'go -h' here. # Also make sure we print the short help line. (0.124s) # Earlier versions of Go printed a large document here, instead of these two # lines. (0.043s) # go help get shows usage for get (0.061s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/get_insecure_no_longer_supported (0.09s) script_test.go:136: 2024-03-19T19:06:23Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/get_insecure_no_longer_supported542613211 script_test.go:160: # GOPATH: Set up (0.000s) # GOPATH: Fetch with insecure, should error (0.054s) # Modules: Set up (0.000s) # Modules: Fetch with insecure, should error (0.029s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/fsys_walk (0.37s) script_test.go:136: 2024-03-19T19:06:23Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/fsys_walk3371016468 script_test.go:160: # Test that go list prefix... does not read directories not beginning with prefix. (0.366s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/gccgo_mangle (0.13s) script_test.go:136: 2024-03-19T19:06:24Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/gccgo_mangle1785969566 script_test.go:160: # Issue 33871. (0.126s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/govcs (1.08s) script_test.go:136: 2024-03-19T19:06:23Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/govcs1552861645 script_test.go:160: > env GO111MODULE=on > env proxy=$GOPROXY > env GOPROXY=direct # GOVCS stops go get (0.094s) # public pattern works (0.037s) # private pattern works (0.098s) # other patterns work (for more patterns, see TestGOVCS) (0.147s) # bad patterns are reported (for more bad patterns, see TestGOVCSErrors) (0.118s) # bad GOVCS patterns do not stop commands that do not need to check VCS (0.332s) # svn is disallowed by default (0.046s) # fossil is disallowed by default (0.049s) # bzr is disallowed by default (0.038s) # git is OK by default (0.000s) # hg is OK by default (0.000s) # git can be disallowed (0.039s) # hg can be disallowed (0.046s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/fmt_load_errors (0.20s) script_test.go:136: 2024-03-19T19:06:24Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/fmt_load_errors1300188606 script_test.go:160: > env GO111MODULE=off > ! go fmt does-not-exist [stderr] cannot find package "does-not-exist" in any of: /tmp/workdir/go/src/does-not-exist (from $GOROOT) /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/fmt_load_errors1300188606/gopath/src/does-not-exist (from $GOPATH) [exit status 1] > go fmt -n exclude [stdout] /tmp/workdir/go/bin/gofmt -l -w exclude/x.go exclude/x_linux.go > stdout 'exclude[/\\]x\.go' matched: /tmp/workdir/go/bin/gofmt -l -w exclude/x.go exclude/x_linux.go > stdout 'exclude[/\\]x_linux\.go' matched: /tmp/workdir/go/bin/gofmt -l -w exclude/x.go exclude/x_linux.go # Test edge cases with gofmt. (0.121s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/fileline (0.20s) script_test.go:136: 2024-03-19T19:06:24Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/fileline592336384 script_test.go:160: > env GO111MODULE=off # look for short, relative file:line in error message (0.190s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_issue59571 (0.36s) script_test.go:136: 2024-03-19T19:06:24Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_issue595711695097056 script_test.go:160: # Regression test for https://go.dev/issue/59571 # Build should be reproducible, even with aliased generic types. (0.345s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_internal (0.40s) script_test.go:136: 2024-03-19T19:06:24Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_internal360153866 script_test.go:160: # Test internal package errors are handled (0.043s) # Test internal cache (0.140s) # Test internal packages outside GOROOT are respected (0.204s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_import_cycle (0.09s) script_test.go:136: 2024-03-19T19:06:25Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_import_cycle3552413088 script_test.go:160: # mod_import_cycle covers this error in module mode. (0.084s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/goline_order (1.13s) script_test.go:136: 2024-03-19T19:06:24Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/goline_order1828545651 script_test.go:160: # Check that go lines are always >= go lines of dependencies. # Using too old a release cannot even complete module load. (0.001s) # If the offending module is not imported, it's not detected. (0.045s) # Adding the import produces the error. # Maybe this should auto-switch, but it requires more plumbing to get this error through, # and it's a misconfigured system that should not arise in practice, so not switching is fine. (0.049s) # go get go@1.21.2 fixes the error. (0.189s) # go get -tags usem1 fixes the error. (0.209s) # go get fixes the error. (0.230s) # Using a new enough release reports the error after module load and suggests 'go mod tidy' (0.141s) # go get also works (0.256s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_ignore_leading_bom (0.14s) script_test.go:136: 2024-03-19T19:06:25Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_ignore_leading_bom1218462371 script_test.go:160: # Per https://golang.org/ref/spec#Source_code_representation: # a compiler may ignore a UTF-8-encoded byte order mark (U+FEFF) # if it is the first Unicode code point in the source text. (0.137s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_import_comment (0.75s) script_test.go:136: 2024-03-19T19:06:25Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_import_comment1979030918 script_test.go:160: # Test in GOPATH mode first. (0.002s) # Import comment matches (0.099s) # Import comment mismatch (0.060s) # Import comment syntax error (0.051s) # Import comment conflict (0.062s) # Test in module mode. # We ignore import comments, so these commands should succeed. (0.000s) # Import comment matches (0.090s) # Import comment mismatch (0.132s) # Import comment syntax error (0.161s) # Import comment conflict (0.086s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_gopath_order (0.40s) script_test.go:136: 2024-03-19T19:06:25Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_gopath_order1468684082 script_test.go:160: # golang.org/issue/14176#issuecomment-179895769 # golang.org/issue/14192 # -I arguments to compiler could end up not in GOPATH order, # leading to unexpected import resolution in the compiler. (0.199s) # add in baz.a to the mix (0.171s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/env_cache (0.45s) script_test.go:136: 2024-03-19T19:06:26Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/env_cache618793444 script_test.go:160: # go env should caches compiler results (0.440s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_gcflags_order (0.66s) script_test.go:136: 2024-03-19T19:06:25Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_gcflags_order2518701383 script_test.go:160: # Tests golang.org/issue/47682 # Flags specified with -gcflags should appear after other flags generated by cmd/go. (0.662s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/generate_bad_imports (0.05s) script_test.go:136: 2024-03-19T19:06:26Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/generate_bad_imports3342334149 script_test.go:160: > [GOOS:windows] skip # skip because windows has no echo command [condition not met] > go generate gencycle [stdout] hello world > stdout 'hello world' # check go generate gencycle ran the generator matched: hello world script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_toolchain_slash (0.07s) script_test.go:136: 2024-03-19T19:06:26Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_toolchain_slash2647486098 script_test.go:160: > [!exec:/bin/sh] skip [condition not met] > chmod 0777 go1.999999-/run.sh > chmod 0777 run.sh > ! go list all [stderr] go: invalid toolchain "go1.999999-/run.sh" in go.mod [exit status 1] > ! stdout 'RAN SCRIPT' > cd subdir > ! go list all [stderr] go: invalid toolchain "go1.999999-/../../run.sh" in go.mod [exit status 1] > ! stdout 'RAN SCRIPT' script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_exe (0.15s) script_test.go:136: 2024-03-19T19:06:26Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_exe3338030527 script_test.go:160: # go build with -o and -buildmode=exe should report an error on a non-main package. (0.145s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_promote_implicit (0.22s) script_test.go:136: 2024-03-19T19:06:26Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_promote_implicit1220365393 script_test.go:160: > cp go.mod.orig go.mod # If we list a package in an implicit dependency imported from the main module, # we should get an error because the dependency should have an explicit # requirement. (0.080s) # We can promote the implicit requirement by getting the importing package. # NOTE: the hint recommends getting the imported package (tested below) since # it's more obvious and doesn't require -d. However, that adds an '// indirect' # comment on the requirement. (0.039s) # We can also promote implicit requirements using 'go get' on them, or their # packages. This gives us "// indirect" requirements, since 'go get' doesn't # know they're needed by the main module. See #43131 for the rationale. # The hint above recommends this because it's more obvious usage and doesn't # require the -d flag. (0.091s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_prefer_incompatible (0.17s) script_test.go:136: 2024-03-19T19:06:26Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_prefer_incompatible1895110298 script_test.go:160: # Verifies golang.org/issue/37574. # If we are already using an +incompatible version, we shouldn't look up # a lower compatible version when upgrading. (0.154s) # TODO(golang.org/issue/31580): the 'go get' command above should not change # go.sum. However, as part of the query above, we download example.com@v1.0.0, # an unrelated module, since it's a possible prefix. The sum for that module # should not be written to go.sum. script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/generate_env (0.81s) script_test.go:136: 2024-03-19T19:06:26Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/generate_env1247107329 script_test.go:160: # Install an env command because Windows and plan9 don't have it. (0.732s) # Test generators have access to the environment (0.070s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_concurrent_backend (0.35s) script_test.go:136: 2024-03-19T19:06:26Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_concurrent_backend1711420972 script_test.go:160: # Tests golang.org/issue/48490 # cmd/go should enable concurrent compilation by default # Reset all experiments, since one of them can disable # concurrent compilation, e.g: fieldtrack. (0.346s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_dash_n_cgo (0.51s) script_test.go:136: 2024-03-19T19:06:26Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_dash_n_cgo2029555425 script_test.go:160: # Tests golang.org/issue/14944 (0.512s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/gotoolchain_local (6.16s) script_test.go:136: 2024-03-19T19:06:21Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/gotoolchain_local3470117854 script_test.go:160: # This test uses the fake toolchain switch support in cmd/go/internal/toolchain.Switch # to exercise all the version selection logic without needing actual toolchains. # See gotoolchain_net.txt and gotoolchain_path.txt for tests of network and PATH toolchains. (0.000s) # GOTOOLCHAIN=auto runs default toolchain without a go.mod or go.work (0.044s) # GOTOOLCHAIN=path runs default toolchain without a go.mod or go.work (0.238s) # GOTOOLCHAIN=asdf is a syntax error (0.070s) # GOTOOLCHAIN=version is used directly. (0.143s) # GOTOOLCHAIN=version+auto sets a minimum. (0.441s) # GOTOOLCHAIN=version+path sets a minimum too. (0.199s) # Create a go.mod file and test interactions with auto and path. # GOTOOLCHAIN=auto uses go line if newer than local toolchain. (0.932s) # GOTOOLCHAIN=path does the same. (0.741s) # GOTOOLCHAIN=min+auto with toolchain default uses min, not local (0.253s) # GOTOOLCHAIN names can have -suffix (0.273s) # go.work takes priority over go.mod (0.435s) # go.work misconfiguration does not break go work edit # ('go 1.600 / toolchain local' forces use of 1.500 which can't normally load that go.work; allow work edit to fix it.) (0.187s) # go.mod misconfiguration does not break go mod edit (0.234s) # toolchain built with a custom version should know how it compares to others (0.952s) # go install m@v and go run m@v should ignore go.mod and use m@v (0.264s) # go install should handle unknown flags to find m@v (0.200s) # go run cannot handle unknown boolean flags (0.127s) # go run can handle unknown flag with argument. (0.082s) # go install m@v should handle queries (0.145s) # go run m@v should handle queries (0.081s) # go install m@v should use local toolchain if not upgrading (0.058s) # go run m@v should use local toolchain if not upgrading (0.048s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_cwd_newline (0.92s) script_test.go:136: 2024-03-19T19:06:26Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_cwd_newline4029223381 script_test.go:160: > [GOOS:windows] skip 'filesystem normalizes / to \' [condition not met] > [GOOS:plan9] skip 'filesystem disallows \n in paths' [condition not met] # If the directory path containing a package to be built includes a newline, # the go command should refuse to even try to build the package. (0.577s) # The cgo tool should only accept the source file if the working directory # is not written in line directives in the resulting files. (0.334s) # Since we do preserve $PWD (or set it appropriately) for commands, and we do # not resolve symlinks unnecessarily, referring to the contents of the unsafe # directory via a safe symlink should be ok, and should not inject the data from # the symlink target path. (0.000s) stop: links and runs binaries script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_insecure_redirect (0.05s) script_test.go:136: 2024-03-19T19:06:27Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_insecure_redirect2377675734 script_test.go:160: # golang.org/issue/29591: 'go get' was following plain-HTTP redirects even without -insecure (now replaced by GOINSECURE). # golang.org/issue/61877: 'go get' would panic in case of an insecure redirect in module mode (0.049s) stop: builds a git repo script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/ldflag (11.01s) script_test.go:136: 2024-03-19T19:06:17Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/ldflag1055377455 script_test.go:160: # Issue #42565 (0.000s) # We can't build package bad, which uses #cgo LDFLAGS. (0.641s) # We can build package ok with the same flags in CGO_LDFLAGS. (7.022s) # Build a main program that actually uses LDFLAGS. (3.339s) # Because we passed -v the Go linker should print the external linker # command which should include the flag we passed in CGO_LDFLAGS. (0.000s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_incompatible (0.40s) script_test.go:136: 2024-03-19T19:06:27Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_incompatible2306679857 script_test.go:160: > env GO111MODULE=on > go get x [stderr] go: downloading rsc.io/breaker v2.0.0+incompatible go: added rsc.io/breaker v2.0.0+incompatible > go list -m all [stdout] x rsc.io/breaker v2.0.0+incompatible > stdout 'rsc.io/breaker v2.0.0\+incompatible' matched: rsc.io/breaker v2.0.0+incompatible > cp go.mod2 go.mod > go get rsc.io/breaker@7307b30 [stderr] go: upgraded rsc.io/breaker v1.0.0 => v2.0.0+incompatible > go list -m all [stdout] x rsc.io/breaker v2.0.0+incompatible > stdout 'rsc.io/breaker v2.0.0\+incompatible' matched: rsc.io/breaker v2.0.0+incompatible > go get rsc.io/breaker@v2.0.0 > go list -m all [stdout] x rsc.io/breaker v2.0.0+incompatible > stdout 'rsc.io/breaker v2.0.0\+incompatible' matched: rsc.io/breaker v2.0.0+incompatible script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_future (0.09s) script_test.go:136: 2024-03-19T19:06:28Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_future187432650 script_test.go:160: > env TESTGO_VERSION=go1.21 > env GOTOOLCHAIN=local > ! go mod download rsc.io/future@v1.0.0 [stderr] go: rsc.io/future@v1.0.0 requires go >= 1.999 (running go 1.21; GOTOOLCHAIN=local) [exit status 1] > stderr '^go: rsc.io/future@v1.0.0 requires go >= 1.999 \(running go 1.21; GOTOOLCHAIN=local\)$' matched: go: rsc.io/future@v1.0.0 requires go >= 1.999 (running go 1.21; GOTOOLCHAIN=local) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_cache_disabled (0.99s) script_test.go:136: 2024-03-19T19:06:27Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_cache_disabled393428961 script_test.go:160: # The build cache is required to build anything. It also may be needed to # initialize the build system, which is needed for commands like 'go env'. # However, there are lots of commands the cache is not needed for, and we # shouldn't require it when it won't be used. # # TODO(golang.org/issue/39882): commands below should work, too. # * go clean -modcache # * go env # * go fix # * go fmt # * go generate # * go get # * go list (without -export or -compiled) (0.000s) # Commands that don't completely load packages should work. (0.240s) # Module commands that don't load packages should work. (0.238s) # Commands that load but don't build packages should work. (0.492s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_pkgtags (1.08s) script_test.go:136: 2024-03-19T19:06:27Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_pkgtags963371803 script_test.go:160: # https://golang.org/issue/44106 # 'go get' should fetch the transitive dependencies of packages regardless of # tags, but shouldn't error out if the package is missing tag-guarded # dependencies. # Control case: just adding the top-level module to the go.mod file does not # fetch its dependencies. (0.087s) # 'go get' makes a best effort to fetch those dependencies, but shouldn't # error out if dependencies of tag-guarded files are missing. (0.533s) # https://golang.org/issue/33526: 'go get' without '-d' should succeed # for a module whose root is a constrained-out package. # # Ideally it should silently succeed, but today it logs the "no Go source files" # error and succeeds anyway. (0.103s) # https://golang.org/issue/29268 # 'go get' should fetch modules whose roots contain test-only packages, but # without the -t flag shouldn't error out if the test has missing dependencies. (0.068s) # With the -t flag, the test dependencies must resolve successfully. (0.068s) # 'go get' should succeed for a module path that does not contain a package, # but fail for a non-package subdirectory of a module. (0.149s) # Getting the subdirectory should continue to fail even if the corresponding # module is already present in the build list. (0.057s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_go_file (0.49s) script_test.go:136: 2024-03-19T19:06:28Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_go_file897285239 script_test.go:160: # Tests Issue #38478 # Tests that go get in GOMOD mode returns a specific error if the argument # ends with '.go', has no version, and either has no slash or refers to an # existing file. (0.000s) # argument doesn't have .go suffix and has no version (0.060s) # argument has .go suffix and has version (0.073s) # argument has .go suffix, is a file and exists (0.049s) # argument has .go suffix, doesn't exist and has no slashes (0.038s) # argument has .go suffix, is a file and exists in sub-directory (0.045s) # argument has .go suffix, doesn't exist and has slashes (0.051s) # argument has .go suffix, is a symlink and exists (0.033s) # argument has .go suffix, is a symlink and exists in sub-directory (0.045s) # argument has .go suffix, is a directory and exists (0.042s) # argument has .go suffix, is a directory and exists in sub-directory (0.045s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_extra (0.36s) script_test.go:136: 2024-03-19T19:06:28Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_extra3043928293 script_test.go:160: > cp go.mod go.mod.orig # The -u flag should not (even temporarily) upgrade modules whose versions are # determined by explicit queries to any version other than the explicit one. # Otherwise, 'go get -u' could introduce spurious dependencies. (0.145s) # TODO(bcmills): This property does not yet hold for modules added for # missing packages when the newly-added module matches a wildcard. (0.204s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_errors (0.24s) script_test.go:136: 2024-03-19T19:06:28Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_errors4177326196 script_test.go:160: > cp go.mod go.mod.orig # 'go get' should fail, without updating go.mod, if the transitive dependencies # of the requested package (by default, the package in the current directory) # cannot be resolved. (0.106s) # A syntax error in a dependency prevents the compiler from needing that # dependency's imports, so 'go get' should not report an error when those # imports cannot be resolved: it has all of the dependencies that the compiler # needs, and the user did not request to run the compiler. (0.108s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_downup_pseudo_artifact (0.24s) script_test.go:136: 2024-03-19T19:06:28Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_downup_pseudo_artifact3989607925 script_test.go:160: # This test illustrates a case where an upgrade–downgrade–upgrade cycle could # add extraneous dependencies due to another module depending on an # otherwise-unlisted version (such as a pseudo-version). # # This case corresponds to the "downhiddenartifact" test in the mvs package. # The initial package import graph used in the test looks like: # # a --- b # \ \ # \ \ # c --- d # # The module dependency graph initially looks like: # # a --- b.3 # \ \ # \ \ # c.2 --- d.2 # # c.1 --- b.2 (pseudo) # # b.1 --- e.1 (0.049s) # When we downgrade d.2 to d.1, no dependency on e should be added # because nothing else in the module or import graph requires it. (0.176s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_downup_artifact (0.30s) script_test.go:136: 2024-03-19T19:06:28Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_downup_artifact223004435 script_test.go:160: # This test illustrates a case where an upgrade–downgrade–upgrade cycle can # result in upgrades of otherwise-irrelevant dependencies. # # This case has no corresponding test in the mvs package, because it is an # artifact that results from the composition of *multiple* MVS operations. # The initial package import graph used in the test looks like: # # m ---- a # | | # +----- b # | | # +----- c # | # +----- d # # b version 2 adds its own import of package d. # # The module dependency graph initially looks like: # # m ---- a.1 # | | # +----- b.1 # | | # +----- c.1 # | # +----- d.1 # # b.2 ---- c.2 # | # +------ d.2 # | # +------ e.1 # # If we upgrade module b to version 2, we will upgrade c and d and add a new # dependency on e. If b version 2 is disallowed because of any of those # dependencies, the other dependencies should not be upgraded as a side-effect. (0.132s) # b is imported by a, so the -u flag would normally upgrade it to v0.2.0. # However, that would conflict with the explicit c@v0.1.0 constraint, # so b must remain at v0.1.0. # # If we're not careful, we might temporarily add b@v0.2.0 and pull in its # upgrades of module d and addition of module e, which are not relevant to # b@v0.1.0 and should not be added to the main module's dependencies. (0.156s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_downup_indirect (0.40s) script_test.go:136: 2024-03-19T19:06:28Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_downup_indirect3996955043 script_test.go:160: # This test illustrates a case where downgrading one module may upgrade another. # Compare to the downcross1 test case in cmd/go/internal/mvs/mvs_test.go. # The package import graph used in this test looks like: # # a ---- b # \ \ # \ \ # ----- c ---- d # # The module dependency graph originally looks like: # # a ---- b.2 # \ \ # \ \ # ----- c.1 ---- d.2 # # b.1 ---- c.2 # # If we downgrade module d to version 1, we must downgrade b as well. # If that downgrade selects b version 1, we will upgrade module c to version 2. (0.059s) # Downgrading d to version 1 downgrades b, which upgrades c. (0.121s) # Restoring c to version 1 upgrades d to meet c's requirements. (0.145s) # If a user explicitly requests the incompatible versions together, # 'go get' should explain why they are not compatible. (0.061s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_downup_indirect_pruned (0.46s) script_test.go:136: 2024-03-19T19:06:28Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_downup_indirect_pruned1203522541 script_test.go:160: # This test illustrates a case where downgrading one module may upgrade another. # This is the same as mod_get_downup_indirect, but using modules # with graph pruning enabled (go ≥ 1.17). # Compare to the downcross1 test case in cmd/go/internal/mvs/mvs_test.go. # The package import graph used in this test looks like: # # a ---- b # \ \ # \ \ # ----- c ---- d # # The module dependency graph originally looks like: # # a ---- b.2 # \ \ # \ \ # ----- c.1 ---- d.2 # # b.1 ---- c.2 # # If we downgrade module d to version 1, we must downgrade b as well. # If that downgrade selects b version 1, we will upgrade module c to version 2. (0.083s) # Downgrading d to version 1 downgrades b, which upgrades c. (0.154s) # Restoring c to version 1 upgrades d to meet c's requirements. (0.132s) # If a user explicitly requests the incompatible versions together, # 'go get' should explain why they are not compatible. (0.068s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_issue37438 (0.06s) script_test.go:136: 2024-03-19T19:06:29Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_issue37438421875247 script_test.go:160: # Regression test for https://golang.org/issue/37438. # # If a path exists at the requested version, but does not exist at the # version of the module that is already required and does not exist at # the version that would be selected by 'go mod tidy', then # 'go get foo@requested' should resolve the requested version, # not error out on the (unrelated) latest one. (0.055s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_cd_gopath_different (1.89s) script_test.go:136: 2024-03-19T19:06:27Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_cd_gopath_different3196417834 script_test.go:160: > [compiler:gccgo] skip 'gccgo does not support -ldflags -X' [condition not met] > env GO111MODULE=off > go build run_go.go # Apply identity function to GOPATH (0.864s) stop: rest of the tests only apply to Windows script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_patchcycle (0.10s) script_test.go:136: 2024-03-19T19:06:29Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_patchcycle2284359414 script_test.go:160: # If a patch of a module requires a higher version of itself, # it should be reported as its own conflict. # # This case is weird and unlikely to occur often at all, but it should not # spuriously succeed. # (It used to print v0.1.1 but then silently upgrade to v0.2.0.) (0.084s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_downgrade_missing (0.58s) script_test.go:136: 2024-03-19T19:06:28Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_downgrade_missing1832795684 script_test.go:160: > cp go.mod go.mod.orig # getting a specific version of a module along with a pattern # not yet present in that module should report the version mismatch # rather than a "matched no packages" warning. (0.138s) # A wildcard pattern should match the pattern with that path. (0.151s) # If we need to resolve a transitive dependency of a package, # and another argument constrains away the version that provides that # package, then 'go get' should fail with a useful error message. (0.247s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/cgo_path (16.33s) script_test.go:136: 2024-03-19T19:06:13Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/cgo_path3454622356 script_test.go:160: > [!cgo] skip [condition not met] # Require that CC is something that requires a PATH lookup. # Normally, the default is gcc or clang, but if CC was set during make.bash, # that becomes the default. (16.117s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_patchbound (0.21s) script_test.go:136: 2024-03-19T19:06:29Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_patchbound2302751199 script_test.go:160: # -u=patch will patch dependencies as far as possible, but not so far that they # conflict with other command-line arguments. (0.190s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/badgo (0.45s) script_test.go:136: 2024-03-19T19:06:29Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/badgo365184724 script_test.go:160: > go get example.net/badgo@v1.0.0 [stderr] go: added example.net/badgo v1.0.0 > go get example.net/badgo@v1.1.0 [stderr] go: upgraded example.net/badgo v1.0.0 => v1.1.0 > go get example.net/badgo@v1.2.0 [stderr] go: upgraded example.net/badgo v1.1.0 => v1.2.0 > go get example.net/badgo@v1.3.0 [stderr] go: upgraded example.net/badgo v1.2.0 => v1.3.0 > go get example.net/badgo@v1.4.0 [stderr] go: upgraded example.net/badgo v1.3.0 => v1.4.0 > go get example.net/badgo@v1.5.0 [stderr] go: upgraded example.net/badgo v1.4.0 => v1.5.0 > ! go get example.net/badgo@v1.6.0 [stderr] go: example.net/badgo@v1.6.0 requires example.net/badgo@v1.6.0: module ./v1.6.0: parsing v1.6.0/go.mod: /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/badgo365184724/gopath/src/v1.6.0/go.mod:2: invalid go version 'X.Y': must match format 1.23.0 [exit status 1] > stderr 'invalid go version .X.Y.: must match format 1.23' matched: go: example.net/badgo@v1.6.0 requires example.net/badgo@v1.6.0: module ./v1.6.0: parsing v1.6.0/go.mod: /tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/badgo365184724/gopath/src/v1.6.0/go.mod:2: invalid go version 'X.Y': must match format 1.23.0 script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_patchmod (0.76s) script_test.go:136: 2024-03-19T19:06:29Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_patchmod736109719 script_test.go:160: # example.net/pkgremoved@v0.1.0 refers to a package. (0.136s) # When we resolve a new dependency on example.net/other, # it will change the meaning of the path "example.net/pkgremoved" # from a package (at v0.1.0) to only a module (at v0.2.0). # # If we simultaneously 'get' that module at the query "patch", the module should # be constrained to the latest patch of its originally-selected version (v0.1.0), # not upgraded to the latest patch of the new transitive dependency. (0.057s) # However, we should be able to patch from a package to a module and vice-versa. # Package to module ... (0.237s) # ... and module to package. (0.310s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_nopkgs (0.69s) script_test.go:136: 2024-03-19T19:06:29Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_nopkgs1648801623 script_test.go:160: > cd subdir # 'go get' on empty patterns that are necessarily local to the module # should warn that the patterns are empty, exactly once. (0.098s) # 'go get' on patterns that could conceivably match nested modules # should report a module resolution error. (0.506s) # It doesn't make sense to 'go get' a path in the standard library, # since the standard library necessarily can't have unresolved imports. # # TODO(#30241): Maybe that won't always be the case? # # For that case, we emit a "malformed module path" error message, # which isn't ideal either. (0.084s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_none (0.57s) script_test.go:136: 2024-03-19T19:06:29Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_none4842045 script_test.go:160: > env GO111MODULE=on > go mod init example.com/foo [stderr] go: creating new go.mod: module example.com/foo # 'go get bar@none' should be a no-op if module bar is not active. (0.406s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_tidy_old (0.49s) script_test.go:136: 2024-03-19T19:06:29Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_tidy_old205147132 script_test.go:160: # 'go mod tidy' should remove content sums for module versions that aren't # in the build list. It should preserve go.mod sums for module versions that # are in the module graph though. # Verifies golang.org/issue/33008. (0.442s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_patch (1.06s) script_test.go:136: 2024-03-19T19:06:29Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_patch2588613892 script_test.go:160: # This test examines the behavior of 'go get …@patch' # See also mod_upgrade_patch.txt (focused on "-u=patch" specifically) # and mod_get_patchmod.txt (focused on module/package ambiguities). (0.003s) # example.net/b@patch refers to the patch for the version of b that was selected # at the start of 'go get', not the version after applying other changes. (0.060s) # -u=patch changes the default version for other arguments to '@patch', # but they continue to be resolved against the originally-selected version, # not the updated one. # # TODO(#42360): Reconsider the change in defaults. (0.069s) # -u=patch refers to the patches for the selected versions of dependencies *after* # applying other version changes, not the versions that were selected at the start. # However, it should not patch versions determined by explicit arguments. (0.291s) # "-u=patch all" should be equivalent to "all@patch", and should fail if the # patched versions result in a higher-than-patch upgrade. (0.316s) # On the other hand, "-u=patch ./..." should patch-upgrade dependencies until # they reach a fixed point, even if that results in higher-than-patch upgrades. (0.314s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/godebug_unknown (0.40s) script_test.go:136: 2024-03-19T19:06:30Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/godebug_unknown789518254 script_test.go:160: > ! go build [stderr] # m ./p.go:1:1: invalid //go:debug: unknown //go:debug setting "x" [exit status 1] > stderr 'p.go:1:1: invalid //go:debug: unknown //go:debug setting "x"' matched: ./p.go:1:1: invalid //go:debug: unknown //go:debug setting "x" script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_exec_toolchain (2.32s) script_test.go:136: 2024-03-19T19:06:28Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_exec_toolchain2535866447 script_test.go:160: > env TESTGO_VERSION=go1.21 > env TESTGO_VERSION_SWITCH=switch # GOTOOLCHAIN=auto should run the newer toolchain (0.183s) # GOTOOLCHAIN=min+auto should run the newer toolchain (0.194s) # GOTOOLCHAIN=go1.21 should NOT run the newer toolchain (0.067s) # GOTOOLCHAIN=local should NOT run the newer toolchain (0.085s) # go get go@1.22 should resolve to the latest 1.22 (0.219s) # go get go@1.22rc1 should use 1.22rc1 exactly, not a later release. (0.240s) # go get go@1.22.1 should use 1.22.1 exactly, not a later release. (0.230s) # go get needgo122 (says 'go 1.22') should use 1.22.0, the earliest release we have available # (ignoring prereleases). (0.312s) # go get needgo1223 (says 'go 1.22.3') should use go 1.22.3 (0.351s) # go get needgo124 (says 'go 1.24') should use go 1.24rc1, the only version available (0.270s) # The -C flag should not happen more than once due to switching. (0.112s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_tidy_duplicates (0.36s) script_test.go:136: 2024-03-19T19:06:30Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_tidy_duplicates926749370 script_test.go:160: > env GO111MODULE=on # Regression test for golang.org/issue/28456: # 'go mod tidy' should not leave duplicate lines when re-writing the file. (0.329s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_newcycle (0.56s) script_test.go:136: 2024-03-19T19:06:30Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_newcycle562020043 script_test.go:160: > env GO111MODULE=on # Download modules to avoid stderr chatter (0.547s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_tidy_newroot (0.10s) script_test.go:136: 2024-03-19T19:06:31Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_tidy_newroot2884618890 script_test.go:160: # https://golang.org/issue/45952: 'go mod tidy' in an eager module failed due # to an erroneous check on root completeness. # # Per the issue report: # > It may have to do with: # > # > package A imports package B in go.mod, which imports package C in its own go.mod # > package A drops direct dependency on package B … # # We infer from that that package C is still needed by some other indirect # dependency, and must be at a higher version than what is required by that # dependency (or else no new root would be needed). An additional package D # in its own module satisfies that condition, reproducing the bug. (0.093s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_tidy_lazy_self (0.15s) script_test.go:136: 2024-03-19T19:06:31Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_tidy_lazy_self2811578142 script_test.go:160: # Regression test for https://golang.org/issue/46078: # 'go mod tidy' should not panic if the main module initially # requires an older version of itself. # A module may require an older version of itself without error. This is # inconsistent (the required version is never selected), but we still get # a reproducible build list. (0.050s) # 'go mod tidy' should fix this (and not crash). (0.077s) # We prune out redundant roots very early on in module loading, and at that # point the indirect requirement on example.net/x v0.1.0 appears to be # irrelevant. It should be pruned out; when the import of "example.net/x" is # later resolved, it should resolve at the latest version (v0.2.0), not the # version implied by the (former) misleading requirement on the older version of # the main module. (0.001s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_tidy_issue60313 (0.08s) script_test.go:136: 2024-03-19T19:06:31Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_tidy_issue603131965357996 script_test.go:160: # Regression test for https://go.dev/issue/60313: 'go mod tidy' did not preserve # dependencies needed to prevent 'ambiguous import' errors in external test # dependencies. (0.071s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_tidy_convergence (0.79s) script_test.go:136: 2024-03-19T19:06:31Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_tidy_convergence1462485677 script_test.go:160: # This test demonstrates a simple case in which 'go mod tidy' may resolve a # missing package, only to remove that package when resolving its dependencies. # # If we naively iterate 'go mod tidy' until the dependency graph converges, this # scenario may fail to converge. # The import graph used in this test looks like: # # m --- x # | # x_test --- y # # The module dependency graph of m is initially empty. # Modules x and y look like: # # x.1 (provides package x that imports y, but does not depend on module y) # # x.2-pre (no dependencies, but does not provide package x) # # y.1 (no dependencies, but provides package y) # # y.2 --- x.2-pre (provides package y) # # # When we resolve the missing import of y in x_test, we add y@latest — which is # y.2, not y.1 — as a new dependency. That upgrades to x to x.2-pre, which # removes package x (and also the need for module y). We can then safely remove # the dependency on module y, because nothing imports package y any more! # # We might be tempted to remove the dependency on module x for the same reason: # it no longer provides any imported package. However, that would cause 'go mod # tidy -e' to become unstable: with x.2-pre out of the way, we could once again # resolve the missing import of package x by re-adding x.1. (0.000s) # 'go mod tidy' without -e should fail without modifying go.mod, # because it cannot resolve x and y simultaneously. (0.082s) # 'go mod tidy -e' should follow upgrades to try to resolve the modules that it # can, and then stop. When we resolve example.net/y, we upgrade to example.net/x # to v0.2.0-pre. At that version, package x no longer exists and no longer # imports package y, so the import of x should be left unsatisfied and the # existing dependency on example.net/x removed. # # TODO(bcmills): It would be ever better if we could keep the original # dependency on example.net/x v0.1.0, but I don't see a way to do that without # making the algorithm way too complicated. (We would have to detect that the # new dependency on example.net/y interferes with the package that caused us to # to add that dependency in the first place, and back out that part of the change # without also backing out any other needed changes.) (0.057s) # Since we attempt to resolve the dependencies of package x whenever we add x itself, # this end state is stable. (0.075s) # An explicit 'go get' with the correct versions should allow 'go mod tidy' to # succeed and remain stable. y.1 does not upgrade x, and can therefore be used # with it. (0.155s) # The 'tidy' logic for a lazy main module is somewhat different from that for an # eager main module, but the overall behavior is the same. (0.404s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_toolchain (1.25s) script_test.go:136: 2024-03-19T19:06:31Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_toolchain272341717 script_test.go:160: > env TESTGO_VERSION=go1.100.0 > env TESTGO_VERSION_SWITCH=switch > go get toolchain@go1.22.1 [stderr] go: added toolchain go1.22.1 > stderr '^go: added toolchain go1.22.1$' matched: go: added toolchain go1.22.1 > ! stderr '(added|removed|upgraded|downgraded) go' > grep 'toolchain go1.22.1' go.mod matched: toolchain go1.22.1 > go get toolchain@none [stderr] go: removed toolchain go1.22.1 > stderr '^go: removed toolchain go1.22.1$' matched: go: removed toolchain go1.22.1 > ! stderr '(added|removed|upgraded|downgraded) go' > ! grep toolchain go.mod > go get toolchain@go1.22.1 [stderr] go: added toolchain go1.22.1 > stderr '^go: added toolchain go1.22.1$' matched: go: added toolchain go1.22.1 > ! stderr '(added|removed|upgraded|downgraded) go' > grep 'toolchain go1.22.1' go.mod matched: toolchain go1.22.1 > go get go@1.22.3 [stderr] go: upgraded go 1.10 => 1.22.3 note: expanded dependencies to upgrade to go 1.17 or higher; run 'go mod tidy' to clean up go: upgraded toolchain go1.22.1 => go1.100.0 > stderr '^go: upgraded go 1.10 => 1.22.3$' matched: go: upgraded go 1.10 => 1.22.3 > stderr '^go: upgraded toolchain go1.22.1 => go1.100.0$' matched: go: upgraded toolchain go1.22.1 => go1.100.0 > grep 'go 1.22.3' go.mod matched: go 1.22.3 > go get go@1.22.3 toolchain@1.22.3 [stderr] go: removed toolchain go1.100.0 > stderr '^go: removed toolchain go1.100.0$' matched: go: removed toolchain go1.100.0 > ! grep toolchain go.mod > go get go@1.22.1 toolchain@go1.22.3 [stderr] go: downgraded go 1.22.3 => 1.22.1 go: added toolchain go1.22.3 > stderr '^go: downgraded go 1.22.3 => 1.22.1$' matched: go: downgraded go 1.22.3 => 1.22.1 > stderr '^go: added toolchain go1.22.3$' matched: go: added toolchain go1.22.3 > grep 'go 1.22.1' go.mod matched: go 1.22.1 > grep 'toolchain go1.22.3' go.mod matched: toolchain go1.22.3 > go get go@1.22.3 toolchain@1.22.3 [stderr] go: upgraded go 1.22.1 => 1.22.3 go: removed toolchain go1.22.3 > stderr '^go: upgraded go 1.22.1 => 1.22.3$' matched: go: upgraded go 1.22.1 => 1.22.3 > stderr '^go: removed toolchain go1.22.3$' matched: go: removed toolchain go1.22.3 > grep 'go 1.22.3' go.mod matched: go 1.22.3 > ! grep toolchain go.mod > go get toolchain@1.22.1 [stderr] go: downgraded go 1.22.3 => 1.22.1 > stderr '^go: downgraded go 1.22.3 => 1.22.1$' matched: go: downgraded go 1.22.3 => 1.22.1 > ! stderr toolchain # already gone, was not added > grep 'go 1.22.1' go.mod matched: go 1.22.1 > ! grep toolchain go.mod > env TESTGO_VERSION=go1.22.1 > env GOTOOLCHAIN=local > ! go get go@1.22.3 [stderr] go: updating go.mod requires go >= 1.22.3 (running go 1.22.1; GOTOOLCHAIN=local) [exit status 1] > stderr 'go: updating go.mod requires go >= 1.22.3 \(running go 1.22.1; GOTOOLCHAIN=local\)$' matched: go: updating go.mod requires go >= 1.22.3 (running go 1.22.1; GOTOOLCHAIN=local) > env TESTGO_VERSION=go1.30 > go get toolchain@1.22.3 [stderr] go: added toolchain go1.22.3 > grep 'toolchain go1.22.3' go.mod matched: toolchain go1.22.3 > go get go@1.22.1 > grep 'go 1.22.1' go.mod matched: go 1.22.1 > go get m2@v1.0.0 [stderr] go: upgraded go 1.22.1 => 1.23 go: removed toolchain go1.22.3 go: added m2 v1.0.0 > stderr '^go: upgraded go 1.22.1 => 1.23$' matched: go: upgraded go 1.22.1 => 1.23 > stderr '^go: added m2 v1.0.0$' matched: go: added m2 v1.0.0 > grep 'go 1.23$' go.mod matched: go 1.23 > go get toolchain@go1.23.9 go@1.23.5 [stderr] go: upgraded go 1.23 => 1.23.5 go: added toolchain go1.23.9 > go get toolchain@none [stderr] go: removed toolchain go1.23.9 > stderr '^go: removed toolchain go1.23.9' matched: go: removed toolchain go1.23.9 > ! stderr ' go 1' > grep 'go 1.23.5' go.mod matched: go 1.23.5 script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_tidy_downgrade_ambiguous (0.58s) script_test.go:136: 2024-03-19T19:06:31Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_tidy_downgrade_ambiguous2944440530 script_test.go:160: # Verifies golang.org/issue/47738. # In this test, the user has rewritten their imports to use rsc.io/quote/v3, # but their go.mod still requires rsc.io/quote@v1.5.2, and they indirectly # require rsc.io/quote@v1.5.1 but don't import anything from it. (0.155s) # 'go mod tidy' should preserve the requirement on rsc.io/quote but mark it # indirect. This prevents a downgrade to v1.5.1, which could introduce # an ambiguity. (0.398s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_tidy_cycle (0.15s) script_test.go:136: 2024-03-19T19:06:32Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_tidy_cycle2840804228 script_test.go:160: # Regression test for https://golang.org/issue/34086: # 'go mod tidy' produced different go.mod file from other # subcommands when certain kinds of cycles were present # in the build graph. (0.077s) # If the go.mod file is already tidy, 'go mod graph' should not modify it. (0.065s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_tidy_error (0.10s) script_test.go:136: 2024-03-19T19:06:32Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_tidy_error1837252433 script_test.go:160: > env GO111MODULE=on # Regression test for golang.org/issue/27063: # 'go mod tidy' and 'go mod vendor' should not hide loading errors. (0.101s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_tidy_indirect (0.08s) script_test.go:136: 2024-03-19T19:06:32Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_tidy_indirect4284008944 script_test.go:160: > cp go.mod go.mod.orig > go mod tidy > cmp go.mod go.mod.orig script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_get_missing_ziphash (2.00s) script_test.go:136: 2024-03-19T19:06:30Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_get_missing_ziphash2498595608 script_test.go:160: # Test that if the module cache contains an extracted source directory but not # a ziphash, 'go build' complains about a missing sum, and 'go get' adds # the sum. Verifies #44749. # With a tidy go.sum, go build succeeds. This also populates the module cache. (0.621s) # Control case: if we delete the hash for rsc.io/quote v1.5.2, # 'go build' reports an error. 'go get' adds the sum. (0.557s) # If we delete the hash *and* the ziphash file, we should see the same behavior. (0.782s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_tidy_version_tooold (0.08s) script_test.go:136: 2024-03-19T19:06:32Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_tidy_version_tooold2587763240 script_test.go:160: > env TESTGO_VERSION=go1.22.0 > ! go mod tidy -go=1.21 [stderr] go: example.net/a@v0.1.0 requires go@1.22, but 1.21 is requested [exit status 1] > stderr '^go: example.net/a@v0.1.0 requires go@1.22, but 1.21 is requested$' matched: go: example.net/a@v0.1.0 requires go@1.22, but 1.21 is requested script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/run_internal (3.71s) script_test.go:136: 2024-03-19T19:06:29Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/run_internal1458421922 script_test.go:160: > env GO111MODULE=off > go list -e -f '{{.Incomplete}}' m/runbad1.go [stdout] true > stdout true matched: true > ! go run m/runbad1.go [stderr] package command-line-arguments m/runbad1.go:2:8: use of internal package m/x/internal not allowed [exit status 1] > stderr 'use of internal package m/x/internal not allowed' matched: m/runbad1.go:2:8: use of internal package m/x/internal not allowed > go list -e -f '{{.Incomplete}}' m/runbad2.go [stdout] true > stdout true matched: true > ! go run m/runbad2.go [stderr] package command-line-arguments m/runbad2.go:2:8: use of internal package m/x/internal/y not allowed [exit status 1] > stderr 'use of internal package m/x/internal/y not allowed' matched: m/runbad2.go:2:8: use of internal package m/x/internal/y not allowed > go list -e -f '{{.Incomplete}}' m/runok.go [stdout] false > stdout false matched: false > go run m/runok.go > cd m > env GO111MODULE=on > go list -e -f '{{.Incomplete}}' runbad1.go [stdout] true > stdout true matched: true > ! go run runbad1.go [stderr] package command-line-arguments runbad1.go:2:8: use of internal package m/x/internal not allowed [exit status 1] > stderr 'use of internal package m/x/internal not allowed' matched: runbad1.go:2:8: use of internal package m/x/internal not allowed > go list -e -f '{{.Incomplete}}' runbad2.go [stdout] true > stdout true matched: true > ! go run runbad2.go [stderr] package command-line-arguments runbad2.go:2:8: use of internal package m/x/internal/y not allowed [exit status 1] > stderr 'use of internal package m/x/internal/y not allowed' matched: runbad2.go:2:8: use of internal package m/x/internal/y not allowed > go list -e -f '{{.Incomplete}}' runok.go [stdout] false > stdout false matched: false > go run runok.go script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_tidy (0.25s) script_test.go:136: 2024-03-19T19:06:32Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_tidy345182621 script_test.go:160: > env GO111MODULE=on # tidy removes unused y, but everything else is used (0.160s) # empty tidy should not crash (0.063s) # tidy should add missing go line (0.000s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_tidy_convergence_loop (1.74s) script_test.go:136: 2024-03-19T19:06:31Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_tidy_convergence_loop365383392 script_test.go:160: # This test demonstrates a simple case in which 'go mod tidy' may resolve a # missing package, only to remove that package when resolving its dependencies. # # If we naively iterate 'go mod tidy' until the dependency graph converges, this # scenario may fail to converge. # The import graph used in this test looks like: # # m --- w # | # + --- x # | # + --- y # | # + --- z # # The module dependency graph of m initially contains w.1 (and, by extension, # y.2-pre and z.2-pre). This is an arbitrary point in the cycle of possible # configurations. # # w.1 requires y.2-pre and z.2-pre # x.1 requires z.2-pre and w.2-pre # y.1 requires w.2-pre and x.2-pre # z.1 requires x.2-pre and y.2-pre # # At each point, exactly one missing package can be resolved by adding a # dependency on the .1 release of the module that provides that package. # However, adding that dependency causes the module providing another package to # roll over from its .1 release to its .2-pre release, which removes the # package. Once the package is removed, 'go mod tidy -e' no longer sees the # module as relevant to the main module, and will happily remove the existing # dependency on it. # # The cycle is of length 4 so that at every step only one package can be # resolved. This is important because it prevents the iteration from ever # reaching a state in which every package is simultaneously over-upgraded — such # a state is stable and does not exhibit failure to converge. (0.002s) # 'go mod tidy' without -e should fail without modifying go.mod, # because it cannot resolve x, y, and z simultaneously. (0.143s) # 'go mod tidy -e' should preserve all of the upgrades to modules that could # provide the missing packages but don't. That would at least explain why they # are missing, and why no individual module can be upgraded in order to satisfy # a missing import. # # TODO(bcmills): Today, it doesn't preserve those upgrades, and instead advances # the state by one through the cycle of semi-tidy states. (0.487s) # If we upgrade away all of the packages simultaneously, the resulting tidy # state converges at "no dependencies", because simultaneously adding all of the # packages simultaneously over-upgrades all of the dependencies, and 'go mod # tidy' treats "no package can be added" as a terminal state. (0.333s) # The 'tidy' logic for a lazy main module requires more iterations to converge, # because it is willing to drop dependencies on non-root modules that do not # otherwise provide imported packages. # # On the first iteration, it adds x.1 as a root, which upgrades z and w, # dropping w.1's requirement on y. w.1 was initially a root, so the upgraded # w.2-pre is retained as a root. # # On the second iteration, it adds y.1 as a root, which upgrades w and x, # dropping x.1's requirement on z. x.1 was added as a root in the previous step, # so the upgraded x.2-pre is retained as a root. # # On the third iteration, it adds z.1 as a root, which upgrades x and y. # x and y were already roots (from the previous steps), so their upgraded versions # are retained (not dropped) and the iteration stops. # # At that point, we have z.1 as a root providing package z, # and w, x, and y have all been upgraded to no longer provide any packages. # So only z is retained as a new root. # # (From the above, we can see that in a lazy module we still cycle through the # same possible root states, but in a different order from the eager case.) # # TODO(bcmills): if we retained the upgrades on w, x, and y (since they are # lexical prefixes for unresolved packages w, x, and y, respectively), then 'go # mod tidy -e' itself would become stable and no longer cycle through states. (0.560s) # As in the eager case, for the lazy module the fully-upgraded dependency graph # becomes empty, and the empty graph is stable. (0.188s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_tagged_import_cycle (0.74s) script_test.go:136: 2024-03-19T19:06:32Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_tagged_import_cycle699418965 script_test.go:160: # Because 'go mod' subcommands ignore build constraints, they can encounter # package-import cycles that are not possible in an ordinary build. This test # verifies that such cycles are handled even when they cross module boundaries. # First, verify that the import graph depends on build tags as expected. (0.357s) # 'go mod why' should be agnostic to build tags. (0.270s) # 'go mod tidy' should successfully handle the cycle. (0.053s) # 'go mod vendor' should copy in both packages without crashing. (0.056s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_symlink_dotgo (0.08s) script_test.go:136: 2024-03-19T19:06:33Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_symlink_dotgo1966374815 script_test.go:160: > env GO111MODULE=on > [!symlink] skip [condition not met] > symlink dir.go -> dir # Issue #39841: symlinks to directories should be ignored, not treated as source files. (0.076s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_test_files (1.19s) script_test.go:136: 2024-03-19T19:06:32Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_test_files1846060872 script_test.go:160: > env GO111MODULE=on > cd foo # Testing an explicit source file should use the same import visibility as the # package in the same directory. (0.643s) # If the file is inside the main module's vendor directory, it should have # visibility based on the vendor-relative import path. (0.275s) # If the file is outside the main module entirely, it should be treated as outside. (0.253s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_tidy_temp (0.23s) script_test.go:136: 2024-03-19T19:06:33Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_tidy_temp4210116031 script_test.go:160: # Regression test for https://go.dev/issue/51992 # 'go mod tidy' should error instead of throwing panic in the situation below. # 1. /tmp/go.mod exists # 2. run 'go mod tidy' in /tmp or in the child directory not having go.mod. (0.227s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_tidy_quote (0.66s) script_test.go:136: 2024-03-19T19:06:33Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_tidy_quote2819208446 script_test.go:160: # Check that mod tidy does not introduce repeated # require statements when input go.mod has quoted requirements. (0.629s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_tidy_replace_old (0.26s) script_test.go:136: 2024-03-19T19:06:34Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_tidy_replace_old1898058418 script_test.go:160: # Regression test for https://golang.org/issue/46659. # # If a 'replace' directive specifies an older-than-selected version of a module, # 'go mod tidy' shouldn't try to add that version to the build list to resolve a # missing package: it won't be selected, and would cause the module loader to # loop indefinitely trying to resolve the package. (0.227s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_tidy_symlink_issue35941 (0.20s) script_test.go:136: 2024-03-19T19:06:34Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_tidy_symlink_issue359413535330621 script_test.go:160: > env GO111MODULE=on > [!symlink] skip [condition not met] > cd m > symlink symlink -> ../outside > cp go.mod go.mod.orig # Issue 35941: suppress symlink warnings when running 'go mod tidy'. # 'go mod tidy' should not scan packages in symlinked subdirectories. (0.178s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_tidy_version (1.78s) script_test.go:136: 2024-03-19T19:06:32Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_tidy_version3584927935 script_test.go:160: # https://golang.org/issue/45094: 'go mod tidy' now accepts a '-go' flag # to change the language version in use. # # The package import graph used in this test looks like: # # m --- a --- b # | # b_test --- c # | # c_test --- d # # The module diagram looks like: # # m --- a --- b # | # + --- c # | # + --- d # # Module b omits its dependency on c, and module c omits its dependency on d. # # In go 1.15, the tidy main module must require a (because it is direct), # c (because it is a missing test dependency of an imported package), # and d (because it is a missing transitive test dependency). # # In go 1.16, the tidy main module can omit d because it is no longer # included in "all". # # In go 1.17, the main module must explicitly require b # (because it is transitively imported by the main module). (0.000s) # An invalid argument should be rejected. (0.178s) # Supported versions should change the go.mod file to be tidy according to the # indicated version. (0.449s) # If we downgrade back to 1.15, we should re-resolve d to v0.2.0 instead # of the original v0.1.0 (because the original requirement is lost). (0.098s) # -go= (with an empty argument) maintains the existing version or adds the # default version (just like omitting the flag). (0.146s) # Repeat with go get go@ instead of mod tidy. # Go 1.16 -> 1.17 should be a no-op. (0.081s) # Go 1.17 -> 1.16 should leave b (go get is not tidy). (0.098s) # Go 1.15 -> 1.16 should leave d (go get is not tidy). (0.091s) # Go 1.16 -> 1.17 should add b. (0.251s) # Go 1.16 -> 1.15 should add d, # but 'go get' doesn't load enough packages to know that. # (This leaves the module untidy, but the user can fix it by running 'go mod tidy'.) (0.186s) # Updating the go line to 1.21 or higher also updates the toolchain line, # only if the toolchain is higher than what would be implied by the go line. (0.184s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/goflags (4.11s) script_test.go:136: 2024-03-19T19:06:30Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/goflags4115558173 script_test.go:160: > env GO111MODULE=off # GOFLAGS sets flags for commands (0.351s) # go env succeeds even though -f={{.Dir}} is inappropriate (0.354s) # bad flags are diagnosed (0.278s) # except in go bug (untested) and go env (0.428s) # Flags listed in GOFLAGS should be safe to duplicate on the command line. (2.646s) # GOFLAGS uses the same quoting rules (quoted.Split) as the rest of # the go command env variables (0.051s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_symlink (1.47s) script_test.go:136: 2024-03-19T19:06:33Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_symlink178632946 script_test.go:160: > env GO111MODULE=on > [!symlink] skip [condition not met] # 'go get' should resolve modules of imported packages. (0.693s) # Create a copy of the module using symlinks in src/links. (0.004s) # We should see the copy as a valid module root. (0.120s) # The symlink-based copy should contain the same packages # and have the same dependencies as the original. (0.613s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_sumdb_proxy (1.39s) script_test.go:136: 2024-03-19T19:06:33Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_sumdb_proxy3516973892 script_test.go:160: > env GO111MODULE=on > env sumdb=$GOSUMDB > env proxy=$GOPROXY > env GOPROXY GONOPROXY GOSUMDB GONOSUMDB [stdout] GOPROXY=http://127.0.0.1:40509/mod GONOPROXY= GOSUMDB=localhost.localdev/sumdb+00000c67+AcTrnkbUA+TU4heY3hkjiSES/DSQniBqIeQ/YppAUtK6 GONOSUMDB= # basic fetch (through proxy) works (0.372s) # can fetch by explicit URL (0.376s) # direct access fails (because localhost.localdev does not exist) # web.get is providing the error message - there's no actual network access. (0.063s) # proxy 404 falls back to direct access (which fails) (0.080s) # proxy non-200/404/410 stops direct access (0.069s) # the error from the last attempted proxy should be returned. (0.108s) # if proxies are separated with '|', fallback is allowed on any error. (0.290s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_tidy_oldgo (0.36s) script_test.go:136: 2024-03-19T19:06:34Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_tidy_oldgo3165600892 script_test.go:160: # Modules were introduced in Go 1.11, but for various reasons users may # decide to declare a (much!) older go version in their go.mod file. # Modules with very old versions should not be rejected, and should have # the same module-graph semantics as in Go 1.11. (0.316s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_tidy_support_buildx (0.73s) script_test.go:136: 2024-03-19T19:06:34Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_tidy_support_buildx1519097955 script_test.go:160: # This test checks that "go mod tidy -x" print # commands tidy executes. # Verifies golang.org/issue/35849 (0.705s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_sumdb (1.10s) script_test.go:136: 2024-03-19T19:06:34Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_sumdb909129701 script_test.go:160: > env GO111MODULE=on > env sumdb=$GOSUMDB > env proxy=$GOPROXY > env GOPROXY GONOPROXY GOSUMDB GONOSUMDB [stdout] GOPROXY=http://127.0.0.1:40509/mod GONOPROXY= GOSUMDB=localhost.localdev/sumdb+00000c67+AcTrnkbUA+TU4heY3hkjiSES/DSQniBqIeQ/YppAUtK6 GONOSUMDB= > env dbname=localhost.localdev/sumdb # disagreeing with the sumdb produces security errors # (this also populates tiles on the sumdb server). (0.558s) # switching to truthful sumdb detects timeline inconsistency (0.107s) # removing the cached wrong tree head and cached tiles clears the bad data (0.416s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_tidy_sum (1.17s) script_test.go:136: 2024-03-19T19:06:34Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_tidy_sum2782870539 script_test.go:160: > env GO111MODULE=on # go.sum should list directly used modules and dependencies (0.707s) # go.sum should not normally lose old entries (0.206s) # go mod tidy should clear dead entries from go.sum (0.187s) # go.sum with no entries is OK to keep # (better for version control not to delete and recreate.) (0.050s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_sum_replaced (1.14s) script_test.go:136: 2024-03-19T19:06:34Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_sum_replaced372139994 script_test.go:160: > env GO111MODULE=on # After 'go get', the go.sum file should contain the sum for the module. (0.415s) # If we replace the module and run 'go mod tidy', we should get a sum for the replacement. (0.423s) # 'go mod vendor' should preserve that sum, and should not need to add any new entries. (0.270s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_sumdb_cache (1.51s) script_test.go:136: 2024-03-19T19:06:34Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_sumdb_cache2968482149 script_test.go:160: > env GO111MODULE=on > env sumdb=$GOSUMDB > env proxy=$GOPROXY > env GOPROXY GONOPROXY GOSUMDB GONOSUMDB [stdout] GOPROXY=http://127.0.0.1:40509/mod GONOPROXY= GOSUMDB=localhost.localdev/sumdb+00000c67+AcTrnkbUA+TU4heY3hkjiSES/DSQniBqIeQ/YppAUtK6 GONOSUMDB= # rejected proxy fails verification (0.071s) # fetch through working proxy is OK (0.400s) # repeated fetch works entirely from cache, does not consult sumdb (0.433s) # fetch specific module can work without proxy, using cache or go.sum (0.441s) # fetch fails once we lose access to both cache and go.sum (0.048s) # GOINSECURE does not bypass checksum lookup (0.087s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_sum_lookup (0.34s) script_test.go:136: 2024-03-19T19:06:35Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_sum_lookup3124410984 script_test.go:160: # When we attempt to resolve an import that doesn't exist, we should not save # hashes for downloaded modules. # Verifies golang.org/issue/36260. # TODO(golang.org/issue/26603): use 'go mod tidy -e' when implemented. (0.156s) # When an import is resolved successfully, we should only save hashes for # the module that provides the package, not for other modules looked up. # Verifies golang.org/issue/31580. (0.164s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_run_pkgerror (0.36s) script_test.go:136: 2024-03-19T19:06:36Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_run_pkgerror3817089335 script_test.go:160: # https://golang.org/issue/39986: files reported as invalid by go/build should # be listed in InvalidGoFiles. (0.051s) # https://golang.org/issue/45827: 'go run .' should report the same package # errors as 'go build' and 'go list'. (0.283s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_std_vendor (1.80s) script_test.go:136: 2024-03-19T19:06:35Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_std_vendor1608293534 script_test.go:160: > env GO111MODULE=on > env GOPROXY=off > [!compiler:gc] skip [condition not met] # 'go list' should report imports from _test.go in the TestImports field. (0.059s) # 'go list' should find standard-vendored packages. (0.125s) # 'go list -test' should report vendored transitive dependencies of _test.go # imports in the Deps field. (0.293s) # Modules outside the standard library should not use the packages vendored there... (0.571s) # ...even if they explicitly use the "cmd/vendor/" or "vendor/" prefix. (0.397s) # When run within the 'std' module, 'go list -test' should report vendored # transitive dependencies at their vendored paths. (0.345s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_sum_readonly (0.93s) script_test.go:136: 2024-03-19T19:06:35Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_sum_readonly3063529452 script_test.go:160: # Test that go.sum does not get updated when -mod=readonly flag is set (0.000s) # When a sum is needed to load the build list, we get an error for the # specific module. The .mod file is not downloaded, and go.sum is not written. (0.059s) # If go.sum exists but contains hashes from an algorithm we don't know about, # we should see the same error. (0.040s) # If we replace a module, we should see a missing sum error for the replacement. (0.096s) # Control: when sums are present, loading the build list downloads .mod files. (0.066s) # When a sum is needed to load a .mod file for a package outside the build list, # we get a generic missing import error. (0.112s) # When a sum is needed to load a .zip file, we get a more specific error. # The .zip file is not downloaded. (0.076s) # The error is attached to the package from the missing module. We can load # a package that imports it without that error. (0.052s) # go.sum should not have been written. (0.000s) # Control: when sums are present, 'go list' downloads .zip files. (0.393s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_sum_ambiguous (1.12s) script_test.go:136: 2024-03-19T19:06:35Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_sum_ambiguous993873088 script_test.go:160: # Confirm our build list. (0.101s) # If two modules could provide a package, but only one does, # 'go mod tidy' should retain sums for both zips. (0.167s) # 'go mod download' should also add sums. (0.147s) # If two modules could provide a package, and we're missing a sum for one, # we should see a missing sum error, even if we have a sum for a module that # provides the package. (0.674s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_graph_version (0.63s) script_test.go:136: 2024-03-19T19:06:36Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_graph_version3444723809 script_test.go:160: # For this module, Go 1.17 prunes out a (transitive and otherwise-irrelevant) # requirement on a retracted higher version of a dependency. # However, when Go 1.16 reads the same requirements from the go.mod file, # it does not prune out that requirement, and selects the retracted version. # # The Go 1.16 module graph looks like: # # m ---- lazy v0.1.0 ---- requireincompatible v0.1.0 ---- incompatible v2.0.0+incompatible # | | # + -------+------------- incompatible v1.0.0 # # The Go 1.17 module graph is the same except that the dependencies of # requireincompatible are pruned out (because the module that requires # it — lazy v0.1.0 — specifies 'go 1.17', and it is not otherwise relevant to # the main module). (0.130s) # Setting -go=1.16 should report the graph as viewed by Go 1.16, # but should not edit the go.mod file. (0.090s) # If we actually update the go.mod file to the requested go version, # we should get the same selected versions, but the roots of the graph # may be updated. # # TODO(#45551): The roots should not be updated. (0.309s) # Unsupported go versions should be rejected, since we don't know # what versions they would report. (0.088s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/test_empty (15.41s) script_test.go:136: 2024-03-19T19:06:21Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/test_empty1762891381 script_test.go:160: > [!race] skip [condition not met] > cd $GOPATH/src/empty/pkg > go test -cover -coverpkg=. -race [stdout] ? empty/pkg [no test files] > [short] stop # Only run first case in short mode stop script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_skip_write (1.20s) script_test.go:136: 2024-03-19T19:06:36Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_skip_write4209717296 script_test.go:160: # Commands used to debug the module graph should not write go.mod or go.sum # or report errors when those files need to be updated. # Everything's okay initially. (0.108s) # Downgrading sampler makes go.mod inconsistent, but 'go mod graph', # 'go mod verify', and 'go mod why' still work. (0.696s) # Removing go.sum breaks other commands, but 'go mod graph' and # 'go mod why' still work. (0.362s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/mod_sum_issue56222 (3.00s) script_test.go:136: 2024-03-19T19:06:34Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/mod_sum_issue562224031294295 script_test.go:160: # Regression test for #56222: 'go get -t' and 'go mod tidy' # should save enough checksums to run 'go test' on the named # packages or any package in "all" respectively. # 'go mod tidy' in a module at go 1.21 or higher should preserve # checksums needed to run 'go test all'. (1.436s) # At go 1.20 or earlier, 'go mod tidy' should preserve the historical go.sum # contents, but 'go test' should flag the missing checksums (instead of trying # to build the test dependency with the wrong language version). (1.170s) # Even at go 1.20 or earlier, 'go mod tidy' shouldn't need go.mod files or # checksums that it won't record. (0.059s) # Issue 60667: 'go list' without -mod=mod shouldn't report the checksums as # dirty either. (0.090s) # Regardless of the go version in go.mod, 'go get -t' should fetch # enough checksums to run 'go test' on the named package. (0.237s) script_test.go:415: go was invoked but no counters were incremented --- FAIL: TestScript/build_GOTMPDIR (8.54s) script_test.go:136: 2024-03-19T19:06:29Z script_test.go:138: $WORK=/tmp/workdir/tmp/cmd-go-test-1633257946/tmpdir2374064632/build_GOTMPDIR2384491906 script_test.go:160: # Set GOCACHE to a clean directory to ensure that 'go build' has work to report. (0.000s) # 'go build' should use GOTMPDIR if set. (8.349s) # Make GOTMPDIR a regular file. This prevents the creation of work directories, # so we can check that certain commands don't create them. # This simulates running on a full disk or a read-only volume. (0.000s) # 'go build' should fail if GOTMPDIR is read-only. (0.015s) # 'go list' should only fail if it needs to build something. (0.079s) # 'go clean -cache' and 'go clean -modcache' should not fail. (0.066s) # 'go env' should not fail for specific variables. # Without arguments, it needs to initialize a builder to load cgo flags, and # that uses a temporary directory. (0.027s) script_test.go:415: go was invoked but no counters were incremented FAIL FAIL cmd/go 80.742s FAIL go tool dist: Failed: exit status 1 Error: tests failed: dist test failed: {go_test:cmd/go cmd/go}: exit status 1