Merge pull request #9512 from Roasbeef/go-1-23
multi: update build system to Go 1.23
This commit is contained in:
21 files changed
+384
-363
No files matched your search
+1
-1
@@ -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.22.11-bookworm
|
||||
FROM golang:1.23.6-bookworm
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
|
||||
+14
-14
@@ -3,28 +3,28 @@
|
||||
set -e
|
||||
|
||||
# Directory of the script file, independent of where it's called from.
|
||||
DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
|
||||
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
|
||||
# golang docker image version used in this script.
|
||||
GO_IMAGE=docker.io/library/golang:1.22.11-alpine
|
||||
GO_IMAGE=docker.io/library/golang:1.23.6-alpine
|
||||
|
||||
PROTOBUF_VERSION=$(docker run --rm -v $DIR/../:/lnd -w /lnd $GO_IMAGE \
|
||||
go list -f '{{.Version}}' -m google.golang.org/protobuf)
|
||||
go list -f '{{.Version}}' -m google.golang.org/protobuf)
|
||||
GRPC_GATEWAY_VERSION=$(docker run --rm -v $DIR/../:/lnd -w /lnd $GO_IMAGE \
|
||||
go list -f '{{.Version}}' -m github.com/grpc-ecosystem/grpc-gateway/v2)
|
||||
go list -f '{{.Version}}' -m github.com/grpc-ecosystem/grpc-gateway/v2)
|
||||
|
||||
echo "Building protobuf compiler docker image..."
|
||||
docker build -t lnd-protobuf-builder \
|
||||
--build-arg PROTOBUF_VERSION="$PROTOBUF_VERSION" \
|
||||
--build-arg GRPC_GATEWAY_VERSION="$GRPC_GATEWAY_VERSION" \
|
||||
.
|
||||
--build-arg PROTOBUF_VERSION="$PROTOBUF_VERSION" \
|
||||
--build-arg GRPC_GATEWAY_VERSION="$GRPC_GATEWAY_VERSION" \
|
||||
.
|
||||
|
||||
echo "Compiling and formatting *.proto files..."
|
||||
docker run \
|
||||
--rm \
|
||||
--user "$UID:$(id -g)" \
|
||||
-e UID=$UID \
|
||||
-e COMPILE_MOBILE \
|
||||
-e SUBSERVER_PREFIX \
|
||||
-v "$DIR/../:/build" \
|
||||
lnd-protobuf-builder
|
||||
--rm \
|
||||
--user "$UID:$(id -g)" \
|
||||
-e UID=$UID \
|
||||
-e COMPILE_MOBILE \
|
||||
-e SUBSERVER_PREFIX \
|
||||
-v "$DIR/../:/build" \
|
||||
lnd-protobuf-builder
|
||||
Reference in new issue
Block a user