opentofu/internal/command/cliconfig
Martin Atkins 068df07d11 various: Remove legacy "+build" comments
Go 1.17 and earlier used a different syntax for build constraint comments,
starting with "+build". Go 1.18 changed this to the modern "go:build" form
as part of standardizing the structure of toolchain directive comments,
and so for a while it was convention to include comments in both styles
to allow building with both old and new Go compilers.

However, Go 1.17 is no longer supported, and regardless of that we only
expect OpenTofu to be built with the specific version we have selected
in "go.mod" and ".go-version" anyway, so we no longer need the legacy form
of these comments: the all supported Go toolchains now support the new
form, which this commit retains.

golangci-lint v2.6.0 includes a check for this legacy form, so removing
this will also allow us to upgrade to a newer version of that linter
aggregator in a future commit.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2025-11-01 08:00:01 -03:00
..
ociauthconfig ociauthconfig: Tolerate weird "auths" objects in Docker-style configs 2025-04-29 13:11:14 -07:00
svcauthconfig Adopt OpenTofu's own "svchost" module 2025-06-12 09:37:59 -07:00
testdata cliconfig: Create testable shim for fs actions (#3435) 2025-10-29 12:03:55 -05:00
cliconfig.go cliconfig: Create testable shim for fs actions (#3435) 2025-10-29 12:03:55 -05:00
cliconfig_test.go cliconfig: Create testable shim for fs actions (#3435) 2025-10-29 12:03:55 -05:00
config_loader.go cliconfig: Create testable shim for fs actions (#3435) 2025-10-29 12:03:55 -05:00
config_locations_helper_test.go cliconfig: Create testable shim for fs actions (#3435) 2025-10-29 12:03:55 -05:00
config_locations_macos_test.go various: Remove legacy "+build" comments 2025-11-01 08:00:01 -03:00
config_locations_unix_test.go various: Remove legacy "+build" comments 2025-11-01 08:00:01 -03:00
config_locations_windows_test.go various: Remove legacy "+build" comments 2025-11-01 08:00:01 -03:00
config_unix.go various: Remove legacy "+build" comments 2025-11-01 08:00:01 -03:00
config_unix_test.go various: Remove legacy "+build" comments 2025-11-01 08:00:01 -03:00
config_windows.go various: Remove legacy "+build" comments 2025-11-01 08:00:01 -03:00
credentials.go hcl2shim: Split out legacy subset 2025-07-10 08:13:25 -07:00
credentials_test.go Add download_retry_count for direct and network_mirror in CLI configuration (#3368) 2025-10-18 11:42:25 +03:00
oci_credentials.go cliconfig: Config.OCICredentialsPolicy 2025-03-13 08:19:57 -07:00
oci_credentials_test.go cliconfig: Create testable shim for fs actions (#3435) 2025-10-29 12:03:55 -05:00
provider_installation.go Remove unused hcl tags (#3391) 2025-10-20 10:49:08 +03:00
provider_installation_test.go Add download_retry_count for direct and network_mirror in CLI configuration (#3368) 2025-10-18 11:42:25 +03:00
registry_protocols.go cliconfig: Registry protocol retry count and timeout settings 2025-09-10 11:45:38 -07:00
registry_protocols_test.go cliconfig: Registry protocol retry count and timeout settings 2025-09-10 11:45:38 -07:00
util.go cliconfig: Create testable shim for fs actions (#3435) 2025-10-29 12:03:55 -05:00