In the case of faiss, where we override with faiss-cpu, the Search function still returns faiss in the results. Sort then puts it at the top of the list, thwarting our efforts.
What changed
Walk the results once, removing the overridden package name from the list before displaying to the user.
Test plan
upm search -l python3-poetry faiss before and after this change showed what I expected
Why
In the case of
faiss
, where we override withfaiss-cpu
, theSearch
function still returnsfaiss
in the results.Sort
then puts it at the top of the list, thwarting our efforts.What changed
Walk the results once, removing the overridden package name from the list before displaying to the user.
Test plan
upm search -l python3-poetry faiss
before and after this change showed what I expected