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: running all.bash fails with GOROOT_FINAL set #11652

Closed
xi2 opened this issue Jul 10, 2015 · 2 comments
Closed

cmd/go: running all.bash fails with GOROOT_FINAL set #11652

xi2 opened this issue Jul 10, 2015 · 2 comments
Milestone

Comments

@xi2
Copy link

xi2 commented Jul 10, 2015

Go version: devel +a625b91, OS: Debian Jessie/AMD64

When running all.bash with GOROOT_FINAL set, all.bash fails as follows:

user@debian:~/go-1.5/src$ GOROOT_FINAL=~/gorootFinal GOROOT_BOOTSTRAP=~/go1.4/ ./all.bash

...

ok      cmd/cover       3.057s
ok      cmd/doc 0.043s
ok      cmd/fix 0.019s
--- FAIL: TestNoteReading (0.02s)
        note_test.go:27: go build cmd/go: exit status 2
                go: cannot find GOROOT directory: /home/user/gorootFinal
--- FAIL: TestBrokenTestsWithoutTestFunctionsAllFail (0.01s)
        go_test.go:238: running testgo [test ./testdata/src/badtest/...]
        go_test.go:257: standard error:
        go_test.go:258: go: cannot find GOROOT directory: /home/user/gorootFinal

        go_test.go:277: testgo failed as expected: exit status 2
        go_test.go:365: test did not run everything
        go_test.go:366: pattern FAIL.*badtest/badexec not found in standard output or standard error
--- FAIL: TestGoInstallCleansUpAfterGoBuild (0.03s)
        go_test.go:238: running testgo [build]
        go_test.go:257: standard error:
        go_test.go:258: go: cannot find GOROOT directory: /home/user/gorootFinal

        go_test.go:267: go [build] failed unexpectedly: exit status 2

(errors repeat)

--- FAIL: TestBuildDashIInstallsDependencies (0.02s)
        go_test.go:238: running testgo [build -v -i x/y/bar]
        go_test.go:257: standard error:
        go_test.go:258: go: cannot find GOROOT directory: /home/user/gorootFinal

        go_test.go:267: go [build -v -i x/y/bar] failed unexpectedly: exit status 2
--- FAIL: TestCgoHandlesWlORIGIN (0.03s)
        go_test.go:238: running testgo [build origin]
        go_test.go:257: standard error:
        go_test.go:258: go: cannot find GOROOT directory: /home/user/gorootFinal

        go_test.go:267: go [build origin] failed unexpectedly: exit status 2
FAIL
FAIL    cmd/go  10.920s
@ianlancetaylor ianlancetaylor added this to the Go1.5 milestone Jul 10, 2015
@ianlancetaylor ianlancetaylor self-assigned this Jul 10, 2015
@gopherbot
Copy link

CL https://golang.org/cl/12021 mentions this issue.

@xi2
Copy link
Author

xi2 commented Jul 10, 2015

I can confirm that, with CL12021 applied, the build now completes successfully :)

@golang golang locked and limited conversation to collaborators Jul 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants