Add latest stable Go version to tools file

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-05-07 16:38:08 +02:00
parent c402753e55
commit 9237b9224f
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5
2 changed files with 12 additions and 9 deletions

View file

@ -7,7 +7,7 @@ export GO111MODULE=on
# Remove mod-cache on exit as its permissions are FUBAR # Remove mod-cache on exit as its permissions are FUBAR
trap "go clean -modcache" EXIT trap "go clean -modcache" EXIT
packages=($(cat tools.txt)) packages=($(grep -v "^#" tools.txt))
for package in "${packages[@]}"; do for package in "${packages[@]}"; do
echo -e "\e[96mBuilding ${package}...\e[m" >&2 echo -e "\e[96mBuilding ${package}...\e[m" >&2

View file

@ -1,10 +1,13 @@
#!/bin/bash #!/bin/bash
set -euo pipefail set -euo pipefail
curl -sSf https://archlinux.org/packages/community/x86_64/go/json/ |
jq -r '"# " + .pkgname + " v" + .pkgver + "-" + .pkgrel' >tools.txt.new
curl -sSfL "https://raw.githubusercontent.com/fatih/vim-go/master/plugin/go.vim" | curl -sSfL "https://raw.githubusercontent.com/fatih/vim-go/master/plugin/go.vim" |
grep -Eo "\\ \['[^']*/[^']*'" | grep -Eo "\\ \['[^']*/[^']*'" |
tr -d "[' " | tr -d "[' " |
sort >tools.txt.new sort >>tools.txt.new
diff tools.txt tools.txt.new && { diff tools.txt tools.txt.new && {
echo "Up to date" echo "Up to date"