From f0e8bde7619b97427068dea75348c2f34a2b96a2 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Wed, 27 Jul 2022 18:54:44 +0300 Subject: [PATCH] [#182] Drop GO111MODULE from builds It is enabled by default since go1.16 Signed-off-by: Alex Vanin --- Makefile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Makefile b/Makefile index a5489d1..c9d9be4 100644 --- a/Makefile +++ b/Makefile @@ -22,7 +22,6 @@ all: $(BINS) $(BINS): $(DIRS) dep @echo "⇒ Build $@" CGO_ENABLED=0 \ - GO111MODULE=on \ go build -v -trimpath \ -ldflags "-X main.Version=$(VERSION)" \ -o $@ ./ @@ -35,11 +34,9 @@ $(DIRS): dep: @printf "⇒ Download requirements: " @CGO_ENABLED=0 \ - GO111MODULE=on \ go mod download && echo OK @printf "⇒ Tidy requirements: " @CGO_ENABLED=0 \ - GO111MODULE=on \ go mod tidy -v && echo OK docker/%: @@ -65,7 +62,7 @@ cover: # Reformat code fmt: @echo "⇒ Processing gofmt check" - @GO111MODULE=on gofmt -s -w ./ + @gofmt -s -w ./ # Build clean Docker image image: