[Homebrew/Host] Honor each image's sealed bottle prefix - #1193
Open
brandonpayton wants to merge 2 commits into
Open
[Homebrew/Host] Honor each image's sealed bottle prefix#1193brandonpayton wants to merge 2 commits into
brandonpayton wants to merge 2 commits into
Conversation
brandonpayton
force-pushed
the
homebrew/minimal-third-party-proof-qk044
branch
from
August 2, 2026 19:09
59cdaf1 to
07c469f
Compare
Relocate bottle-owned text with the prefix authenticated by the VFS inventory instead of the repository's current default. This keeps immutable images readable after a prefix migration and preserves Node/browser parity in the shared filesystem path.
Make the Homebrew Cellar rule explicitly apply only to inventory entries marked for bottle relocation. Cover a mixed inventory so ordinary VFS sources can target valid guest paths outside the Cellar while malformed relocation entries fail closed.
brandonpayton
force-pushed
the
homebrew/minimal-third-party-proof-qk044
branch
from
August 3, 2026 00:44
ef5cfd3 to
214e13e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
A published virtual filesystem (VFS) image records exact guest paths and
expected file sizes. An older public Homebrew image stores bottle files
under
/home/linuxbrew/.linuxbrew, while the current default prefix is/opt/kandelo/homebrew.The lazy-file runtime previously used the current default when replacing
Homebrew placeholders. That changed legacy bottle bytes and their lengths,
so the VFS integrity check correctly rejected the result and
/usr/bin/brewcould not start.The authenticated inventory for an immutable image must decide the prefix
used to relocate bottle files. This rule applies only to entries explicitly
marked
archive-homebrew-relocate. Ordinary VFS entries remain free to useany otherwise valid guest path, including paths outside Homebrew Cellar.
What changed
the same prefix.
marked
archive-homebrew-relocate.filesystem implementation.
This does not change the kernel or the Kandelo application binary interface
(ABI).
Validation
npm --prefix host run buildnpm --prefix host run typechecknpx vitest run ./test/homebrew-bottle-relocation.test.ts/etccontent.