Vendoring modified libraries

How would i go about this? I’m updating some libs to 0.16 fixing stuff as it comes up

i tried grabbing the modified libraries from zig-pkg, tossing them to ./vendor/ and pointing build.zig.zon to those but i guess i’d have to modify build.zig.zon for each of the libraries too. Or should i go fuck it and push zig-pkg

Could show some code exemplifying what you want to achieve?

From the release notes:

The motivation for this change is to make it easier to tinker. Go ahead and edit those files, see what happens. Swap out your package directory with a git clone.

You can do what you want with that folder. Edit it, commit your changes to your VCS, search it. Depends on what you are trying to do.

2 Likes

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