-
Notifications
You must be signed in to change notification settings - Fork 54
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
linters deadcode and varcheck deprecated in golangci-lint v1.49 #817
Comments
You beat me to it. One thing to keep in mind is this is only an issue locally for now as our CI is locked to a version before this. |
unsure, but I suggest we find replacements for the functionalities of these 'lost' linters, if possible |
No, they were deprecated because they were doing repetitive tasks (similar to |
ok, nice |
Blocked until this is fixed: golangci/golangci-lint-action#540 The issue that made us hard code to version v1.47 still persists (#727) lint action uses the default built binary that enforces go v1.19 formatting. suggest waiting for this until that is fixed (or else we would manually have to build golang-ci every time in the CI). Or until we bump to GoLang v1.19 |
- Resolves #817 - Resolves #1070 - This PR was initially started as: `ci: Bump workflow's golang-ci lint version` to fix the golang-ci lint issue. This work that was done in this PR was the following: - Remove the `deadcode` and `varcheck` linters that are now deprecated with `v1.49` - Remove all `nolint` directives where the deprecated linters were being referenced. - Update CI's linter version to use the latest version. However as the golang-ci lint team still didn't fix that issue but golang1.19 was released we can just fix those errors and bump the GoLang version for defradb and keeping the previous linter fixes. Inaddtion also re-enabling the `goheader` linter rule as the change was somehow dropped when we released defradb v0.4.
- Resolves #817 - Resolves #1070 - This PR was initially started as: `ci: Bump workflow's golang-ci lint version` to fix the golang-ci lint issue. This work that was done in this PR was the following: - Remove the `deadcode` and `varcheck` linters that are now deprecated with `v1.49` - Remove all `nolint` directives where the deprecated linters were being referenced. - Update CI's linter version to use the latest version. However as the golang-ci lint team still didn't fix that issue but golang1.19 was released we can just fix those errors and bump the GoLang version for defradb and keeping the previous linter fixes. Inaddtion also re-enabling the `goheader` linter rule as the change was somehow dropped when we released defradb v0.4.
- Resolves sourcenetwork#817 - Resolves sourcenetwork#1070 - This PR was initially started as: `ci: Bump workflow's golang-ci lint version` to fix the golang-ci lint issue. This work that was done in this PR was the following: - Remove the `deadcode` and `varcheck` linters that are now deprecated with `v1.49` - Remove all `nolint` directives where the deprecated linters were being referenced. - Update CI's linter version to use the latest version. However as the golang-ci lint team still didn't fix that issue but golang1.19 was released we can just fix those errors and bump the GoLang version for defradb and keeping the previous linter fixes. Inaddtion also re-enabling the `goheader` linter rule as the change was somehow dropped when we released defradb v0.4.
No description provided.
The text was updated successfully, but these errors were encountered: