From 166e80bb9688ca709c8895e842f3c60cc3e72f94 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Sun, 24 Jan 2021 23:25:24 +0100 Subject: [PATCH] lazy.sh: use 'go install' + import paths from build/tools.go --- lazy.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lazy.sh b/lazy.sh index 3362f4a..409255a 100755 --- a/lazy.sh +++ b/lazy.sh @@ -39,12 +39,7 @@ godep() { export GOOS="$GOHOSTOS" export GOARCH="$GOHOSTARCH" # TODO GOARM=$GOHOSTARM? - go build -v -mod=readonly -o "$GOPATH/bin/stringer" golang.org/x/tools/cmd/stringer - go build -v -mod=readonly -o "$GOPATH/bin/protoc-gen-go" github.com/golang/protobuf/protoc-gen-go - go build -v -mod=readonly -o "$GOPATH/bin/enumer" github.com/alvaroloes/enumer - go build -v -mod=readonly -o "$GOPATH/bin/goimports" golang.org/x/tools/cmd/goimports - go build -v -mod=readonly -o "$GOPATH/bin/golangci-lint" github.com/golangci/golangci-lint/cmd/golangci-lint - go build -v -mod=readonly -o "$GOPATH/bin/gocovmerge" github.com/wadey/gocovmerge + cat tools.go | grep _ | awk -F'"' '{print $2}' | tee | xargs -tI '{}' go install '{}' set +x popd if ! type stringer || ! type protoc-gen-go || ! type enumer || ! type goimports || ! type golangci-lint || ! type gocovmerge; then