mirror of
https://github.com/vale981/apheleia
synced 2025-03-05 09:31:40 -05:00

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>
43 lines
812 B
Bash
Executable file
43 lines
812 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -euxo pipefail
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
apt-get update
|
|
apt-get install -y ca-certificates curl gnupg lsb-release software-properties-common
|
|
|
|
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
|
|
|
|
ubuntu_name="$(lsb_release -cs)"
|
|
node_repo="$(curl -fsSL https://deb.nodesource.com/setup_current.x | grep NODEREPO= | grep -Eo 'node_[0-9]+\.x' | head -n1)"
|
|
|
|
tee -a /etc/apt/sources.list.d/nodejs.list >/dev/null <<EOF
|
|
deb [arch=amd64] https://deb.nodesource.com/${node_repo} ${ubuntu_name} main
|
|
EOF
|
|
|
|
add-apt-repository -n ppa:longsleep/golang-backports
|
|
|
|
apt-get update
|
|
|
|
packages="
|
|
|
|
bsdmainutils
|
|
emacs-nox
|
|
git
|
|
jq
|
|
make
|
|
nodejs
|
|
sudo
|
|
unzip
|
|
wget
|
|
sudo
|
|
unzip
|
|
wget
|
|
|
|
"
|
|
|
|
apt-get install -y ${packages}
|
|
|
|
rm /etc/emacs/site-start.d/*
|
|
|
|
rm -rf /var/lib/apt/lists/*
|