Skip to content

Commit

Permalink
Fix go get deprecation warning (closes #205)
Browse files Browse the repository at this point in the history
  • Loading branch information
adatzer committed Jun 22, 2022
1 parent 215fe5f commit 85474c1
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 85474c1

Please sign in to comment.