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
..
2025-01-27 17:07:40 +02:00
2025-02-19 08:15:29 -08:00
2025-02-26 11:33:43 -08:00
2024-11-19 10:15:21 -08:00
2025-02-26 11:33:43 -08:00
2025-02-24 14:53:32 -05:00
2024-11-19 10:15:21 -08:00
2024-11-19 10:15:21 -08:00
2024-02-08 09:48:59 +00:00
2024-12-02 09:18:07 -05:00
2024-10-23 10:42:38 -04:00
2024-11-19 10:15:21 -08:00
2025-01-02 13:24:11 -08:00
2024-11-19 10:15:21 -08:00
2025-01-03 10:41:05 -05:00
2025-02-05 15:14:19 +04:00
2025-02-26 11:33:43 -08:00
2025-02-05 15:14:19 +04:00
2024-04-25 07:19:15 -04:00
2024-04-25 07:19:15 -04:00
2024-11-19 10:15:21 -08:00
2024-11-19 10:15:21 -08:00
2025-02-19 08:15:29 -08:00
2025-01-27 17:07:40 +02:00
2024-11-19 10:15:21 -08:00
2024-11-19 10:15:21 -08:00
2025-02-12 18:40:54 +02:00
2024-02-08 09:48:59 +00:00
2024-11-05 18:08:23 -05:00
2024-12-12 12:47:57 -05:00
2024-11-05 18:08:23 -05:00
2024-11-05 18:08:23 -05:00
2025-01-02 13:24:11 -08:00
2025-01-02 13:24:11 -08:00
2024-04-17 17:12:10 +03:00
2024-09-06 14:33:05 +01:00
2024-11-05 06:19:52 -05:00
2024-12-11 07:46:40 -05:00
2024-12-04 14:24:44 -05:00
2024-12-04 14:24:44 -05:00
2024-11-05 18:08:23 -05:00
2024-02-08 09:48:59 +00:00
2024-09-09 07:51:39 -04:00
2024-04-10 08:04:08 -04:00
2024-02-08 09:48:59 +00:00
2024-08-29 13:20:33 -04:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-11-05 18:08:23 -05:00
2024-12-20 10:47:00 +02:00
2024-10-23 10:42:38 -04:00
2024-12-02 09:18:07 -05:00
2024-11-05 10:16:00 -05:00
2024-02-08 09:48:59 +00:00
2024-07-24 13:44:20 -04:00
2024-07-15 11:58:43 +02:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-09-09 07:51:39 -04:00
2024-11-05 18:08:23 -05:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-11-19 10:15:21 -08:00
2025-02-24 14:53:32 -05:00
2024-02-08 09:48:59 +00:00
2025-02-24 14:53:32 -05:00
2025-02-24 14:53:32 -05:00
2025-02-24 14:53:32 -05:00
2024-02-08 09:48:59 +00:00
2024-07-09 08:42:02 -04:00
2024-07-09 08:42:02 -04:00
2024-02-08 09:48:59 +00:00
2024-11-05 18:08:23 -05:00
2024-11-05 18:08:23 -05:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-06-06 13:20:41 +03:00
2025-01-02 13:24:11 -08:00
2024-11-19 10:15:21 -08:00
2024-12-02 09:18:07 -05:00
2025-02-11 19:02:21 +02:00
2025-02-11 19:02:21 +02:00
2024-02-08 09:48:59 +00:00
2024-11-05 18:08:23 -05:00
2024-11-05 18:08:23 -05:00
2024-11-07 11:56:21 -05:00
2024-11-05 18:08:23 -05:00
2025-01-08 12:34:52 -05:00
2025-02-05 15:14:19 +04:00
2025-02-05 15:14:19 +04:00
2025-01-08 12:34:52 -05:00
2024-11-05 18:08:23 -05:00
2024-02-08 09:48:59 +00:00
2024-12-12 12:47:57 -05:00
2025-01-08 12:34:52 -05:00
2025-01-08 12:34:52 -05:00
2025-01-08 12:34:52 -05:00
2025-01-08 12:34:52 -05:00
2025-01-08 12:34:52 -05:00
2025-01-08 12:34:52 -05:00
2024-12-12 12:47:57 -05:00
2025-01-08 12:34:52 -05:00
2024-11-25 23:52:03 +02:00
2024-11-05 18:08:23 -05:00
2025-01-02 13:24:11 -08:00
2024-12-02 09:18:07 -05:00
2024-12-02 09:18:07 -05:00
2024-02-08 09:48:59 +00:00
2024-12-04 14:24:44 -05:00
2025-02-19 08:15:29 -08:00
2023-09-20 15:16:53 +03:00
2025-02-05 15:14:19 +04:00
2025-02-05 15:14:19 +04:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-04-25 07:19:15 -04:00
2024-08-29 13:20:33 -04:00
2024-11-05 18:08:23 -05:00
2024-10-23 10:42:38 -04:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-06-03 16:49:36 +03:00
2024-04-29 11:36:54 -04:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-06-06 13:20:41 +03:00
2024-11-05 18:08:23 -05:00
2024-12-20 10:47:00 +02:00
2024-11-05 18:08:23 -05:00
2024-11-05 18:08:23 -05:00
2024-02-08 09:48:59 +00:00
2024-02-21 10:31:44 +02:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-11-05 18:08:23 -05:00
2024-02-08 09:48:59 +00:00
2024-07-29 15:55:37 -04:00
2024-07-29 15:55:37 -04:00
2024-12-02 09:18:07 -05:00
2024-12-02 09:18:07 -05:00
2024-11-05 18:08:23 -05:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-11-05 18:08:23 -05:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-11-05 10:16:00 -05:00
2024-12-02 09:18:07 -05:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-10-29 12:07:10 +02:00
2024-12-12 12:47:57 -05:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-06-06 13:20:41 +03:00
2024-02-08 09:48:59 +00:00
2024-11-05 10:16:00 -05:00
2024-11-05 10:16:00 -05:00
2024-04-10 08:04:08 -04:00
2024-02-08 09:48:59 +00:00
2024-12-02 09:18:07 -05:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-07-24 13:44:20 -04:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2025-02-05 15:14:19 +04:00
2025-02-05 15:14:19 +04:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-02-08 09:48:59 +00:00
2024-08-29 13:20:33 -04:00
2023-09-20 15:16:53 +03:00
2024-02-08 09:48:59 +00:00
2024-09-09 07:51:39 -04:00
2024-02-08 09:48:59 +00:00
2023-09-20 15:16:53 +03:00