fix(pkg): repair v0.6.0 ownership residue; release 0.6.2 - #20
Merged
Merged
Conversation
The non-relocatable 0.6.1 package reached postinstall, then correctly dropped to the console user and could not rename the root-owned app left by the failed relocatable 0.6.0 attempt. Before dropping root, chown only instance-mcp own per-user app/config/log/plist paths to the console uid/gid. This also makes interrupted retries idempotent. Verified on macmini: manually restoring the exact ownership made the same 0.6.1 pkg install successfully (receipt, Developer ID, running LaunchAgent, health OK). Packaging smoke asserts the repair is present. 88 tests pass.
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.
The 0.6.1 relocation fix worked, but a machine that had first attempted 0.6.0 retained a root-owned app under ~/.local; postinstall correctly dropped to pahud and could not rename it. Root postinstall now repairs ownership of only instance-mcp app/config/log/plist paths before dropping privileges. Manual chown + the exact 0.6.1 pkg proved the diagnosis: install succeeded, receipt 0.6.1, Developer ID active team, LaunchAgent running, health OK. Version 0.6.2; 88 tests and packaging smoke pass.