[#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 <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2021-03-30 18:01:11 +03:00 committed by Alex Vanin
parent 576ed4075e
commit bf7b8679bf

View file

@ -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: "