Skip to content

Commit ca0c2b6

Browse files
authored
Merge pull request #1116 from ZZiigguurraatt/TAPRPC_VERSION
dev.Dockerfile: allow forcing a taprpc version
2 parents 60a2b65 + c3ff3e9 commit ca0c2b6

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

dev.Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,13 @@ COPY --from=nodejsbuilder /go/src/github.com/lightninglabs/lightning-terminal /g
3030
# queries required to connect to linked containers succeed.
3131
ENV GODEBUG netdns=cgo
3232

33-
# Allow forcing a specific lnd and taproot-assets version through a build
34-
# argument.
33+
# Allow forcing a specific lnd, taproot-assets, and taprpc version through a
34+
# build argument.
3535
# Please see https://go.dev/ref/mod#version-queries for the types of
3636
# queries that can be used to define a version.
3737
ARG LND_VERSION
3838
ARG TAPROOT_ASSETS_VERSION
39+
ARG TAPRPC_VERSION
3940

4041
# Need to restate this since running in a new container from above.
4142
ARG NO_UI
@@ -53,6 +54,11 @@ RUN apk add --no-cache --update alpine-sdk make \
5354
go get -v github.com/lightninglabs/taproot-assets@$TAPROOT_ASSETS_VERSION \
5455
&& go mod tidy; \
5556
fi \
57+
# If a custom taprpc version is supplied, force it now.
58+
&& if [ -n "$TAPRPC_VERSION" ]; then \
59+
go get -v github.com/lightninglabs/taproot-assets/taprpc@$TAPRPC_VERSION \
60+
&& go mod tidy; \
61+
fi \
5662
&& if [ "$NO_UI" -eq "1" ]; then \
5763
make go-install-noui \
5864
&& make go-install-cli-noui; \

0 commit comments

Comments
 (0)