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