Repository navigation
fix(target): recognize binary plists by magic under any extension - #2133
Merged
Merged
Conversation
Target resolution admitted a property list only when its name ended in .plist, so keyed archives with other extensions (for example .archive) were rejected as an unsupported binary format before any plist tool ran. Classify bplist00 bytes as a plist, as the artifact inventory already does. Fixes #2129 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
3 tasks done
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.
Summary
Target resolution admitted a property list only when its name ended in
.plist. Keyed archives under other names were rejected asunsupported binary formatbefore any plist tool ran. Example:TextStylePreviewCache.archivein iMovie's TextFramework, whichfilereports as "Apple binary property list".detectArtifactFormatalready reads the first 8 bytes; it now classifiesbplist00asplist, as the artifact inventory'sclassifyArtifactBytesdoes.Fixes #2129
Before / after
A binary plist converted to
x.datanow gets the sameinspect-plistresult as the same bytes namedx.plist. Only thebplist00magic is used. XML plists still need the.plistname, because an XML prefix alone does not identify a plist.Validation
classifies a binary plist by its magic under any extension(tests/boundary/filesystem/binaryTarget.test.ts). It fails on main and passes with this change; all 48 tests in the file pass.npm run lintpasses.npm test: 9150 passed, 15 failed in 8 files. These are the same 8 files and 15 tests that fail on cleanorigin/mainc22111e on this host. Most are environmental (no Hopper, Command Line Tools only,hdiutil, inspector target locations).promptCompletion.test.tsis the main regression tracked in [Bug] Main CI fails prompt completion checks since 07b36c148 #2123.🤖 Generated with Claude Code