mirror of
https://github.com/opentofu/opentofu.git
synced 2026-02-18 18:17:54 -05:00
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> |
||
|---|---|---|
| .. | ||
| testdata | ||
| .gitignore | ||
| automation_test.go | ||
| doc.go | ||
| encryption_test.go | ||
| init_test.go | ||
| main_test.go | ||
| make-archive.sh | ||
| module_archive_test.go | ||
| primary_test.go | ||
| provider_dev_test.go | ||
| provider_functions_test.go | ||
| provider_plugin_test.go | ||
| providers_mirror_test.go | ||
| providers_tamper_test.go | ||
| provisioner_plugin_test.go | ||
| provisioner_test.go | ||
| remote_state_test.go | ||
| static_plan_test.go | ||
| strip_ansi.go | ||
| test_test.go | ||
| tf_provider_data_test.go | ||
| unmanaged_test.go | ||
| version_test.go | ||