Repository navigation
🐛 fix(seed): validate extra search directories - #3737
Merged
Merged
Conversation
gaborbernat
force-pushed
the
fix/zc2p1m2r
branch
from
November 20, 2026 15:14
4046232 to
2e7cc09
Compare
gaborbernat
force-pushed
the
fix/zc2p1m2r
branch
from
November 20, 2026 15:31
2e7cc09 to
4108f93
Compare
gaborbernat
marked this pull request as ready for review
November 20, 2026 17:46
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.
An empty
--extra-search-direntry could select the working directory for wheel search, while a file entry could fail seeding withNotADirectoryError. The seeder now searches existing directories only and rejects an explicit empty command-line value. This addresses draft advisory ANT-2026-ZC2P1M2R.List conversion skips empty entries from configuration and environment variables. That keeps empty
--extra-search-dir,--python, and--try-first-withentries from selecting the working directory or running interpreter. The seeder checks for directories and rejects an explicitly empty search directory instead of silently changing the search scope.Behavior changes
An explicit empty command-line value now fails with an argument error. Empty list entries from configuration or environment variables and file search entries are skipped. Missing search directories are still skipped.
The file-entry fix was contributed by Pratik-Kumar-Dhakar in #3688. Fixes #3582. Reported by oss-scanner: ANT-2026-ZC2P1M2R.