I got the following test error from time to time, even with a freshly checkout repo., when running './all.bash',
but 'go test -run=TestScript/mod_indirect cmd/go' works fine, can anyone please help here? Thanks.
====================================================================================
go proxy: no archive
rsc.io v1.5.2: file does not exist
go proxy: no archive
rsc.io v1.0.0: file does not exist
go proxy: no archive
rsc.io v1.0.0: file does not exist
go proxy: no archive
rsc.io v1.1.0: file does not exist
go proxy: no archive
rsc.io v1.0.0: file does not exist
go proxy: no archive
rsc.io v1.0.0: file does not exist
go proxy: no archive
rsc.io v1.5.1: file does not exist
go proxy: no archive
rsc.io v1.5.2: file does not exist
--- FAIL: TestScript (0.03s)
--- FAIL: TestScript/mod_indirect (0.33s)
script_test.go:205:
# 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.065s)
# The modules must also appear in the build list, not just the graph. (0.196s)
# The packages provided by those dependencies must resolve. (0.038s)
> go list all
[stderr]
package main: cannot find package "." in:
/home/xiaji01/src/go.bm.fix/src/main
[exit status 1]
FAIL: testdata/script/mod_indirect.txt:19: unexpected command failure
--- FAIL: TestScript/mod_indirect_tidy (0.04s)
script_test.go:205:
# for indirect dependencies already implied by older-than-selected versions
# already in the build list. (0.017s)
> cp go.mod.orig go.mod
> go mod tidy
[stderr]
main: readdirent: not a directory
[exit status 1]
FAIL: testdata/script/mod_indirect_tidy.txt:8: unexpected command failure
FAIL
FAIL cmd/go 83.159s