Terry Howe
818fd2e734
chore: raise go directive to 1.27 and fix modernize findings ( #32810 )
...
Dependabot bumps that pull in a dependency requiring Go 1.27 (#32786 ,
#32755 ) raise the go directive in go.mod, which in turn activates the
modernize analyzer's embedlit and stringscut checks. Those checks then
fire on pre-existing code and fail golangci-lint, so every such bump is
blocked on a cleanup it does not own.
Do the cleanup once, here, together with the directive bump that makes
it legal: neither fix compiles at go 1.26.0 (promoted-field keys in
composite literals and strings.CutLast are both Go 1.27).
Changes are the modernize autofix, reviewed:
- embedlit: drop the embedded field type from struct literals, mostly
ObjectMeta/TypeMeta in tests, plus a few in production code.
- stringscut: parseTemplateSimpleErrorString now uses strings.CutLast
instead of strings.LastIndex with manual slicing.
CI already builds with Go 1.27 (GOLANG_VERSION in .github/env), so this
only aligns the module's declared language version with the toolchain.
Signed-off-by: Terry Howe <thowe@nvidia.com >
2026-10-26 08:10:41 -06:00
..
2026-07-21 20:19:45 +02:00
2026-07-24 13:24:06 +02:00
2026-10-20 18:02:08 -06:00
2026-07-24 14:18:15 +02:00
2026-07-27 19:53:24 +02:00
2026-07-21 19:50:03 +02:00
2026-08-31 15:58:34 -04:00
2026-08-23 06:24:34 -06:00
2026-08-25 20:42:36 -04:00
2026-07-27 19:53:24 +02:00
2026-07-27 19:53:24 +02:00
2026-07-14 19:22:09 -06:00
2025-11-04 11:33:42 +08:00
2025-02-24 15:11:54 +00:00
2026-07-06 08:36:33 +02:00
2025-02-24 15:11:54 +00:00
2025-02-24 15:11:54 +00:00
2026-07-21 19:33:01 +02:00
2026-08-31 16:06:07 -04:00
2025-02-27 13:55:49 +00:00
2026-02-23 16:46:35 -08:00
2025-02-27 13:55:49 +00:00
2026-07-27 19:53:24 +02:00
2025-02-27 13:55:49 +00:00
2026-07-27 19:53:24 +02:00
2025-07-09 11:30:22 +04:00
2026-07-27 19:53:24 +02:00
2025-02-27 13:55:49 +00:00
2026-07-27 19:53:24 +02:00
2025-02-24 15:11:54 +00:00
2025-02-27 13:55:49 +00:00
2026-07-27 19:53:24 +02:00
2025-02-24 15:11:54 +00:00
2026-07-21 20:21:21 +02:00
2026-03-14 08:47:43 +01:00
2026-07-21 20:19:45 +02:00
2026-06-01 15:16:32 +02:00
2026-07-21 21:03:25 +02:00
2026-08-31 14:07:08 -07:00
2026-05-30 05:19:51 -06:00
2026-03-14 09:06:55 +01:00
2026-07-21 20:18:27 +02:00
2026-10-25 06:27:22 -06:00
2026-07-27 19:53:24 +02:00
2026-07-24 13:24:06 +02:00
2026-07-14 19:22:09 -06:00
2026-04-08 21:31:08 -07:00
2025-09-02 09:53:22 -07:00
2026-07-21 20:14:42 +02:00
2026-07-06 08:36:33 +02:00
2026-07-21 21:03:25 +02:00
2026-07-21 20:16:55 +02:00
2026-06-12 20:03:14 -06:00
2026-06-12 20:03:14 -06:00
2026-07-21 20:15:41 +02:00
2026-02-26 18:55:56 +01:00
2025-09-01 10:49:01 -07:00
2026-02-23 16:46:35 -08:00
2025-02-24 15:11:54 +00:00
2026-08-31 16:06:07 -04:00
2026-07-27 19:53:24 +02:00
2025-02-24 15:11:54 +00:00
2026-07-27 19:53:24 +02:00
2025-02-24 15:11:54 +00:00
2026-08-31 16:06:07 -04:00
2025-02-24 15:11:54 +00:00
2025-02-24 15:11:54 +00:00
2026-08-31 15:50:46 -04:00
2025-02-24 15:11:54 +00:00
2026-10-26 08:10:41 -06:00
2026-07-18 07:10:36 -06:00
2026-07-21 20:14:42 +02:00
2026-07-06 23:16:46 +02:00
2026-07-24 14:18:15 +02:00
2025-09-02 10:19:48 -04:00
2025-10-30 18:00:08 +01:00
2025-12-21 09:13:24 -07:00
2026-08-31 16:06:07 -04:00
2026-07-06 08:36:33 +02:00
2025-02-24 15:11:54 +00:00
2026-07-27 19:53:24 +02:00
2025-09-02 10:19:48 -04:00
2025-04-21 12:13:10 -04:00
2026-07-27 14:46:55 +02:00
2026-07-27 09:01:58 +02:00
2026-07-21 20:19:45 +02:00
2026-10-25 06:27:22 -06:00
2026-07-27 19:53:24 +02:00
2026-06-19 08:37:48 +00:00
2026-07-27 19:53:24 +02:00
2026-08-31 16:06:07 -04:00
2025-02-24 15:11:54 +00:00
2026-03-14 08:47:43 +01:00
2026-07-24 18:45:58 +02:00
2026-08-31 15:50:46 -04:00
2026-07-21 20:18:27 +02:00
2026-07-14 19:22:09 -06:00
2026-07-27 19:53:24 +02:00
2026-07-06 23:16:46 +02:00
2026-07-10 11:07:34 +02:00
2026-08-31 16:06:07 -04:00
2025-11-07 23:09:48 +01:00
2026-07-18 07:10:36 -06:00
2026-07-24 13:24:06 +02:00
2026-07-19 20:50:56 -04:00
2026-07-21 20:02:57 +02:00
2025-09-17 11:14:34 -06:00
2025-09-16 20:00:24 -06:00
2026-06-18 16:03:12 +09:00