Repository navigation
fix: keep root directory accessors consistent during isolation - #625
Merged
gaborbernat merged 4 commits intoOct 17, 2026
Merged
Conversation
gaborbernat
marked this pull request as ready for review
October 17, 2026 18:02
gaborbernat
approved these changes
Oct 17, 2026
gaborbernat
enabled auto-merge (squash)
October 17, 2026 18:02
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.
When Unix root enables
use_site_for_root,isolated_dirs(root)redirectsuser_config_dirto<root>/user_config/appbut leavesuser_config_pathand config iteration using the site directory. A config file written under the isolated user directory can therefore be missed byfind_config_file().Temporarily use the base
_use_sitedescriptor during isolation so user and site kinds keep the documented separate layout. The existing restoration mechanism restores normal root redirection, including nested contexts and exceptions. Add regressions for four string/Path pairs with both multipath settings, iteration and restoration, and document the behavior.Related implementation history: #590 and #604. This addresses the remaining root-redirection interaction.
Local validation of this patch on macOS:
-W, sdist/wheel build, Twine, wheel contents, andtowncrier check --compare-with origin/main. The numbered newsfragment also rendered successfully. These checks left tracked file contents unchanged.Prepared with AI assistance.
Draft pending maintainer approval of the hosted workflows. At the final-head check, both the check and Release workflows reported
action_requiredwith no jobs run. The local results above are separate from hosted CI.