Clear discovered interpreters when creating virtual environment (#15522)

## Summary

Closes https://github.com/astral-sh/uv/issues/15518.
This commit is contained in:
Charlie Marsh 2025-08-25 20:24:24 -04:00 committed by GitHub
parent 9b8d6989d4
commit b723129c7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 82 additions and 0 deletions

View file

@ -106,6 +106,7 @@ impl Interpreter {
sys_prefix: virtualenv.root,
target: None,
prefix: None,
site_packages: vec![],
..self
}
}