Skip to content

Zig upgrade requires deleting ~/.cache/zig/p before errors show up #23229

@pfgithub

Description

@pfgithub

Zig Version

0.15.0-dev.56+d0911786c (macOS aarch64)

Steps to Reproduce and Observed Behavior

git checkout https://github.com/pfgithub/blockeditor.git
cd blockeditor
zig-0.14.0-dev.3298+6fe1993d8 build
git checkout f68ed3af458fd45c2d4af67c30a6426db3e3f612
zig-0.15.0-dev.56+d0911786c build
# notice there are no errors
mv ~/.cache/zig/p ~/.cache/zig/p.bak
zig-0.15.0-dev.56+d0911786c build
# now fails:
/Users/pfg/.cache/zig/tmp/54eb34d549c9b850/tree-sitter-8ac115c727e5f23c3a3fe6846ef5bceb163ef44a/build.zig.zon:2:11: error: name must be a valid bare zig identifier (hint: switch from string to enum literal)
  .name = "tree-sitter",
          ^~~~~~~~~~~~~

Expected Behavior

It should either error or build successfully without touching ~/.cache/zig/p after upgrading.

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