Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

gb generate / gb doc does not work with packaged version of Go #521

Closed
davecheney opened this issue Dec 30, 2015 · 0 comments
Closed

gb generate / gb doc does not work with packaged version of Go #521

davecheney opened this issue Dec 30, 2015 · 0 comments
Assignees
Labels

Comments

@davecheney
Copy link
Contributor

gb doc - failed with FATAL: command "generate" failed: fork/exec /usr/lib/go/bin/godoc: no such file or directory

gb doc, gb generate and go test cmd/gb does not work when using a packaged version of Go if that version has spread GOROOT out into several components.

For gb doc and gb generate, just call "go" and let LookPath figured it out. For go test cmd/gb we must use the same GOROOT that built the test binary.

See #520

@davecheney davecheney added the bug label Dec 30, 2015
@davecheney davecheney self-assigned this Dec 30, 2015
davecheney added a commit that referenced this issue Dec 30, 2015
Update #521

Also add simple test for go generate.
davecheney added a commit that referenced this issue Dec 30, 2015
Update #521

Also add simple test for gb doc.
davecheney added a commit that referenced this issue Dec 30, 2015
Fixes #521

Try to locate `bin/go` in the various permutations that package managers use.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant