Skip to content
This repository has been archived by the owner on Feb 18, 2025. It is now read-only.

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
@ronensc ronensc deleted the golangci-lint-pre-commit branch December 20, 2023 15:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent versions of golangci-lint
2 participants