1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-06 03:13:48 +02:00
goreleaser/internal/pipe/scoop
Oleksandr Redko 00a376cc64
refactor: remove unneeded in Go 1.22 loop var copy (#4856)
The PR cleans up unnecessary loop variable copying and enables the
[`copyloopvar`](https://golangci-lint.run/usage/linters/#copyloopvar)
linter for detecting this redundant variable copying.

#### Additional notes

After the project upgraded to Go version 1.22 in #4779, copying
variables inside a `for` loop became unnecessary. See this [blog
post](https://go.dev/blog/loopvar-preview) for a detailed explanation.

The `copyloopvar` linter is only available from `golangci-lint` v1.57
onwards, so we also need to update this tool.
2024-05-12 13:21:13 -03:00
..
testdata feat(scoop): support arm64 (#4193) 2023-07-17 21:26:18 -03:00
scoop_test.go refactor: remove unneeded in Go 1.22 loop var copy (#4856) 2024-05-12 13:21:13 -03:00
scoop.go feat: consistently use directory in property names (#4737) 2024-04-01 10:01:56 -03:00