Skip to content

Commit d577cde

Browse files
committed
Make go mod tidy mandatory
Since Dependabot is now able to run "go mod tidy", we can make it mandatory on all changes. https://github.blog/changelog/2020-10-19-dependabot-go-mod-tidy-and-vendor-support/ Signed-off-by: Kazuyoshi Kato <[email protected]>
1 parent b453d4a commit d577cde

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)