apheleia/test/formatters/installers/goimports.bash
Ed Slocomb 35f72f6fbe
use up-to-date golang (#218)
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 <radon@intuitiveexplanations.com>
2023-10-06 21:47:52 -07:00

3 lines
127 B
Bash

apt-get install -y golang-go
go install golang.org/x/tools/cmd/goimports@latest
cp -L "$HOME/go/bin/goimports" /usr/local/bin/