Skip to content

legacy packages are unnecessarily fetched #23051

Closed as not planned
Closed as not planned
@andrewrk

Description

@andrewrk

Zig Version

0.14.0-dev.3451+d8d2aa9af

Steps to Reproduce and Observed Behavior

  1. delete global zig cache
  2. zig build in a project that uses legacy hash format (e.g. 1220e97357cc39f4f9f053c763f3ec1623e0c7f3999f185746f2bd9bf9b5c5551392)
  3. observe that global zig cache now has something like N-V-__8AAJCtGQSh2-Qbxpqs91AmpxWIEhmOomX7nKxk3Lkc instead (new hash format)
  4. zig build --system ~/.cache/zig/p
  5. observe that it fails with "package not found" errors for all legacy hash formats used

Expected Behavior

Expected cache hit, no network usage.

Suggested workaround: upgrade to new hash format
Alternate workaround: use zig-0.13.0 to zig fetch legacy packages

I have no plans to solve this bug. Problem will solve itself as projects upgrade to new hash format.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behaviorzig 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