Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/go: TestScript/mod_patterns failing when cgo is disabled #26927

Closed
0intro opened this issue Aug 10, 2018 · 1 comment
Closed

cmd/go: TestScript/mod_patterns failing when cgo is disabled #26927

0intro opened this issue Aug 10, 2018 · 1 comment
Labels
Builders x/build issues (builders, bots, dashboards) FrozenDueToAge modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. release-blocker
Milestone

Comments

@0intro
Copy link
Member

0intro commented Aug 10, 2018

CL 128358 changed TestScript/mod_patterns to build on machines where cgo is disabled (#26906).

However, TestScript/mod_patterns is still failing on machines where cgo is disabled.

The following builders are currently failing:

For example, on the plan9/386 builder:

--- FAIL: TestScript (0.00s)
    --- FAIL: TestScript/mod_patterns (0.35s)
        script_test.go:151: 
            # 'go list all' should list all of the packages used (directly or indirectly) by
            # the packages in the main module, but no other packages from the standard
            # library or active modules. (0.342s)
            > go list all
            [stdout]
            example.com/m/useunicode
            example.com/m/useunsafe
            unicode
            unsafe
            flag
            fmt
            runtime
            sort
            strings
            testing
            errors
            io
            os
            reflect
            strconv
            time
            math
            sync
            unicode/utf8
            internal/bytealg
            internal/cpu
            runtime/internal/atomic
            runtime/internal/sys
            bytes
            internal/race
            runtime/debug
            runtime/trace
            sync/atomic
            internal/poll
            internal/syscall/unix
            internal/testlog
            syscall
            math/bits
            net/url
            bufio
            regexp
            testing/iotest
            crypto/rand
            encoding/binary
            go/build
            internal/testenv
            io/ioutil
            math/cmplx
            math/rand
            net
            os/exec
            path/filepath
            context
            text/template
            crypto/sha1
            log
            os/signal
            encoding/base64
            encoding/json
            go/ast
            go/token
            encoding/gob
            math/big
            testing/quick
            regexp/syntax
            crypto/aes
            crypto/cipher
            go/doc
            go/parser
            path
            golang_org/x/net/dns/dnsmessage
            internal/nettrace
            internal/singleflight
            internal/trace
            text/tabwriter
            text/template/parse
            crypto
            hash
            os/user
            encoding
            unicode/utf16
            go/scanner
            compress/bzip2
            crypto/internal/subtle
            crypto/subtle
            compress/flate
            crypto/sha256
            encoding/hex
            golang_org/x/net/nettest
            net/internal/socktest
            net/http
            net/http/httptest
            compress/gzip
            image
            go/format
            encoding/xml
            crypto/des
            go/printer
            container/list
            crypto/tls
            golang_org/x/net/http/httpguts
            golang_org/x/net/http/httpproxy
            golang_org/x/net/http2/hpack
            golang_org/x/net/idna
            mime
            mime/multipart
            net/http/httptrace
            net/http/internal
            net/textproto
            crypto/x509
            crypto/rc4
            crypto/md5
            crypto/sha512
            hash/adler32
            hash/crc32
            hash/crc64
            hash/fnv
            image/color
            golang_org/x/net/internal/nettest
            crypto/ecdsa
            crypto/elliptic
            crypto/hmac
            crypto/rsa
            encoding/asn1
            encoding/pem
            golang_org/x/crypto/chacha20poly1305
            golang_org/x/crypto/curve25519
            golang_org/x/text/secure/bidirule
            golang_org/x/text/unicode/bidi
            golang_org/x/text/unicode/norm
            mime/quotedprintable
            net/http/cookiejar
            net/http/httputil
            crypto/dsa
            crypto/x509/pkix
            golang_org/x/crypto/cryptobyte
            golang_org/x/crypto/cryptobyte/asn1
            image/gif
            image/jpeg
            image/png
            crypto/internal/randutil
            golang_org/x/crypto/internal/chacha20
            golang_org/x/crypto/poly1305
            golang_org/x/text/transform
            net/mail
            compress/lzw
            image/color/palette
            image/draw
            image/internal/imageutil
            compress/zlib
            [stderr]
            can't load package: package example.com/m/useC: build constraints exclude all Go files in $WORK/gopath/src/m/useC
            [exit status 1]
            FAIL: testdata/script/mod_patterns.txt:8: unexpected command failure
            
FAIL
FAIL	cmd/go	113.111s

@rsc

@0intro 0intro added the Builders x/build issues (builders, bots, dashboards) label Aug 10, 2018
@0intro 0intro added this to the Go1.11 milestone Aug 10, 2018
@0intro 0intro assigned rsc and 0intro and unassigned 0intro Aug 10, 2018
@ianlancetaylor ianlancetaylor changed the title TestScript/mod_patterns failing when cgo is disabled cmd/go: TestScript/mod_patterns failing when cgo is disabled Aug 10, 2018
@ianlancetaylor ianlancetaylor added NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. modules labels Aug 10, 2018
@gopherbot
Copy link

Change https://golang.org/cl/129062 mentions this issue: cmd/go: ignore import "C" files in module loader in non-cgo mode

@golang golang locked and limited conversation to collaborators Aug 17, 2019
@rsc rsc unassigned rsc and bcmills Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Builders x/build issues (builders, bots, dashboards) FrozenDueToAge modules NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. release-blocker
Projects
None yet
Development

No branches or pull requests

6 participants