Skip to content

🐛 fix(cli): keep reporting when home is unknown - #638

Merged
gaborbernat merged 3 commits into
tox-dev:mainfrom
tongwentao:fix/cli-unresolved-home
Oct 28, 2026
Merged

gaborbernat merged 3 commits into
tox-dev:mainfrom
tongwentao:fix/cli-unresolved-home

Conversation

@tongwentao

@tongwentao tongwentao commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

With HOME unset or empty and no password database entry for the current user, which happens in minimal containers, python -m platformdirs stopped at the first home-based directory with a RuntimeError. 🩺 The report now prints the error in place of that entry and keeps going, so the directories that do resolve still show up.

Only the command line report changes. The library still raises when it cannot resolve the home directory, and picks no substitute.

tongwentao and others added 2 commits October 22, 2026 14:40
Name the command and the RuntimeError it no longer stops on, and type the
captured output in the new test as Final like its siblings.
@gaborbernat gaborbernat changed the title fix(cli): continue reporting directories when home is unresolved 🐛 fix(cli): keep reporting when home is unknown Oct 28, 2026
@gaborbernat gaborbernat added the bug Something isn't working label Oct 28, 2026
@gaborbernat
gaborbernat merged commit 4e0605e into tox-dev:main Oct 28, 2026
59 of 71 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants