-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
ability to declare package development dependencies #14591
Copy link
Copy link
Closed as not planned
Labels
proposalThis issue suggests language modifications. If it also has the "accepted" label then it is planned.This issue suggests language modifications. If it also has the "accepted" label then it is planned.zig build systemstd.Build, the build runner, `zig build` subcommand, package managementstd.Build, the build runner, `zig build` subcommand, package management
Milestone
Description
Activity
Metadata
Metadata
Assignees
Labels
proposalThis issue suggests language modifications. If it also has the "accepted" label then it is planned.This issue suggests language modifications. If it also has the "accepted" label then it is planned.zig build systemstd.Build, the build runner, `zig build` subcommand, package managementstd.Build, the build runner, `zig build` subcommand, package management
Type
Projects
- StatusShow more project fieldsProposals
This is a competing proposal to #14597.
Currently in a
build.zig.zonfile you can declare dependencies for a project, which will be fetched transitively by dependees. Various projects might have dependencies that are only required by developers of the project itself and not for any exported artifacts (modules, executables, libraries, ...); an example could be benchmarking or testing tools. In this case dependees of the package have no need to fetch these development dependencies and they should be declare separately or have an extra flag indicating this.For example
build.zig.zonfile of a package could look like:Alternately, this could be expressed as:
Then these development dependencies can be skipped by the build runner of a dependee.