Skip to content

Add build.zig.zon to .paths#24

Open
LordMZTE wants to merge 1 commit intoziglibs:masterfrom
LordMZTE:pkg-hash-fix
Open

Add build.zig.zon to .paths#24
LordMZTE wants to merge 1 commit intoziglibs:masterfrom
LordMZTE:pkg-hash-fix

Conversation

@LordMZTE
Copy link
Copy Markdown

Previously, when s2s was used as a dependency, Zig would fetch it and correctly save it in zig-pkg locally as well as globally in the global cache. However, when the package was loaded from the global cache when zig-pkg was deleted, the hash would be resolved incorrectly, causing a subsequent hash mismatch.

This happened due to the hash depending on the package name and fingerprint, stored in build.zig.zon which would be missing.

Previously, when s2s was used as a dependency, Zig would fetch it and
correctly save it in zig-pkg locally as well as globally in the global
cache.  However, when the package was loaded from the global cache when
zig-pkg was deleted, the hash would be resolved incorrectly, causing a
subsequent hash mismatch.

This happened due to the hash depending on the package name and
fingerprint, stored in build.zig.zon which would be missing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant