Skip to content

Key build phases on the sources directory contents - #77

Merged
jhuntwork merged 1 commit into
mainfrom
fix-phase-cache-sources-dir
Nov 3, 2026
Merged

jhuntwork merged 1 commit into
mainfrom
fix-phase-cache-sources-dir

Conversation

@jhuntwork

@jhuntwork jhuntwork commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Phase scripts can read every declared source and recipe companion file
through MERE_SOURCES_DIR, but the phase cache key only covered the
first source unpacked into the build directory. Changing a helper source
and its blake3 alone restored the old install output and produced an
identical package archive.

Hash the sources directory once per build and fold it into the source
identity passed to the phase key. Add a regression test that changes only
a helper read through MERE_SOURCES_DIR, keeps the build cache, and checks
the package archive changes and the install phase is not restored.

Fixes #74

Phase scripts can read every declared source and recipe companion file
through MERE_SOURCES_DIR, but the phase cache key only covered the
first source unpacked into the build directory. Changing a helper source
and its blake3 alone restored the old install output and produced an
identical package archive.

Hash the sources directory once per build and fold it into the source
identity passed to the phase key. Add a regression test that changes only
a helper read through MERE_SOURCES_DIR, keeps the build cache, and checks
the package archive changes and the install phase is not restored.

Fixes #74
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.

Phase cache can reuse stale helper files referenced through MERE_SOURCES_DIR

1 participant