Transitive lazy dependencies are not fetched #20716
Labels
bug
Observed behavior contradicts documented or intended behavior
zig build system
std.Build, the build runner, `zig build` subcommand, package management
Milestone
Zig Version
0.14.0-dev.477+08cddaf11
Steps to Reproduce and Observed Behavior
transitive-lazy-dependency
branch (commit0eba431bfea69a0b46e7c0e5fc845a5c2c91bf6f
)zig build
Error:
The error can be resolved by first checking out the
lazy-dependency
branch (commite1d9f46cfc6d71475ac9fe77a85555a606712e0b
) and runningzig build
there (which fetches the lazy dependency on the branchsingle-module
into the cache).Expected Behavior
The initial
zig build
on thetransitive-lazy-dependency
branch should fetch all necessary dependencies and succeed.The motivating example behind this issue is I have a WIP library zig-libxml2 which fetches upstream sources for libxml2 and libxslt and builds them, but the upstream libxslt tarball is a lazy dependency, enabled only with a build option
xslt
. Hence, due to this issue, it currently isn't possible to depend on zig-libxml2 from another project and try to use libxslt.The text was updated successfully, but these errors were encountered: