-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
go: install binaries to /usr/lib/go/bin/
- Before this, go and gofmt was installed to /usr/bin, which confuses Go as it can not figure out $GOROOT automatically by os.Executable, see [1] for details. By installing binaries to $GOROOT/bin (GOROOT points to /usr/lib/go), go can now figure out its GOROOT. - Provide symlinks in /usr/bin/go{,fmt}-google to ensure it is there. - Update alternatives file to point corresponding executables to the one installed in $GOROOT. [1]: golang/go#61921 (comment)
- Loading branch information
1 parent
ad43208
commit 3d22e9e
Showing
3 changed files
with
16 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
alternative /usr/bin/go /usr/bin/go-google 80 | ||
alternative /usr/bin/gofmt /usr/bin/gofmt-google 80 | ||
alternative /usr/bin/go /usr/lib/go/bin/go 80 | ||
alternative /usr/bin/gofmt /usr/lib/go/bin/gofmt 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters