Skip to content

Top-level attr .paths in build.zig.zon allows adding non-existent files without checking #23183

@acid-bong

Description

@acid-bong

Zig Version

0.14.0

Steps to Reproduce and Observed Behavior

  1. Remove a non-code file (like LICENSE or README) from the project, but not from build.zig.zon's .paths.
  2. Run zig build ....
  3. It successfully compiles the program.

Expected Behavior

Compiler should warn the developer about missing paths in .paths or emit an error.

I have no idea how zig build|fetch acts if a file is missing in the remote dependency, but if one's developing such a library, they must be sure themselves that their library will not break other's builds.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions