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

ci: use project defined golangci-lint version #341

Merged
merged 3 commits into from
Jun 14, 2023

Conversation

pmalek
Copy link
Member

@pmalek pmalek commented Jun 7, 2023

Do not depend on pre-installed golangci-lint version. Use a project defined version, as it's done in e.g. KIC

@pmalek pmalek added the area/maintenance Cleanup, refactoring, and other maintenance improvements that don't change functionality. label Jun 7, 2023
@pmalek pmalek self-assigned this Jun 7, 2023
@pmalek pmalek requested a review from a team as a code owner June 7, 2023 09:46
@pmalek pmalek enabled auto-merge (squash) June 7, 2023 09:47
@codecov-commenter
Copy link

codecov-commenter commented Jun 7, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (2467c8c) 52.77% compared to head (c957993) 52.77%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #341   +/-   ##
=======================================
  Coverage   52.77%   52.77%           
=======================================
  Files          69       69           
  Lines        5095     5095           
=======================================
  Hits         2689     2689           
  Misses       1832     1832           
  Partials      574      574           
Flag Coverage Δ
2.1.4 36.29% <ø> (ø)
2.2.1.3 46.77% <ø> (ø)
2.2.2 36.29% <ø> (ø)
2.3.3 36.34% <ø> (ø)
2.3.3.4 ?
2.4.1 36.42% <ø> (ø)
2.4.1.3 ?
2.5.1.2 ?
2.5.2 36.42% <ø> (ø)
2.6.1 36.42% <ø> (ø)
2.6.1.0 ?
2.7.2 36.42% <ø> (ø)
2.7.2.0 49.04% <ø> (ø)
2.8.3 36.42% <ø> (ø)
2.8.4.0 ?
3.0.2 35.87% <ø> (ø)
3.0.2.0 49.49% <ø> (ø)
3.1.1 37.36% <ø> (ø)
3.1.1.3 50.99% <ø> (ø)
3.2.2 37.42% <ø> (ø)
3.2.2.1 50.99% <ø> (ø)
community 37.97% <ø> (ø)
enterprise 51.54% <ø> (ø)
enterprise-nightly 50.99% <ø> (ø)
integration 52.77% <ø> (ø)
nightly 37.42% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@pmalek pmalek requested a review from a team June 13, 2023 09:45
@aboudreault
Copy link
Contributor

aboudreault commented Jun 13, 2023

In case we would like to avoid this third_party package, we could also do something like this: https://github.com/Kong/koko-private/blob/dev/scripts/install-tools.sh#L27-L30 (used with make install-tools in koko)

@pmalek
Copy link
Member Author

pmalek commented Jun 13, 2023

In case we would like to avoid this third_party package, we could also do something like this: https://github.com/Kong/koko-private/blob/dev/scripts/install-tools.sh#L27-L30 (used with make install-tools in koko)

This is exactly what we're trying to avoid for 3 reasons:

  • arbitrary code execution internet | sh
  • it's not (or might not be) idempotent: each time the installer needs to be downloaded and it might download the binary itself (depends how it's) written. With go.mod based approach, it's idempotent.
  • you can the benefits of dependabot automatically creating PRs for new versions and when those get merged and people pull those changes they'll automatically start using those

@pmalek pmalek merged commit a49e916 into main Jun 14, 2023
42 checks passed
@pmalek pmalek deleted the use-project-defined-golangci-lint-version branch June 14, 2023 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/maintenance Cleanup, refactoring, and other maintenance improvements that don't change functionality.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants