1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-06 03:13:48 +02:00
goreleaser/internal/pipe
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
..
announce feat(announce): add BlueSky support (#4779) 2024-04-22 23:15:26 -03:00
archive refactor: remove unneeded in Go 1.22 loop var copy (#4856) 2024-05-12 13:21:13 -03:00
artifactory refactor: remove unneeded in Go 1.22 loop var copy (#4856) 2024-05-12 13:21:13 -03:00
aur fix(aur): allow to have multiple AUR configs pointing to the same repo (#4712) 2024-03-19 23:53:08 -03:00
before test: simplify error asserts with require.ErrorContains (#4640) 2024-02-19 16:28:06 -03:00
blob refactor: remove unneeded in Go 1.22 loop var copy (#4856) 2024-05-12 13:21:13 -03:00
bluesky fix(bluesky): change default env, fix user agent, update tests 2024-04-22 23:25:00 -03:00
brew fix(brew): linux brew with extra end 2024-05-05 23:04:22 -03:00
build refactor: remove unneeded in Go 1.22 loop var copy (#4856) 2024-05-12 13:21:13 -03:00
changelog feat(changelog): custom commit format (#4802) 2024-04-24 09:08:20 -03:00
checksums refactor: remove unneeded in Go 1.22 loop var copy (#4856) 2024-05-12 13:21:13 -03:00
chocolatey chore: fix all existing lint issues (#4637) 2024-02-19 08:49:39 -03:00
custompublishers fix(custom_publishers): skip publish is check by publish pipe (#4274) 2023-09-04 16:21:11 -03:00
defaults Revert "fix: skip defaults for skipped pipes (#4210)" 2023-08-09 02:43:34 +00:00
discord fix: close HTTP resp body to prevent resource leak (#4857) 2024-05-12 13:17:31 -03:00
dist feat: consistently use directory in property names (#4737) 2024-04-01 10:01:56 -03:00
docker refactor: remove unneeded in Go 1.22 loop var copy (#4856) 2024-05-12 13:21:13 -03:00
effectiveconfig
env test: simplify error asserts with require.ErrorContains (#4640) 2024-02-19 16:28:06 -03:00
git test: simplify error asserts with require.ErrorContains (#4640) 2024-02-19 16:28:06 -03:00
gomod fix: lint issues 2024-04-22 23:44:28 -03:00
ko refactor: remove unneeded in Go 1.22 loop var copy (#4856) 2024-05-12 13:21:13 -03:00
krew feat(krew): sync fork before opening PR 2024-03-26 23:34:15 -03:00
linkedin chore(deps): update env from v9 to v11 (#4789) 2024-04-16 22:51:47 -03:00
mastodon chore(deps): update env from v9 to v11 (#4789) 2024-04-16 22:51:47 -03:00
mattermost chore(deps): update env from v9 to v11 (#4789) 2024-04-16 22:51:47 -03:00
metadata feat: add metadata to the release (#4714) 2024-03-26 23:41:41 -03:00
milestone chore: fix all existing lint issues (#4637) 2024-02-19 08:49:39 -03:00
nfpm refactor: remove unneeded in Go 1.22 loop var copy (#4856) 2024-05-12 13:21:13 -03:00
nix fix(nix): update valid licenses 2024-05-02 20:39:26 -03:00
notary feat: notarize macos binaries (#4774) 2024-04-19 22:27:50 -03:00
opencollective chore(deps): update env from v9 to v11 (#4789) 2024-04-16 22:51:47 -03:00
partial feat: improve --single-target (#4442) 2023-11-27 18:29:50 -03:00
prebuild feat: improve template error handling (#4256) 2023-08-24 22:06:12 -03:00
project fix: decouple project_name guessing from the release pipe (#4335) 2023-10-14 18:59:07 -03:00
publish test: run testifylint -fix (#4483) 2023-12-17 15:34:28 -03:00
reddit chore(deps): update env from v9 to v11 (#4789) 2024-04-16 22:51:47 -03:00
release refactor: remove unneeded in Go 1.22 loop var copy (#4856) 2024-05-12 13:21:13 -03:00
reportsizes feat: metadata mod_timestamp (#4188) 2023-07-15 16:53:52 -03:00
sbom fix: lint issues 2024-04-22 23:44:28 -03:00
scoop refactor: remove unneeded in Go 1.22 loop var copy (#4856) 2024-05-12 13:21:13 -03:00
semver test: simplify error asserts with require.ErrorContains (#4640) 2024-02-19 16:28:06 -03:00
sign fix: lint issues 2024-04-22 23:44:28 -03:00
slack chore(deps): update env from v9 to v11 (#4789) 2024-04-16 22:51:47 -03:00
smtp chore(deps): update env from v9 to v11 (#4789) 2024-04-16 22:51:47 -03:00
snapcraft refactor: remove unneeded in Go 1.22 loop var copy (#4856) 2024-05-12 13:21:13 -03:00
snapshot fix: snapshot should run before before hooks (#4250) 2023-08-15 10:24:53 -03:00
sourcearchive feat: remove deprecated rlcp options (#4076) 2023-06-06 13:54:43 -03:00
teams chore(deps): update env from v9 to v11 (#4789) 2024-04-16 22:51:47 -03:00
telegram fix: telegram default message (#4821) 2024-05-02 20:37:15 -03:00
twitter chore(deps): update env from v9 to v11 (#4789) 2024-04-16 22:51:47 -03:00
universalbinary refactor: remove unneeded in Go 1.22 loop var copy (#4856) 2024-05-12 13:21:13 -03:00
upload refactor: remove unneeded in Go 1.22 loop var copy (#4856) 2024-05-12 13:21:13 -03:00
upx refactor: remove unneeded in Go 1.22 loop var copy (#4856) 2024-05-12 13:21:13 -03:00
webhook chore(deps): update env from v9 to v11 (#4789) 2024-04-16 22:51:47 -03:00
winget fix: winget paths on windows (#4786) 2024-04-16 20:57:22 -03:00
pipe_test.go test: simplify error asserts with require.ErrorContains (#4640) 2024-02-19 16:28:06 -03:00
pipe.go docs: remove mentions to --skip-something flags 2024-05-09 23:18:53 -03:00