Warn when uv python upgrade tries to install over a non-managed bin installation#14084
Conversation
|
Should we hint / require Shouldn't |
eaaba7e to
f9f83c6
Compare
732b57f to
b595b64
Compare
b595b64 to
2cc1237
Compare
--force option for uv python upgradeuv python upgrade tries to install over a non-managed bin installation
I ended up removing the I've updated the PR title and description. |
3dc1eb2
into
feature/transparent-python-upgrades
…n` installation (#14084) `uv python upgrade` had originally had a `--force` option, but we thought it probably didn't make sense. However, switching `uv python upgrade` behind the preview flag revealed a bad interaction: upgrading a minor version when a non-managed interpreter of that version exists in the `bin` directory displays an error recommending the use of `--force`. This PR only warns if this case arises with `uv python upgrade`, noting that install `--force` can be used. It also includes a test for the case described above.
…n` installation (#14084) `uv python upgrade` had originally had a `--force` option, but we thought it probably didn't make sense. However, switching `uv python upgrade` behind the preview flag revealed a bad interaction: upgrading a minor version when a non-managed interpreter of that version exists in the `bin` directory displays an error recommending the use of `--force`. This PR only warns if this case arises with `uv python upgrade`, noting that install `--force` can be used. It also includes a test for the case described above.
uv python upgradehad originally had a--forceoption, but we thought it probably didn't make sense. However, switchinguv python upgradebehind the preview flag revealed a bad interaction: upgrading a minor version when a non-managed interpreter of that version exists in thebindirectory displays an error recommending the use of--force.This PR only warns if this case arises with
uv python upgrade, noting that install--forcecan be used. It also includes a test for the case described above.