DockerCLI/cli-plugins/manager
Sebastiaan van Stijn 7c80e4f938
update go:build tags to use go1.22
commit 4a7b04d412 configured golangci-lint
to use go1.23 semantics, which enabled the copyloopvar linter.

go1.22 now creates a copy of variables when assigned in a loop; make sure we
don't have files that may downgrade semantics to go1.21 in case that also means
disabling that feature; https://go.dev/ref/spec#Go_1.22

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-11-12 12:38:18 +01:00
..
candidate.go golangci-lint: enable G204, add #nosec comments instead 2024-10-30 15:52:18 +01:00
candidate_test.go linting: address else/if/elseif statements found by gocritic 2023-11-20 16:02:16 +01:00
cobra.go cli-plugins/manager: remove redundant capturing of loop vars (copyloopvar) 2024-11-05 10:14:32 +01:00
error.go update go:build tags to use go1.22 2024-11-12 12:38:18 +01:00
error_test.go linting: fmt.Errorf can be replaced with errors.New (perfsprint) 2024-06-10 21:19:31 +02:00
hooks.go plugins/hooks: Don't show empty hooks 2024-05-20 11:20:39 +02:00
hooks_test.go plugins/hooks: Don't show empty hooks 2024-05-20 11:20:39 +02:00
manager.go golangci-lint: enable G204, add #nosec comments instead 2024-10-30 15:52:18 +01:00
manager_test.go cli-plugins/manager: getPluginDirs: take ConfigFile as argument 2024-01-11 18:15:30 +01:00
manager_unix.go cli-plugins/manager: add GoDoc for getPluginDirs, defaultSystemPluginDirs 2024-06-19 14:02:40 +02:00
manager_windows.go cli-plugins/manager: add GoDoc for getPluginDirs, defaultSystemPluginDirs 2024-06-19 14:02:40 +02:00
metadata.go cli-plugins: Introduce support for hooks 2024-03-22 17:30:18 +00:00
plugin.go golangci-lint: enable G204, add #nosec comments instead 2024-10-30 15:52:18 +01:00
suffix_unix.go remove pre-go1.17 build-tags 2023-05-05 18:23:03 +02:00
suffix_windows.go Check for `.exe` case insensitively 2019-01-30 13:45:26 +00:00