aboutsummaryrefslogtreecommitdiff
path: root/test/formatters/installers/rustfmt.bash
diff options
context:
space:
mode:
authorEd Slocomb <edslocomb@gmail.com>2023-11-11 16:24:28 -0800
committerGitHub <noreply@github.com>2023-11-11 16:24:28 -0800
commitf884d1d61108d4942dd02c95bf5fd05daeedf47e (patch)
treea23cc0a46e651fabe95b22e7cb24124265567e26 /test/formatters/installers/rustfmt.bash
parent314af56e8dc1eb9f71a70e6c1858e6f6021cf708 (diff)
Bump test environment to Ubuntu 22.04 (#242)
This also fixes a few test installers: - rustfmt is available via apt-get in 22.04, use that instead of tarball that's no longer available - brittany now installs cleanly in the default haskell ghc/cabal in 22.04, so just use that - perltidy in 22.04 has slightly different output - nixfmt download url changed (now includes OS/arch). There was initially no binary available when nixfmt was updated, but the devs there were kind enough to provide one: https://github.com/serokell/nixfmt/issues/139 This runs a full `make fmt-build` without errors, though it takes a while ;). All tests pass, too.
Diffstat (limited to 'test/formatters/installers/rustfmt.bash')
-rw-r--r--test/formatters/installers/rustfmt.bash6
1 files changed, 1 insertions, 5 deletions
diff --git a/test/formatters/installers/rustfmt.bash b/test/formatters/installers/rustfmt.bash
index 7ce08d8..5d30b88 100644
--- a/test/formatters/installers/rustfmt.bash
+++ b/test/formatters/installers/rustfmt.bash
@@ -1,5 +1 @@
-ver="$(latest_release rust-lang/rustfmt | sed 's/^v//')"
-
-wget "https://github.com/rust-lang/rustfmt/releases/download/v${ver}/rustfmt_linux-x86_64_v${ver}.tar.gz" -O rustfmt.tar.gz
-tar -xf rustfmt.tar.gz
-cp rustfmt*/rustfmt /usr/local/bin/
+apt-get install rustfmt -y