From 2c0a8ff689063728ce8d029b8d787ec8fbb40b2d Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Wed, 3 Mar 2021 01:12:22 +0100 Subject: [PATCH] core: prevent release failure With go1.16 there is a difference between `go mod tidy` and `go mod download`. The `go.sum` is not altered in the same way by both commands. `go mod tidy` must be always called after the `go mod download`. https://github.com/golang/go/issues/43994 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5f592df4..e5fa812e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -47,10 +47,10 @@ jobs: - name: Check and get dependencies run: | + go mod download go mod tidy git diff --exit-code go.mod git diff --exit-code go.sum - go mod download - name: Documentation validation run: make validate-doc