Bjørn Erik Pedersen
4169c1f70f
modules: Ignore non-require blocks in go.mod rewrite
...
The Go 1.24 tool directive uses single-token entries inside a
tool ( ... ) block. The previous splitter treated any tab-indented
line as a require entry, causing an index out of range panic when
running hugo mod tidy on a module with a tool block.
Track the require block state explicitly so other blocks (tool,
replace, exclude, retract) are left untouched.
Fixes #14783
2026-04-20 19:11:41 +02:00
..
2023-05-22 18:54:34 +02:00
2023-05-16 18:01:29 +02:00
2026-02-12 20:52:56 +01:00
2026-04-17 09:40:23 +02:00
2026-02-12 20:52:56 +01:00
2026-03-23 17:49:13 +01:00
2025-11-27 20:41:56 +01:00
2023-05-16 18:01:29 +02:00
2025-10-05 18:08:52 +02:00
2024-12-13 09:23:09 +01:00
2025-02-13 08:40:26 +01:00
2023-05-27 16:56:54 +02:00
2026-04-19 11:15:49 +02:00
2023-05-28 12:55:44 +02:00
2026-02-16 22:34:29 +01:00
2025-11-27 20:41:56 +01:00
2025-11-27 20:41:56 +01:00
2025-11-27 20:41:56 +01:00
2025-11-27 20:41:56 +01:00
2025-11-27 20:41:56 +01:00
2025-11-27 20:41:56 +01:00
2024-02-22 15:36:27 +01:00
2026-02-13 18:23:56 +01:00
2025-10-16 12:39:11 +02:00
2025-11-27 20:41:56 +01:00
2025-11-27 20:41:56 +01:00
2025-11-27 20:41:56 +01:00
2025-11-27 20:41:56 +01:00
2025-11-27 20:41:56 +01:00
2025-11-27 20:41:56 +01:00
2025-11-27 20:41:56 +01:00
2026-02-12 20:52:56 +01:00
2026-02-11 13:34:10 +01:00
2023-08-23 18:05:18 +02:00
2025-09-07 22:47:25 +02:00
2025-09-07 22:47:25 +02:00
2025-09-07 22:47:25 +02:00
2023-05-28 12:55:44 +02:00
2024-02-22 16:00:03 +01:00
2023-10-22 16:32:01 +02:00
2026-03-28 19:48:28 +01:00
2026-03-28 19:48:28 +01:00
2026-03-28 19:48:28 +01:00
2026-03-28 19:48:28 +01:00
2026-04-20 19:11:41 +02:00
2026-03-28 19:48:28 +01:00
2026-03-28 19:48:28 +01:00
2026-03-28 19:48:28 +01:00
2024-01-27 16:28:14 +01:00
2026-04-18 15:06:28 +02:00
2026-02-12 20:52:56 +01:00
2023-08-23 22:50:35 +02:00
2026-02-12 20:52:56 +01:00
2025-11-27 20:41:56 +01:00