Skip to content

Commit

Permalink
.github/workflows: use Go 1.17 compatibility mode for go mod tidy
Browse files Browse the repository at this point in the history
Otherwise there is a mismatch in the selected version of some transient
dependencies.

Also see https://golang.org/doc/modules/pruning

Signed-off-by: Tobias Klauser <[email protected]>
  • Loading branch information
tklauser committed Nov 24, 2021
1 parent 21a37ae commit 0ea3e38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ jobs:

- name: Check module vendoring
run: |
go mod tidy
go mod tidy -compat=1.17
go mod vendor
go mod verify
test -z "$(git status --porcelain)" || (echo "please run 'go mod tidy && go mod vendor', and submit your changes"; exit 1)
test -z "$(git status --porcelain)" || (echo "please run 'go mod tidy -compat=1.17 && go mod vendor', and submit your changes"; exit 1)
- name: Build
run: make
Expand Down

0 comments on commit 0ea3e38

Please sign in to comment.