Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ci: use skip-package-name-checks, pin golangci-lint to v2.2.1, remove only-new-issues, for #7415#7416

Merged
stasadev merged 2 commits intoddev:mainfrom
stasadev:20250630_stasadev_golangci-lint
Jun 30, 2025
Merged

ci: use skip-package-name-checks, pin golangci-lint to v2.2.1, remove only-new-issues, for #7415#7416
stasadev merged 2 commits intoddev:mainfrom
stasadev:20250630_stasadev_golangci-lint

Conversation

@stasadev
Copy link
Member

@stasadev stasadev commented Jun 30, 2025

The Issue

There are some more warnings related to:

And @rfay pointed out that behavior added in the PR below is confusing:

How This PR Solves The Issue

  • Uses skip-package-name-checks to disable this check. It often reports inconsistent results, likely due to caching issues (golangci-lint cache clean && golangci-lint run)
  • Reverts changes made in test: Ignore existing golangci-lint/revive package complaints #7415 as not needed.
  • Removes only-new-issues, so full lint checks run on PRs.
  • Pins for golangci-lint to v2.2.1, which avoids future breakage from upstream changes. This adds some maintenance since we need to bump it manually, but it prevents unexpected linter failures.

Manual Testing Instructions

Automated Testing Overview

Release/Deployment Notes

@stasadev stasadev requested a review from a team as a code owner June 30, 2025 15:51
@github-actions
Copy link

github-actions bot commented Jun 30, 2025

@stasadev stasadev force-pushed the 20250630_stasadev_golangci-lint branch from 626d2f7 to 1c28677 Compare June 30, 2025 16:26
@stasadev stasadev changed the title ci: pin golangci-lint to v2.2.1, remove only-new-issues, for #7415 ci: use skip-package-name-checks, pin golangci-lint to v2.2.1, remove only-new-issues, for #7415 Jun 30, 2025
@stasadev
Copy link
Member Author

Static Validation doesn't complain anymore https://github.com/ddev/ddev/actions/runs/15978385040/job/45066665574?pr=7416#step:5:32

@stasadev stasadev merged commit 4bcbcfe into ddev:main Jun 30, 2025
24 of 28 checks passed
@stasadev stasadev deleted the 20250630_stasadev_golangci-lint branch June 30, 2025 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments