mod+tools+Makefile: use go install to fetch dependencies

Instead of hard coding a commit to use for a binary tool that we use
during the build process, we now only use "go install" to install the
binaries and the golang builtin versioning system to pin the exact
version/commit we want to use in go.mod.
This commit is contained in:
Oliver Gugger
2021-11-29 13:11:04 +01:00
parent 44266f3889
commit 43158b6b59
4 changed files with 242 additions and 30 deletions

6
go.mod
View File

@@ -16,9 +16,12 @@ require (
github.com/btcsuite/btcwallet/wtxmgr v1.3.1-0.20210822222949-9b5a201c344c
github.com/coreos/go-systemd v0.0.0-20190719114852-fd7a80b32e1f
github.com/davecgh/go-spew v1.1.1
github.com/dvyukov/go-fuzz v0.0.0-20210602112143-b1f3d6f4ef4e
github.com/elazarl/go-bindata-assetfs v1.0.1 // indirect
github.com/go-errors/errors v1.0.1
github.com/go-openapi/strfmt v0.19.5 // indirect
github.com/golang/protobuf v1.5.2
github.com/golangci/golangci-lint v1.18.0
github.com/gorilla/websocket v1.4.2
github.com/grpc-ecosystem/go-grpc-middleware v1.3.0
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
@@ -49,7 +52,9 @@ require (
github.com/ltcsuite/ltcd v0.0.0-20190101042124-f37f8bf35796
github.com/mattn/go-runewidth v0.0.9 // indirect
github.com/miekg/dns v1.1.43
github.com/ory/go-acc v0.2.6
github.com/prometheus/client_golang v1.11.0
github.com/stephens2424/writerset v1.0.2 // indirect
github.com/stretchr/testify v1.7.0
github.com/tv42/zbase32 v0.0.0-20160707012821-501572607d02
github.com/urfave/cli v1.20.0
@@ -61,6 +66,7 @@ require (
golang.org/x/sys v0.0.0-20210915083310-ed5796bab164 // indirect
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1
golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba
golang.org/x/tools v0.1.7
google.golang.org/grpc v1.38.0
google.golang.org/protobuf v1.26.0
gopkg.in/errgo.v1 v1.0.1 // indirect