]> _ Git - alire.git/commit
Clearer identification of missing dependencies (#1588)
authorAlejandro R Mosteo <amosteo@unizar.es>
Mon, 26 Feb 2024 10:55:29 +0000 (11:55 +0100)
committerGitHub <noreply@github.com>
Mon, 26 Feb 2024 10:55:29 +0000 (11:55 +0100)
commit7084a589714ec34133ad0064a0100330cb26b594
tree8b32edd498084c482853d8a60db892ddfb145183
parenta30e568ef82ee7db3a71242d6e9e01c89719d28b
Clearer identification of missing dependencies (#1588)

When a complete solution is printed (`alr show|with --solve`), the "external"
section is now named "missing" (which is what it actually meant).

When a diff is show that contains missing dependencies, a new section is
appended containing separately all missing dependencies, labeled as such:
```
$ alr -f with hello unobtanium
Requested changes:

   ✓ hello      ^1.0.2 (add)
   ✓ unobtanium *      (add)

Changes to dependency solution:

   New solution is incomplete.
   +        hello      1.0.2 (new)
   Missing:
   +❗      unobtanium *     (new,missing:unknown)
```
19 files changed:
src/alire/alire-dependencies-states.ads
src/alire/alire-solutions-diffs.adb
src/alire/alire-solutions.adb
src/alire/alire-solutions.ads
src/alire/alire.ads
testsuite/tests/get/missing-deps/test.py
testsuite/tests/index/external-hint/test.py
testsuite/tests/pin/change-type/test.py
testsuite/tests/pin/missing-version/test.py
testsuite/tests/pin/pin-dir-with-regular/test.py
testsuite/tests/pin/pin-dir/test.py
testsuite/tests/pin/version/test.py
testsuite/tests/show/system-hint/test.py
testsuite/tests/solver/missing-reasons/test.py
testsuite/tests/update/missing-deps/test.py
testsuite/tests/with/changes-info/test.py
testsuite/tests/with/external/test.py
testsuite/tests/with/missing-deps/test.py
testsuite/tests/with/pin-dir/test.py