random test failure of TestScript/mod_indirect in 'cmd/go'

52 views
Skip to first unread message

xiangd...@gmail.com

unread,
Apr 2, 2020, 11:57:05 PM4/2/20
to golang-nuts
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 test proxy running at GOPROXY=http://127.0.0.1:57425/mod
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
go proxy: no archive example.com/newcycle v1.0.0: file does not exist
--- FAIL: TestScript (0.03s)
    --- FAIL: TestScript/mod_indirect (0.33s)
        script_test.go:205:
            # golang.org/issue/31248: module requirements 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.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:
            # 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.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

Bryan C. Mills

unread,
Apr 3, 2020, 8:48:51 PM4/3/20
to golang-nuts
Please file an issue.

https://golang.org/issue/new

Reply all
Reply to author
Forward
0 new messages