]> _ Git - alire.git/commit
Offer uninstalled compiler as fallback with warning (#1508)
authorAlejandro R Mosteo <amosteo@unizar.es>
Tue, 21 Nov 2023 10:13:56 +0000 (11:13 +0100)
committerGitHub <noreply@github.com>
Tue, 21 Nov 2023 10:13:56 +0000 (11:13 +0100)
commit98648092e2427867f4f18bd12f702f6e846f3f2e
treeab90554e106e5f3abe76da054624cec2ba4567fa
parent75514bb0fadcc70e2159e0882054fb910d72b40f
Offer uninstalled compiler as fallback with warning (#1508)

* Allow solving with unistalled tools as fallback

* Fix precedence of installed compiler over remote ones

* Add warning in solution diff about toolchain download

* Fallback on installed compiler over uninstalled one

This is after checking that the preferred compiler cannot fulfill the compiler
dependency.

* Tweaks to restore former behaviors

* Fix test that inadvertently used virtual crate

It should have been real all along without alternatives

* Rebase tweaks

* Reword information message
src/alire/alire-solutions-diffs.adb
src/alire/alire-solutions.adb
src/alire/alire-solver.adb
src/alire/alire-toolchains.adb
testsuite/fixtures/toolchain_index/cr/crate_non_virt/crate_non_virt-1.0.0.toml [new file with mode: 0644]
testsuite/fixtures/toolchain_index/gn/gnat_external/gnat_external-external.toml
testsuite/tests/build/hashes/compiler-input/test.py
testsuite/tests/solver/compiler-installed/test.py
testsuite/tests/solver/compiler-priorities/test.py
testsuite/tests/solver/forbids/test.py
testsuite/tests/toolchain/select-dontmix/test.py