From d7a81a1fe34e9a35c069752a5da5464fdafbae9b Mon Sep 17 00:00:00 2001 From: ffranr Date: Mon, 20 Nov 2023 18:13:01 +0000 Subject: [PATCH] multi: use Go version 1.22.5 throughout --- .golangci.yml | 2 +- docker/btcd/Dockerfile | 2 +- docs/INSTALL.md | 16 ++++++++-------- lnrpc/Dockerfile | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 2d6f539c5..f1b4ea3df 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -57,7 +57,7 @@ linters-settings: - G306 # Poor file permissions used when writing to a new file. staticcheck: - go: "1.21" + go: "1.22.5" checks: ["-SA1019"] lll: diff --git a/docker/btcd/Dockerfile b/docker/btcd/Dockerfile index bbea92a54..0a54540c8 100644 --- a/docker/btcd/Dockerfile +++ b/docker/btcd/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.21.0-alpine as builder +FROM golang:1.22.5-alpine as builder LABEL maintainer="Olaoluwa Osuntokun " diff --git a/docs/INSTALL.md b/docs/INSTALL.md index 819e5708a..3090835f3 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -100,16 +100,16 @@ the following commands for your OS: Linux (x86-64) ``` - wget https://dl.google.com/go/go1.22.4.linux-amd64.tar.gz - sha256sum go1.22.4.linux-amd64.tar.gz | awk -F " " '{ print $1 }' + wget https://dl.google.com/go/go1.22.5.linux-amd64.tar.gz + sha256sum go1.22.5.linux-amd64.tar.gz | awk -F " " '{ print $1 }' ``` The final output of the command above should be - `ba79d4526102575196273416239cca418a651e049c2b099f3159db85e7bade7d`. If it + `904b924d435eaea086515bc63235b192ea441bd8c9b198c507e85009e6e4c7f0`. If it isn't, then the target REPO HAS BEEN MODIFIED, and you shouldn't install this version of Go. If it matches, then proceed to install Go: ``` - sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.22.4.linux-amd64.tar.gz + sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.22.5.linux-amd64.tar.gz export PATH=$PATH:/usr/local/go/bin ``` @@ -118,16 +118,16 @@ the following commands for your OS: Linux (ARMv6) ``` - wget https://dl.google.com/go/go1.22.4.linux-armv6l.tar.gz - sha256sum go1.22.4.linux-armv6l.tar.gz | awk -F " " '{ print $1 }' + wget https://dl.google.com/go/go1.22.5.linux-armv6l.tar.gz + sha256sum go1.22.5.linux-armv6l.tar.gz | awk -F " " '{ print $1 }' ``` The final output of the command above should be - `e2b143fbacbc9cbd448e9ef41ac3981f0488ce849af1cf37e2341d09670661de`. If it + `8c4587cf3e63c9aefbcafa92818c4d9d51683af93ea687bf6c7508d6fa36f85e`. If it isn't, then the target REPO HAS BEEN MODIFIED, and you shouldn't install this version of Go. If it matches, then proceed to install Go: ``` - sudo rm -rf /usr/local/go && tar -C /usr/local -xzf go1.22.4.linux-armv6l.tar.gz + sudo rm -rf /usr/local/go && tar -C /usr/local -xzf go1.22.5.linux-armv6l.tar.gz export PATH=$PATH:/usr/local/go/bin ``` diff --git a/lnrpc/Dockerfile b/lnrpc/Dockerfile index f779cc95c..207ae694f 100644 --- a/lnrpc/Dockerfile +++ b/lnrpc/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.21.0-bookworm +FROM golang:1.22.5-bookworm RUN apt-get update && apt-get install -y \ git \