Skip to content

🐛 fix(discovery): reuse preferred paths across specs - #180

Merged
gaborbernat merged 2 commits into
tox-dev:mainfrom
subotac:fix/reuse-preferred-interpreter-paths
Nov 2, 2026
Merged

gaborbernat merged 2 commits into
tox-dev:mainfrom
subotac:fix/reuse-preferred-interpreter-paths

Conversation

@subotac

@subotac subotac commented Nov 1, 2026 •

Copy link
Copy Markdown

A preferred-path iterator could run out during the first unsuccessful interpreter spec, leaving later specs unable to find a matching interpreter. Callers can now use an iterator and get the same fallback behavior as with a list.

Discovery replays the paths across specs while reading them only as needed. An early match leaves the remaining paths unread.

@gaborbernat gaborbernat added the bug Something isn't working label Nov 2, 2026
@gaborbernat gaborbernat changed the title fix(discovery): reuse preferred paths across interpreter specifications 🐛 fix(discovery): reuse preferred paths across specs Nov 2, 2026
@gaborbernat
gaborbernat merged commit 0277327 into tox-dev:main Nov 2, 2026
2 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