From 85474c1be314ce53f6586a2925b081e3fc8ebd8b Mon Sep 17 00:00:00 2001 From: adatzer Date: Sat, 4 Jun 2022 17:52:10 +0300 Subject: [PATCH] Fix go get deprecation warning (closes #205) --- Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 764f6f6..ed45c61 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,7 @@ zip_windows = $(zip_prefix)_windows_$(zip_suffix) # ----------------------------------------------------------------------------- all: - GO111MODULE=on go get -u github.com/mitchellh/gox + GO111MODULE=on go install github.com/mitchellh/gox@latest GO111MODULE=on CGO_ENABLED=0 gox -osarch=linux/amd64 -output=$(bin_linux) ./$(src_dir) GO111MODULE=on CGO_ENABLED=0 gox -osarch=darwin/amd64 -output=$(bin_darwin) ./$(src_dir) GO111MODULE=on CGO_ENABLED=0 gox -osarch=windows/amd64 -output=$(bin_windows) ./$(src_dir) @@ -54,7 +54,7 @@ format: GO111MODULE=on gofmt -s -w ./$(src_dir) lint: - GO111MODULE=on go get -u golang.org/x/lint/golint + GO111MODULE=on go install golang.org/x/lint/golint@latest GO111MODULE=on golint ./$(src_dir) tidy: @@ -74,14 +74,16 @@ setup-up: setup-down: docker-compose -f ./integration/docker-compose.yml down -test: +test-setup: mkdir -p $(coverage_dir) - GO111MODULE=on go get -u golang.org/x/tools/cmd/cover + GO111MODULE=on go install golang.org/x/tools/cmd/cover@latest + +test: test-setup GO111MODULE=on go test ./$(src_dir) -tags test -v -covermode=count -coverprofile=$(coverage_out) GO111MODULE=on go tool cover -html=$(coverage_out) -o $(coverage_html) goveralls: test - GO111MODULE=on go get -u github.com/mattn/goveralls + GO111MODULE=on go install github.com/mattn/goveralls@latest goveralls -coverprofile=$(coverage_out) -service=github integration: