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

chore: Bump golangci-lint version to v1.57 #828

Merged
merged 1 commit into from
Mar 26, 2024
Merged

chore: Bump golangci-lint version to v1.57 #828

merged 1 commit into from
Mar 26, 2024

Conversation

alexandear
Copy link
Contributor

@alexandear alexandear commented Mar 26, 2024

This PR fixes the failing golangci-lint GitHub workflow. It became failing after merging #813 (action).

The golangci-lint workflow is failing because golangci-lint v1.52 was built with Go 1.19, so it's unfamiliar about Go 1.21 features that this repo is using.

Changes:

  • Update the golangci-lint version to v1.57 in .github/workflows/golangci-lint.yml. This version is the latest and is compatible with Go 1.21.
  • Fix .golangci.yml config and disable all new linters after v1.52. Likely, we will fix issues from them later.
  • Fix simple issues from the revive linter about an unused parameter and from gofmt about an unsorted import.
  • As now we fix all issues, we can set only-new-issues: false (default value) in .github/workflows/golangci-lint.yml.

@alexandear alexandear requested a review from jaqx0r as a code owner March 26, 2024 21:02
@alexandear alexandear changed the title chore: Bump golangci-lint v1.57 chore: Bump golangci-lint version to v1.57 Mar 26, 2024

This comment has been minimized.

@jaqx0r jaqx0r enabled auto-merge March 26, 2024 21:18
@jaqx0r jaqx0r added this pull request to the merge queue Mar 26, 2024
@jaqx0r
Copy link
Contributor

jaqx0r commented Mar 26, 2024

Thanks again!

Merged via the queue into google:main with commit 0ff5a18 Mar 26, 2024
15 checks passed
Copy link
Contributor

Unit Test Results

       1 files  ±0       27 suites  ±0   8m 46s ⏱️ +3s
   645 tests ±0     644 ✔️ ±0  1 💤 ±0  0 ❌ ±0 
1 908 runs  ±0  1 905 ✔️ ±0  3 💤 ±0  0 ❌ ±0 

Results for commit 0ff5a18. ± Comparison against base commit 7b1512a.

@alexandear alexandear deleted the chore-bump-golangci-lint branch March 27, 2024 09:35
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.

2 participants