From c973aac89116cdb64f2392309f845f18a33c04a9 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Wed, 9 Jun 2021 15:28:23 +0300 Subject: [PATCH] [#599] Makefile: Remove test_dep target Flag `-i` is deprecated in go1.16 and it has pretty much no effect since go1.10 when build cache was introduced. Read more about this at https://golang.org/doc/go1.16 Signed-off-by: Alex Vanin --- .github/workflows/go.yml | 3 --- Makefile | 8 +------- 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 5c2d7d1f6..762a49a31 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -35,9 +35,6 @@ jobs: restore-keys: | ${{ runner.os }}-go-${{ matrix.go }}- - - name: Get test dependencies - run: make test_dep - - name: Run go test run: go test -coverprofile=coverage.txt -covermode=atomic ./... diff --git a/Makefile b/Makefile index 0ec60d83a..5b2d3a239 100644 --- a/Makefile +++ b/Makefile @@ -49,12 +49,6 @@ dep: GO111MODULE=on \ go mod tidy -v && echo OK -test_dep: - @printf "⇒ Install test requirements: " - CGO_ENABLED=0 \ - GO111MODULE=on \ - go test -i ./... && echo OK - # Regenerate proto files: protoc: @GOPRIVATE=github.com/nspcc-dev go mod vendor @@ -99,7 +93,7 @@ imports: @GO111MODULE=on goimports -w cmd/ pkg/ misc/ # Run Unit Test with go test -test: test_dep +test: @echo "⇒ Running go test" @GO111MODULE=on go test ./...