Maybe makes more sense in the Explain category if there’s already a decided approach, and potentially similar to this topic.
What should be the approach for “patching” dependencies? I’m thinking in the style of pnpm patch or something like that - editing the code for an existing dependency (or transient dependency).
With v0.16.0, packages are fetched and put in the zig-pkg folder. It is possible (and encouraged) to muck around with those files. You can even commit them to source control.
The most straightforward way would be to commit any changed files for the zig-pkg folder so that om a checkout you get the updated version.
Another option would be to have something in your build script that patches files. That would be more one-off style setups, not the nice patch subcommand like (p)npm has.