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_gobuild_import failing on Plan 9 #26669

0intro opened this issue Jul 28, 2018 · 1 comment


None yet
2 participants
Copy link

commented Jul 28, 2018

CL 125296 added TestScript/mod_gobuild_import. This test is failing on the plan9/386 builder.

--- FAIL: TestScript (0.01s)
    --- FAIL: TestScript/mod_gobuild_import (1.64s)
            # go/build's Import should find modules by invoking the go command (1.484s)
            # GO111MODULE=off (0.034s)
            # GO111MODULE=auto in GOPATH/src (0.040s)
            # GO111MODULE=auto outside GOPATH/src (0.020s)
            > cd $GOPATH/other
            > env GO111MODULE=
            > exec $WORK/testimport.exe other/x/y/z/w .
            2018/07/27 21:50:57 go/build: importGo other/x/y/z/w: exec: "go": executable file not found in $path
            [exit status: 'testimport.exe 15094: 1']
            FAIL: testdata/script/mod_gobuild_import.txt:18: unexpected command failure
FAIL	cmd/go	435.514s


@0intro 0intro added the OS-Plan9 label Jul 28, 2018

@0intro 0intro added this to the Go1.11 milestone Jul 28, 2018

@0intro 0intro self-assigned this Jul 28, 2018

@0intro 0intro added the help wanted label Jul 28, 2018


This comment has been minimized.

Copy link

commented Jul 29, 2018

Change mentions this issue: cmd/go: fix TestScript/mod_gobuild_import on Plan 9

@gopherbot gopherbot closed this in 154394f Jul 29, 2018

jeet-parekh added a commit to jeet-parekh/go that referenced this issue Jul 31, 2018

cmd/go: fix TestScript/mod_gobuild_import on Plan 9
CL 125296 added TestScript/mod_gobuild_import. This
test is failing on Plan 9, because go/build invokes
the go tool which cannot be found in the path.

The "PATH" environment variable has been updated to
contain the path to the go tool on Unix and Windows,
but on Plan 9, the analogous environment variable is
called "path".

This change fixes the script engine by setting
the "path" environment variable on Plan 9.

Fixes golang#26669.

Change-Id: If1be50e14baceccee591f4f76b7e698f5e12a2d4
Run-TryBot: David du Colombier <>
TryBot-Result: Gobot Gobot <>
Reviewed-by: Brad Fitzpatrick <>
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.