Skip to content

Hide the platform detector without hiding /usr/bin in the snapshot check test - #9

Merged
maralcbr merged 1 commit into
mainfrom
fix/snapshot-test-installed-omarchy
Oct 4, 2026
Merged

maralcbr merged 1 commit into
mainfrom
fix/snapshot-test-installed-omarchy

Conversation

@scottjones

Copy link
Copy Markdown
Collaborator

Summary

The snapshot check test hid the platform detector by dropping every PATH directory that held one. On a Mac with Omarchy installed that's /usr/bin, so the hook couldn't even find bash and every no-detector case failed with status 127. CI's container has no Omarchy installed, so it never noticed. Such a directory is now replaced by a mirror of everything in it except the detector.

 for dir in PATH
-  holds omarchy-hw-platform → drop it
+  holds omarchy-hw-platform → use a mirror of it without the detector

Evidence

  • Before (M2 Max with Omarchy installed): not ok - a restore from the running system of a root without the platform detector is refused with a status that stops limine-snapper-sync (status 127)
  • After: snapshot-check-test.sh passes on this Mac as is, with the runtime's bin/ first on PATH, and with no Omarchy on PATH (CI's layout); omarchy-mac-boot/test/all passes (221 ok).

Merge Danger

Door: two-way

Blast Radius: test-only

🤖 Generated with Claude Code

…eck test

To test a root without omarchy-hw-platform, the harness dropped every PATH
directory holding one. On a Mac with Omarchy installed that is /usr/bin, so
the hook could not even find bash and every no-detector case failed with
status 127. CI's container has no Omarchy installed, which hid it.

Such a directory now gives way to a mirror of everything else in it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@scottjones
scottjones requested a review from maralcbr as a code owner October 4, 2026 19:45
@maralcbr
maralcbr merged commit 6f4cc6a into main Oct 4, 2026
6 checks passed
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.

2 participants