Skip to content

Commit 49b2b7f

Browse files
Fix golangci-lint github actions execution by excluding nx-os provider
For now, we exclude the cisco nx-os provider package from being linted inside of the github actions pipeline. This is due to it containing lots of generated code which will exceed the runner's constraints. The same code can and should still be linted locally.
1 parent 221d0a1 commit 49b2b7f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/checks.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ jobs:
3333
- name: Run prepare make target
3434
run: make generate
3535
- name: Run golangci-lint
36-
uses: golangci/golangci-lint-action@v8
37-
with:
38-
version: latest
36+
run: |
37+
# FIXME: Exclude cisco nx-os provider from golangci-lint as it includes
38+
# a lot of generated code that will exceed the runners's constraints.
39+
go list -f '{{.Dir}}' ./... | grep -v nxos/ | xargs golangci-lint run
3940
- name: Run shellcheck
4041
uses: ludeeus/action-shellcheck@2.0.0
4142
- name: Dependency Licenses Review

0 commit comments

Comments
 (0)