Skip to content

chore(Makefile): use linter version from dogfood Dockerfile #11147

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

Merged
merged 3 commits into from
Dec 12, 2023

Conversation

johnstcn
Copy link
Member

There was a mismatch between the version of golangci-lint we were using in our dogfood Dockerfile and the lint/go Makefile target.

  • Modfied lint/go to use the version of golangci-lint defined in dogfood/Dockerfile
  • Updated golangci-lint to the latest version.
  • Fixed the resulting linter complaints.

@johnstcn johnstcn self-assigned this Dec 12, 2023
@johnstcn johnstcn merged commit 197cd93 into main Dec 12, 2023
@johnstcn johnstcn deleted the cj/makefile-linter-version branch December 12, 2023 10:02
@github-actions github-actions bot locked and limited conversation to collaborators Dec 12, 2023
@matifali
Copy link
Member

Why de we need to install the linter again in Makefile if its already included in the dogfood image?

@johnstcn
Copy link
Member Author

Not everyone/everything uses dogfood; I believe CI does not.

@matifali
Copy link
Member

matifali commented Dec 12, 2023

I agree. One other option could be to run CI using our dogfood container.

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.

2 participants