mirror of
https://github.com/opencontainers/runc.git
synced 2025-09-26 19:41:35 +08:00
Merge pull request #4750 from rata/go-mod-exclude-linter
ci: Check for exclude/replace directives
This commit is contained in:
3
.github/workflows/validate.yml
vendored
3
.github/workflows/validate.yml
vendored
@@ -147,6 +147,9 @@ jobs:
|
||||
- name: no toolchain in go.mod # See https://github.com/opencontainers/runc/pull/4717, https://github.com/dependabot/dependabot-core/issues/11933.
|
||||
run: |
|
||||
if grep -q '^toolchain ' go.mod; then echo "Error: go.mod must not have toolchain directive, please fix"; exit 1; fi
|
||||
- name: no exclude nor replace in go.mod
|
||||
run: |
|
||||
if grep -Eq '^\s*(exclude|replace) ' go.mod; then echo "Error: go.mod must not have exclude/replace directive, it breaks go install. Please fix"; exit 1; fi
|
||||
|
||||
|
||||
commit:
|
||||
|
Reference in New Issue
Block a user