lnrpc: migrate deprecated go get to go install

Starting in Go 1.17, installing executables with go get is deprecated.
Migrate our docker file for lnrpc protos.
This commit is contained in:
positiveblue 2021-10-21 23:51:37 -07:00
parent cac8da819f
commit 416a96e2c1
No known key found for this signature in database
GPG Key ID: 4FFF2510928804DC
2 changed files with 9 additions and 6 deletions

View File

@ -331,6 +331,8 @@ messages directly. There is no routing/path finding involved.
add MacChan field for passing back lnd's admin macaroon back to the program add MacChan field for passing back lnd's admin macaroon back to the program
calling lnd, when needed. calling lnd, when needed.
* Using `go get` to install go executables is now deprecated. Migrate to `go install` our lnrpc proto dockerfile [Migrate `go get` to `go install`](https://github.com/lightningnetwork/lnd/pull/5879)
## Code Health ## Code Health
### Code cleanup, refactor, typo fixes ### Code cleanup, refactor, typo fixes
@ -544,6 +546,7 @@ change](https://github.com/lightningnetwork/lnd/pull/5613).
* Harsha Goli * Harsha Goli
* Jesse de Wit * Jesse de Wit
* Joost Jager * Joost Jager
* Jordi Montes
* Martin Habovstiak * Martin Habovstiak
* Naveen Srinivasan * Naveen Srinivasan
* Oliver Gugger * Oliver Gugger

View File

@ -20,12 +20,12 @@ RUN cd /tmp \
&& mkdir -p /tmp/build/.cache \ && mkdir -p /tmp/build/.cache \
&& mkdir -p /tmp/build/.modcache \ && mkdir -p /tmp/build/.modcache \
&& export GO111MODULE=on \ && export GO111MODULE=on \
&& go get google.golang.org/protobuf/cmd/protoc-gen-go@${PROTOBUF_VERSION} \ && go install google.golang.org/protobuf/cmd/protoc-gen-go@${PROTOBUF_VERSION} \
&& go get google.golang.org/grpc/cmd/protoc-gen-go-grpc@${PROTOC_GEN_GO_GRPC_VERSION} \ && go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@${PROTOC_GEN_GO_GRPC_VERSION} \
&& go get github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@${GRPC_GATEWAY_VERSION} \ && go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@${GRPC_GATEWAY_VERSION} \
&& go get github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@${GRPC_GATEWAY_VERSION} \ && go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@${GRPC_GATEWAY_VERSION} \
&& go get github.com/lightninglabs/falafel@${FALAFEL_VERSION} \ && go install github.com/lightninglabs/falafel@${FALAFEL_VERSION} \
&& go get golang.org/x/tools/cmd/goimports \ && go install golang.org/x/tools/cmd/goimports@v0.1.7 \
&& chmod -R 777 /tmp/build/ && chmod -R 777 /tmp/build/
WORKDIR /build WORKDIR /build