Skip to content

fix: propagate golangci-lint exit code in filtered run#2736

Open
phanikumar122 wants to merge 1 commit into
rtk-ai:developfrom
phanikumar122:fix/golangci-exit-code
Open

fix: propagate golangci-lint exit code in filtered run#2736
phanikumar122 wants to merge 1 commit into
rtk-ai:developfrom
phanikumar122:fix/golangci-exit-code

Conversation

@phanikumar122

Copy link
Copy Markdown

Summary

Test plan

  • cargo fmt --all && cargo clippy --all-targets && cargo test
  • Manual testing: rtk <command> output inspected

Important: All PRs must target the develop branch (not master).
See CONTRIBUTING.md for details.

- rtk golangci-lint run now returns exit 1 when lint issues are found
- Previously the exit code was inverted, masking lint failures
- Automation like pre-commit hooks and CI/CD now correctly detect lint failures
- Fixes rtk-ai#2735
@CLAassistant

CLAassistant commented Jun 29, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: rtk golangci-lint run returns exit 0 when lint issues are found (exit code masked)

2 participants