mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-22 00:13:52 +01:00
lazy.sh: use 'go install' + import paths from build/tools.go
This commit is contained in:
parent
c80e6aa7a4
commit
a584c87eea
7
lazy.sh
7
lazy.sh
@ -39,12 +39,7 @@ godep() {
|
|||||||
export GOOS="$GOHOSTOS"
|
export GOOS="$GOHOSTOS"
|
||||||
export GOARCH="$GOHOSTARCH"
|
export GOARCH="$GOHOSTARCH"
|
||||||
# TODO GOARM=$GOHOSTARM?
|
# TODO GOARM=$GOHOSTARM?
|
||||||
go build -v -mod=readonly -o "$GOPATH/bin/stringer" golang.org/x/tools/cmd/stringer
|
cat tools.go | grep _ | awk -F'"' '{print $2}' | tee | xargs -tI '{}' go install '{}'
|
||||||
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
|
|
||||||
set +x
|
set +x
|
||||||
popd
|
popd
|
||||||
if ! type stringer || ! type protoc-gen-go || ! type enumer || ! type goimports || ! type golangci-lint || ! type gocovmerge; then
|
if ! type stringer || ! type protoc-gen-go || ! type enumer || ! type goimports || ! type golangci-lint || ! type gocovmerge; then
|
||||||
|
Loading…
Reference in New Issue
Block a user