spack/lib/spack
Massimiliano Culpo fa132614e0
ASP-based solver: don't sort when defining variant possible values (#29013)
fixes #28260

Since we iterate over different variants from many packages, the variant 
values may have types which are not comparable, which causes errors 
at runtime. This is not a real issue though, since we don't need the facts
to be ordered. Thus, to avoid needless sorting, the sorted function has 
been removed and a comment has been added to tip any developer that
might need to inspect these clauses for debugging to add back sorting 
on the first two items only.

It's kind of difficult to add a test for this, since the error depends on 
whether Python sorting algorithm ever needs to compare the third 
value of a tuple being ordered.
2022-02-17 08:50:50 +01:00
..
docs extensions: allow multiple "extends" directives (#28853) 2022-02-16 21:23:12 +00:00
env Update copyright year to 2022 2022-01-14 22:50:21 -08:00
external move typing_extensions.py back into typing.py =\ (#28549) 2022-02-11 09:52:01 -08:00
llnl find_libraries: search for both .so and .dylib on macOS (#28924) 2022-02-16 14:07:44 +01:00
spack ASP-based solver: don't sort when defining variant possible values (#29013) 2022-02-17 08:50:50 +01:00