Skip to content

Commit 63af63d

Browse files
committed
lnrpc: avoid needing to download Golang
Because the Go version used to run the `go list` commands is below the minimum version specified in the main go.mod file, every time the `make rpc` command is executed, the Golang runtime is downloaded twice, which looks like this and takes a couple of seconds at least: go: downloading go1.21.4 (linux/amd64) go: downloading go1.21.4 (linux/amd64) We fix this by using the correct minimum version.
1 parent ab96de3 commit 63af63d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lnrpc/gen_protos_docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set -e
66
DIR="$(cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd)"
77

88
# golang docker image version used in this script.
9-
GO_IMAGE=docker.io/library/golang:1.21.0-alpine
9+
GO_IMAGE=docker.io/library/golang:1.21.4-alpine
1010

1111
PROTOBUF_VERSION=$(docker run --rm -v $DIR/../:/lnd -w /lnd $GO_IMAGE \
1212
go list -f '{{.Version}}' -m google.golang.org/protobuf)

0 commit comments

Comments
 (0)