pixi add <dependency>
fails when the dependency already exists in the manifest and if it's the latest version
#1401
Labels
bug
Something isn't working
Checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pixi, using
pixi --version
.Reproducible example
pixi add -f test pytest ✔ Added pytest
will result in pytest changing to
pytest = ">=8.2.0,<8.3"
since the version in the manifest is lower than the current version and the command passesbut if now we try the same with
pytest-cov
will result in a failure since the version in the manifest is already the latest versionIssue description
Until the
pixi update/upgrade
command is available, i am trying to update the dependencies by just running thepixi add
command. In doing so i have noticed that, when a dependency version is already the latest version then adding it again usingpixi add
will result in an error.Expected behavior
There should be no error and the message should be that the version in the manifest is already the latest version. Also when the dependency is added that is already present the message should be
Updated <dependency> from <vX> to <vY>
The text was updated successfully, but these errors were encountered: