astral-sh / rye

a Hassle-Free Python Experience
https://rye.astral.sh
MIT License
13.82k stars 467 forks source link

`rye install` should not return a non-zero exit code if the package is already installed #1275

Open LukeMathWalker opened 3 months ago

LukeMathWalker commented 3 months ago

Steps to Reproduce

Run:

rye install maturin

twice in a row.

Expected Result

I'd expect the second invocation to skip the installation while returning a success exit code (i.e. 0).

Actual Result

Installation is skipped, but rye install returns a failed exit code (i.e. 1).

Version Info

rye 0.37.0 commit: 0.37.0 (09b67c469 2024-07-20) platform: macos (aarch64) self-python: cpython@3.12.3 symlink support: true uv enabled: true

Stacktrace

No response