Skip to content

regression: @embedFile can no longer find root or std modules #18541

@xdBronch

Description

@xdBronch

Zig Version

0.12.0-dev.2158+4f2009de1

Steps to Reproduce and Observed Behavior

test {
    _ = @embedFile("root");
}
error: unable to open 'root': FileNotFound
    _ = @embedFile("root");
                   ^~~~~~

same happens for std as well but not builtin or any other modules as far as i can tell. specifying the root module on the CLI does not help

Expected Behavior

successful compile, this previously worked. i havent tested yet but since its module related my natural assumption is this is caused by #18160.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions