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_enabled failing on Plan 9 #27065

0intro opened this issue Aug 17, 2018 · 2 comments


None yet
3 participants
Copy link

commented Aug 17, 2018

CL 129063 changed TestScript/mod_enabled. This test is failing on Plan 9.

    --- FAIL: TestScript/mod_enabled (0.78s)
            # GO111MODULE=auto should only trigger outside GOPATH/src (0.318s)
            # GO111MODULE=on should trigger everywhere (0.255s)
            # GO111MODULE=off should trigger nowhere (0.097s)
            # GO111MODULE=auto should ignore and warn about /tmp/go.mod (0.040s)
            > env GO111MODULE=auto
            > cp $GOPATH/src/x/y/z/go.mod $WORK/tmp/go.mod
            > mkdir $WORK/tmp/mydir
            > cd $WORK/tmp/mydir
            > go env GOMOD
            > ! stdout .+
            FAIL: testdata/script/mod_enabled.txt:74: unexpected match for `.+` found in stdout: $WORK/tmp/go.mod



@0intro 0intro added the OS-Plan9 label Aug 17, 2018

@0intro 0intro added this to the Go1.11 milestone Aug 17, 2018

@0intro 0intro assigned rsc and 0intro Aug 17, 2018


This comment has been minimized.

Copy link
Member Author

commented Aug 17, 2018

The test is failing because search.InDir doesn't return ".".

This is happening because the os.TempDir function doesn't consider the TMPDIR environment variable on Plan 9, while it's the case on Unix.


This comment has been minimized.

Copy link

commented Aug 17, 2018

Change mentions this issue: os: handle TMPDIR in TempDir on Plan 9

@gopherbot gopherbot closed this in 0a842d5 Aug 17, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.