-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
While running a full `make fmt-build`, I got some failures with installer scripts for golang formatters. This fixes the problem by installing an up-to-date golang instead of the version available in ubuntu 20.04. The ppa used here, `longsleep/golang-backports` is [recommended](https://github.com/golang/go/wiki/Ubuntu) by the Go project. --------- Co-authored-by: Radon Rosborough <[email protected]>
- Loading branch information
Showing
3 changed files
with
8 additions
and
9 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
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,6 +1,3 @@ | ||
# Require at least version 1.17 of go | ||
# https://github.com/mvdan/gofumpt/issues/231 | ||
curl -OL https://golang.org/dl/go1.19.3.linux-amd64.tar.gz | ||
sudo tar -C /usr/local -xvf go1.19.3.linux-amd64.tar.gz | ||
/usr/local/go/bin/go install mvdan.cc/gofumpt@latest | ||
cp -L "$HOME/go/bin/gofumpt" /usr/local/bin/ | ||
apt-get install -y golang-go | ||
go install mvdan.cc/gofumpt@latest | ||
cp -L "$HOME/go/bin/gofumpt" /usr/local/bin/ |
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,3 +1,3 @@ | ||
apt-get install -y golang-go | ||
go get -u golang.org/x/tools/cmd/goimports | ||
cp -L "$HOME/go/bin/goimports" /usr/local/bin/ | ||
go install golang.org/x/tools/cmd/goimports@latest | ||
cp -L "$HOME/go/bin/goimports" /usr/local/bin/ |