Skip to content

Proposal: remove anonymousDependency once relative paths are supported in build.zig.zon #17238

Description

@mlugg

Once #14603 or similar is merged, std.Build.anonymousDependency is redundant: its use cases can be instead handled by specifying a local path in build.zig.zon and calling std.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:

As such, std.Build.anonymousDependency should be removed, giving one obvious and straightforward way to reference local dependencies.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedThis proposal is planned.proposalThis 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 management

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions