#Using lazy dependencies that are only required by a certain step

1 messages · Page 1 of 1 (latest)

eager pawn
#

I have a lazy dependency in my zon file and a build.zig with two artifacts, one of which needs the dependency, and two install-* steps to go with it. Since the build.zig always describes both artifacts, it currently always invokes lazyDependency, causing the dep to be fetched. How do I structure my build script, such that the dep is only fetched if the artifact requiring it is actually built?