From 1c76c6198c956dfdb1c6b5b11000695b9bf401fb Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Tue, 6 May 2025 15:49:54 -0700 Subject: [PATCH] build: bump Go version to v1.23.9 --- .github/workflows/main.yml | 2 +- .github/workflows/release.yaml | 2 +- .golangci.yml | 2 +- Dockerfile | 2 +- Makefile | 2 +- dev.Dockerfile | 2 +- docker/btcd/Dockerfile | 2 +- docs/INSTALL.md | 18 +++++++++--------- lnrpc/Dockerfile | 2 +- make/builder.Dockerfile | 2 +- tools/Dockerfile | 2 +- 11 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4bbe88971..50ae6ea6d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -34,7 +34,7 @@ env: # If you change this please also update GO_VERSION in Makefile (then run # `make lint` to see where else it needs to be updated as well). - GO_VERSION: 1.23.6 + GO_VERSION: 1.23.9 jobs: ######################## diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 660d07bca..74dcfbd45 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -12,7 +12,7 @@ defaults: env: # If you change this please also update GO_VERSION in Makefile (then run # `make lint` to see where else it needs to be updated as well). - GO_VERSION: 1.23.6 + GO_VERSION: 1.23.9 jobs: main: diff --git a/.golangci.yml b/.golangci.yml index 54125c88b..7e76289de 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,7 +1,7 @@ run: # If you change this please also update GO_VERSION in Makefile (then run # `make lint` to see where else it needs to be updated as well). - go: "1.23.6" + go: "1.23.9" # Abort after 10 minutes. timeout: 10m diff --git a/Dockerfile b/Dockerfile index 2020ffefa..ce42fef1f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # If you change this please also update GO_VERSION in Makefile (then run # `make lint` to see where else it needs to be updated as well). -FROM golang:1.23.6-alpine as builder +FROM golang:1.23.9-alpine as builder # Force Go to use the cgo based DNS resolver. This is required to ensure DNS # queries required to connect to linked containers succeed. diff --git a/Makefile b/Makefile index d57f262c4..f068aeae1 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ ACTIVE_GO_VERSION_MINOR := $(shell echo $(ACTIVE_GO_VERSION) | cut -d. -f2) # GO_VERSION is the Go version used for the release build, docker files, and # GitHub Actions. This is the reference version for the project. All other Go # versions are checked against this version. -GO_VERSION = 1.23.6 +GO_VERSION = 1.23.9 GOBUILD := $(GOCC) build -v GOINSTALL := $(GOCC) install -v diff --git a/dev.Dockerfile b/dev.Dockerfile index b7a936625..37518c795 100644 --- a/dev.Dockerfile +++ b/dev.Dockerfile @@ -1,6 +1,6 @@ # If you change this please also update GO_VERSION in Makefile (then run # `make lint` to see where else it needs to be updated as well). -FROM golang:1.23.6-alpine AS builder +FROM golang:1.23.9-alpine AS builder LABEL maintainer="Olaoluwa Osuntokun " diff --git a/docker/btcd/Dockerfile b/docker/btcd/Dockerfile index 6c617f1d9..ebfab6714 100644 --- a/docker/btcd/Dockerfile +++ b/docker/btcd/Dockerfile @@ -1,6 +1,6 @@ # If you change this please also update GO_VERSION in Makefile (then run # `make lint` to see where else it needs to be updated as well). -FROM golang:1.23.6-alpine as builder +FROM golang:1.23.9-alpine as builder LABEL maintainer="Olaoluwa Osuntokun " diff --git a/docs/INSTALL.md b/docs/INSTALL.md index e72c68e71..e17c6996e 100644 --- a/docs/INSTALL.md +++ b/docs/INSTALL.md @@ -93,7 +93,7 @@ following build dependencies are required: ### Installing Go -`lnd` is written in Go, with a minimum version of `1.23.6` (or, in case this +`lnd` is written in Go, with a minimum version of `1.23.9` (or, in case this document gets out of date, whatever the Go version in the main `go.mod` file requires). To install, run one of the following commands for your OS: @@ -101,16 +101,16 @@ requires). To install, run one of the following commands for your OS: Linux (x86-64) ``` - wget https://dl.google.com/go/go1.23.6.linux-amd64.tar.gz - sha256sum go1.23.6.linux-amd64.tar.gz | awk -F " " '{ print $1 }' + wget https://dl.google.com/go/go1.23.9.linux-amd64.tar.gz + sha256sum go1.23.9.linux-amd64.tar.gz | awk -F " " '{ print $1 }' ``` The final output of the command above should be - `9379441ea310de000f33a4dc767bd966e72ab2826270e038e78b2c53c2e7802d`. If it + `de03e45d7a076c06baaa9618d42b3b6a0561125b87f6041c6397680a71e5bb26`. 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.23.6.linux-amd64.tar.gz + sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.23.9.linux-amd64.tar.gz export PATH=$PATH:/usr/local/go/bin ``` @@ -119,16 +119,16 @@ requires). To install, run one of the following commands for your OS: Linux (ARMv6) ``` - wget https://dl.google.com/go/go1.23.6.linux-armv6l.tar.gz - sha256sum go1.23.6.linux-armv6l.tar.gz | awk -F " " '{ print $1 }' + wget https://dl.google.com/go/go1.23.9.linux-armv6l.tar.gz + sha256sum go1.23.9.linux-armv6l.tar.gz | awk -F " " '{ print $1 }' ``` The final output of the command above should be - `27a4611010c16b8c4f37ade3aada55bd5781998f02f348b164302fd5eea4eb74`. If it + `ade33880caacb8919b48767e0957e9880f2cdf634e137402a6f22552504136dd`. 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.23.6.linux-armv6l.tar.gz + sudo rm -rf /usr/local/go && tar -C /usr/local -xzf go1.23.9.linux-armv6l.tar.gz export PATH=$PATH:/usr/local/go/bin ``` diff --git a/lnrpc/Dockerfile b/lnrpc/Dockerfile index 18e57bb95..923b2a0b8 100644 --- a/lnrpc/Dockerfile +++ b/lnrpc/Dockerfile @@ -1,6 +1,6 @@ # If you change this please also update GO_VERSION in Makefile (then run # `make lint` to see where else it needs to be updated as well). -FROM golang:1.23.6-bookworm +FROM golang:1.23.9-bookworm RUN apt-get update && apt-get install -y \ git \ diff --git a/make/builder.Dockerfile b/make/builder.Dockerfile index 88e3b283c..906162aa4 100644 --- a/make/builder.Dockerfile +++ b/make/builder.Dockerfile @@ -1,6 +1,6 @@ # If you change this please also update GO_VERSION in Makefile (then run # `make lint` to see where else it needs to be updated as well). -FROM golang:1.23.6-bookworm +FROM golang:1.23.9-bookworm MAINTAINER Olaoluwa Osuntokun diff --git a/tools/Dockerfile b/tools/Dockerfile index 47269143e..f8758e26b 100644 --- a/tools/Dockerfile +++ b/tools/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.23.6 +FROM golang:1.23.9 RUN apt-get update && apt-get install -y git ENV GOCACHE=/tmp/build/.cache