From bf7b8679bf9fbed7c85f6df862056fea3f06156a Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Tue, 30 Mar 2021 18:01:11 +0300 Subject: [PATCH] [#450] Fix go.sum changes at builds with go1.16 There are changes in `go mod download` in go1.16 and it adds checksums for all module contents. Therefore we should perform `go mod tidy` after `go mod download`. Read more at https://github.com/golang/go/issues/43994 Signed-off-by: Alex Vanin --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index e1df6268..0ec60d83 100644 --- a/Makefile +++ b/Makefile @@ -40,14 +40,14 @@ $(DIRS): # Pull go dependencies 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 "⇒ Tidy requirements : " + CGO_ENABLED=0 \ + GO111MODULE=on \ + go mod tidy -v && echo OK test_dep: @printf "⇒ Install test requirements: "