From c3ff3e91b00daab8a2eea3c76f079ce8304a1cfd Mon Sep 17 00:00:00 2001 From: ZZiigguurraatt Date: Wed, 16 Jul 2025 15:43:08 -0400 Subject: [PATCH] dev.Dockerfile: allow forcing a taprpc version We can now use the `TAPRPC_VERSION` build argument to force a specific taprpc version to be used when building. If the `TAPRPC_VERSION` build argument is not set, then build continues as before this change and uses the version already defined in `go.mod` and `go.sum`. --- dev.Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/dev.Dockerfile b/dev.Dockerfile index d7f6fa0a..a67686c8 100644 --- a/dev.Dockerfile +++ b/dev.Dockerfile @@ -30,12 +30,13 @@ COPY --from=nodejsbuilder /go/src/github.com/lightninglabs/lightning-terminal /g # queries required to connect to linked containers succeed. ENV GODEBUG netdns=cgo -# Allow forcing a specific lnd and taproot-assets version through a build -# argument. +# Allow forcing a specific lnd, taproot-assets, and taprpc version through a +# build argument. # Please see https://go.dev/ref/mod#version-queries for the types of # queries that can be used to define a version. ARG LND_VERSION ARG TAPROOT_ASSETS_VERSION +ARG TAPRPC_VERSION # Need to restate this since running in a new container from above. ARG NO_UI @@ -53,6 +54,11 @@ RUN apk add --no-cache --update alpine-sdk make \ go get -v github.com/lightninglabs/taproot-assets@$TAPROOT_ASSETS_VERSION \ && go mod tidy; \ fi \ + # If a custom taprpc version is supplied, force it now. + && if [ -n "$TAPRPC_VERSION" ]; then \ + go get -v github.com/lightninglabs/taproot-assets/taprpc@$TAPRPC_VERSION \ + && go mod tidy; \ + fi \ && if [ "$NO_UI" -eq "1" ]; then \ make go-install-noui \ && make go-install-cli-noui; \