Proposal: remove anonymousDependency once relative paths are supported in build.zig.zon #17238
Labels
accepted
This proposal is planned.
proposal
This issue suggests modifications. If it also has the "accepted" label then it is planned.
zig build system
std.Build, the build runner, `zig build` subcommand, package management
Milestone
Once #14603 or similar is merged,
std.Build.anonymousDependency
is redundant: its use cases can be instead handled by specifying a local path inbuild.zig.zon
and callingstd.Build.dependency
as you would for a remote dependency.In fact,
anonymousDependency
is strictly less useful. Here are some key use cases it does not support:anonymousDependency
because the build system cannot call into the actual package manager (which is integrated into the compiler).As such,
std.Build.anonymousDependency
should be removed, giving one obvious and straightforward way to reference local dependencies.The text was updated successfully, but these errors were encountered: