Skip to content

πŸ› fix(provision): report a missing --root directory instead of a traceback - #4472

Merged
gaborbernat merged 3 commits into
tox-dev:mainfrom
qianeric-backup:fix/provision-missing-root
Nov 28, 2026
Merged

gaborbernat merged 3 commits into
tox-dev:mainfrom
qianeric-backup:fix/provision-missing-root

Conversation

@qianeric-backup

@qianeric-backup qianeric-backup commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

tox --root <missing dir> l crashed with FileNotFoundError since the staging repair from #4377 started opening the root. A missing root has nothing to repair, so tox skips it and runs as it did before #4377.

qianeric-backup and others added 2 commits November 26, 2026 14:42
…eback

repair_staging_path() also stats the project root, so a --root that does not
exist raised FileNotFoundError from the same call and escaped as a traceback,
while the neighbouring PermissionError was already turned into a HandledError.
Catch OSError, the common base of both.
A --root that does not exist worked until the staging repair (tox-dev#4377)
started opening it. A missing root holds nothing to repair, so return
early instead of turning the traceback into a hard error.
@gaborbernat
gaborbernat marked this pull request as ready for review November 28, 2026 01:53
@gaborbernat
gaborbernat merged commit 060a86d into tox-dev:main Nov 28, 2026
31 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