mirror of
https://github.com/opentffoundation/opentf.git
synced 2025-12-19 17:59:05 -05:00
improve go.mod and go.sum consistency checks (#3210)
Signed-off-by: Diogenes Fernandes <diofeher@gmail.com>
This commit is contained in:
committed by
GitHub
parent
1099db8569
commit
a1c8b3163a
2
.github/workflows/checks.yml
vendored
2
.github/workflows/checks.yml
vendored
@@ -149,7 +149,7 @@ jobs:
|
||||
- name: "go.mod and go.sum consistency check"
|
||||
run: |
|
||||
go mod tidy
|
||||
if [[ -n "$(git status --porcelain)" ]]; then
|
||||
if [[ -n "$(git status --porcelain go.mod go.sum)" ]]; then
|
||||
echo >&2 "ERROR: go.mod/go.sum are not up-to-date. Run 'go mod tidy' and then commit the updated files."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user