Open synapticarbors opened 3 months ago
Confirmed. Now there should be a codebase refactor to abstract logic of how pixi add
determine and add packages and share it with pixi search
to eliminate package solving differences between these two commands.
I am not sure if properly "solving" would be the correct solution since users expect search
to return any available versions (not only the ones that would resolve properly).
However, we should use the same comparison functions that we use for determining the best package (the package we try first when solving). This is implemented in rattler, in the conda_util.rs
file. Unfortunately that is not easily re-useable outside of the solver.
In the meantime we could also print all available variants of a package version and do some other (maybe simpler) comparison operation.
This issue also requests a more verbose output of pixi search
https://github.com/prefix-dev/pixi/issues/869
Checks
[X] I have checked that this issue has not already been reported.
[X] I have confirmed this bug exists on the latest version of pixi, using
pixi --version
.Reproducible example
Issue description
pixi search pyqt
returns the correct major version, but shows the dependencies/build for an older version of python. In the above, it's showing the build for python3.9. Runningpixi add python pyqt
on a clean project, gets the build for the latest python3.12 as expected (inspecting thepixi.lock
file).This seems similar but not exactly the same as https://github.com/prefix-dev/pixi/issues/712, and might be confusing because it looks like
pyqt
isn't built for the latest version of python.Expected behavior
I would expect
pixi search
(given the help description of "Search a package, output will list the latest version of package"), to give me the latest build, or the latest build consistent with the dependencies already specified in the project.