Skip to content

Commit b93bb38

Browse files
authored
Merge pull request #325 from kzys/go-mod-tidy
Make go mod tidy mandatory
2 parents 161e237 + d577cde commit b93bb38

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.buildkite/pipeline.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,7 @@ steps:
131131
- label: 'go mod tidy'
132132
commands:
133133
- 'go mod tidy'
134-
- test -z "$(git status --porcelain)" && exit 0 || git --no-pager diff && echo -e '\ngo.mod and/or go.sum differ from committed, please run "go mod tidy" and commit the updated files.\n' && exit 42
135-
soft_fail:
136-
- exit_status: 42 # Dependabot doesn't modify go.mod and go.sum
134+
- test -z "$(git status --porcelain)" && exit 0 || git --no-pager diff && echo -e '\ngo.mod and/or go.sum differ from committed, please run "go mod tidy" and commit the updated files.\n' && exit 1
137135
agents:
138136
queue: "${BUILDKITE_AGENT_META_DATA_QUEUE:-default}"
139137
distro: "${BUILDKITE_AGENT_META_DATA_DISTRO}"

0 commit comments

Comments
 (0)