opentofu/internal/command/e2etest
Mikel Olasagasti Uranga 66765bdab3 Fix: Ensure constant format strings in fmt and printf calls
Go 1.24 introduces stricter checks for format string validation.
This commit fixes instances where non-constant format strings were
used in calls to functions like `fmt.Errorf`, `fmt.Printf`, and similar.

Changes include:
- Replacing dynamically constructed strings passed as format strings
with constant format strings.
- Refactoring `fmt.Sprintf` calls to ensure the format string matches
the number of arguments provided.
- Simplifying redundant formatting and ensuring compliance with Go
1.24's stricter `vet` tool checks.

This update ensures compatibility with Go 1.24 and prevents potential
runtime errors caused by misinterpreted dynamic format strings.

Resolves #2389

Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info>
Co-authored-by: Martin Atkins <mart@degeneration.co.uk>
Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2025-02-26 11:33:43 -08:00
..
testdata Add a new warning when a provider cannot be downloaded and it was requested by an implicit usage (#2479) 2025-02-12 18:40:54 +02:00
.gitignore Move command/ to internal/command/ 2021-05-17 14:09:07 -07:00
automation_test.go chore: fix repetitive words (#1472) 2024-04-07 13:48:13 +02:00
doc.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
encryption_test.go Fix: Ensure constant format strings in fmt and printf calls 2025-02-26 11:33:43 -08:00
init_test.go Add a new warning when a provider cannot be downloaded and it was requested by an implicit usage (#2479) 2025-02-12 18:40:54 +02:00
main_test.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
make-archive.sh Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
module_archive_test.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
primary_test.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
provider_dev_test.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
provider_functions_test.go add automated copyright header check (#1696) 2024-06-03 16:49:36 +03:00
provider_plugin_test.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
providers_mirror_test.go Prevents providers mirror from crashing with bad lock file (#1985) 2024-09-25 09:01:17 -04:00
providers_tamper_test.go Fix typos (#1905) 2024-08-29 13:20:33 -04:00
provisioner_plugin_test.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
provisioner_test.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
remote_state_test.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
static_plan_test.go use dynamic types when handling variables during plan and show static evaluation (#1826) 2024-07-17 11:46:24 -04:00
strip_ansi.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
test_test.go implement override resources for mock providers (#2168) 2024-12-03 11:24:26 -05:00
tf_provider_data_test.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
unmanaged_test.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
version_test.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00