Repository navigation
fix(install): run docker ownership repair only when the tree is not user-owned - #1253
Merged
c-vigo merged 3 commits intoJul 22, 2026
Merged
Conversation
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
The #1235 ownership repair keyed on the runtime CLI name (
RUNTIME = docker). On hosts wheredockeris the rootless-podman compat shim, the scaffold output is already correctly owned, and the in-containerchownto the host UID maps to an unmapped subuid — flipping a working tree toUNKNOWN-owned and breaking the git phase (a regression of the #1235 fix; 1.4.0 worked).The repair now keys on the OBSERVED post-scaffold state: it runs only when the tree contains files not owned by the invoking user (
find ! -userprobe, portable across GNU/BSD — no GNU-onlystat -c). RUNTIME is out of the condition entirely; real docker's root-owned output still triggers the repair, and any rootless-podman flavor skips it. Warn-not-fail posture and messages unchanged.Closes #1248
Refs #1248
Verification
bats tests/bats/install.bats: 103/103 ok; full pre-commit suite green (51 hooks)UNKNOWN-owned, no git repo); this branch's installer with identical flags yields a user-owned, git-initialized tree — matching the 1.4.0 baseline