Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix golangci-lint inconsistencies #110

Merged
merged 3 commits into from
Dec 20, 2023

Conversation

ronensc
Copy link
Contributor

@ronensc ronensc commented Dec 20, 2023

Issue link

fixes #108

What changes have been made

  1. Changed golangci-lint pre-commit hook to run the version installed by Makefile instead of some random version found in $PATH.
  2. Updated the installed version of golangci-lint: v1.54.2 -> v1.55.2
  3. Removed the redundant Setup golangci-lint step from mcad-CI since the new definition of the golangci-lint hook installs it on the fly.

BTW, the other golang pre-commit hooks are taken from a repo that is sunset. I would recommend taking these hooks from a different repo which is still maintained.
dnephin/pre-commit-golang#98

Verification steps

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • Testing is not required for this change

Copy link
Collaborator

@dgrove-oss dgrove-oss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dgrove-oss dgrove-oss merged commit d1e0fbf into project-codeflare:main Dec 20, 2023
1 check passed
@ronensc ronensc deleted the golangci-lint-pre-commit branch December 20, 2023 15:02
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.

Inconsistent versions of golangci-lint
2 participants