From a7bcad6aa9093b7edde5a1b2b5f7247b8e720af0 Mon Sep 17 00:00:00 2001 From: Evgenii Stratonikov Date: Thu, 14 Mar 2024 10:25:23 +0300 Subject: [PATCH] [#68] Makefile: Drop GO111MODULE usages It is ignored since go1.17. Signed-off-by: Evgenii Stratonikov --- Makefile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index e421213..cd5e84d 100755 --- a/Makefile +++ b/Makefile @@ -9,15 +9,12 @@ VERSION ?= $(shell git describe --tags --match "v*" --abbrev=8 --dirty --always) dep: @printf "⇒ Tidy requirements : " CGO_ENABLED=0 \ - GO111MODULE=on \ go mod tidy -v && echo OK @printf "⇒ Download requirements: " CGO_ENABLED=0 \ - GO111MODULE=on \ go mod download && echo OK @printf "⇒ Install test requirements: " CGO_ENABLED=0 \ - GO111MODULE=on \ go test ./... && echo OK # Run all code formatters @@ -27,14 +24,14 @@ fmts: fmt imports fmt: @echo "⇒ Processing gofmt check" @for f in `find . -type f -name '*.go' -not -path './vendor/*' -not -name '*.pb.go' -prune`; do \ - GO111MODULE=on gofmt -s -w $$f; \ + gofmt -s -w $$f; \ done # Reformat imports imports: @echo "⇒ Processing goimports check" @for f in `find . -type f -name '*.go' -not -path './vendor/*' -not -name '*.pb.go' -prune`; do \ - GO111MODULE=on goimports -w $$f; \ + goimports -w $$f; \ done # Regenerate code for proto files @@ -56,7 +53,7 @@ protoc: # Run Unit Test with go test test: @echo "⇒ Running go test" - @GO111MODULE=on go test ./... -count=1 + @go test ./... -count=1 # Run linters lint: