Skip to content

Commit 35c4d96

Browse files
authored
Merge pull request opencontainers#4721 from kolyshkin/no-toolchain-check
ci: add check for toolchain in go.mod
2 parents 7483452 + c899193 commit 35c4d96

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/validate.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ jobs:
144144
check-latest: true
145145
- name: verify deps
146146
run: make verify-dependencies
147+
- name: no toolchain in go.mod # See https://github.com/opencontainers/runc/pull/4717, https://github.com/dependabot/dependabot-core/issues/11933.
148+
run: if grep -q '^toolchain ' go.mod; then echo "Error: go.mod must not have toolchain directive, please fix"; exit 1; fi
147149

148150

149151
commit:

0 commit comments

Comments
 (0)