You can tell zig that there is a fork that overrides package in ./vendor/package using the command zig build --fork=./vendor/package. Zig is going to use the forked/vendored package instead of package across the entire dependency tree.
See:
1 Like