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

lint: Replace exportloopref by copyloopvar and intrange #1434

Merged
merged 2 commits into from
Dec 3, 2024

Conversation

gogolok
Copy link
Contributor

@gogolok gogolok commented Dec 3, 2024

Summary

The golangci-lint linter exportloopref is deprecated. As far as I understood, it can be replaced by the linters copyloopvar and intrange

$ make lint
> Installing golangci-lint...
go install github.com/golangci/golangci-lint/cmd/[email protected]
> Linting code...
WARN The linter 'exportloopref' is deprecated (since v1.60.2) due to: Since Go1.22 (loopvar) this linter is no longer relevant. Replaced by copyloopvar.

Signed-off-by: Robert Gogolok <[email protected]>
Signed-off-by: Robert Gogolok <[email protected]>
@gogolok gogolok requested a review from a team as a code owner December 3, 2024 09:15
@jabrown85 jabrown85 merged commit 8cfa351 into buildpacks:main Dec 3, 2024
7 checks passed
@gogolok gogolok deleted the loop_deprecation branch December 5, 2024 20:37
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