ziggit.dev/t/mutating-generated-files-in-later-steps/18060 Mutating generated files in later steps
A Zig build script generates an ISO with xorriso, then modifies it in place with a Limine tool before QEMU runs. The build skips the mutation step unless a dependency is added manually, because LazyPath does not track mutating steps. One reply suggests a wrapper script that copies the file first.
— via Ziggit, mba6comma1