]> _ Git - alire.git/commit
Refactor checkout/update logic into Alire (#437)
authorAlejandro R Mosteo <alejandro@mosteo.com>
Thu, 18 Jun 2020 17:13:57 +0000 (19:13 +0200)
committerGitHub <noreply@github.com>
Thu, 18 Jun 2020 17:13:57 +0000 (19:13 +0200)
commitcd734cd1de528c4245dba8f50ab1e8e7f7a1da0e
tree6b7667803f3eb62f64e34d57387a0308949be757
parent5306e863d0d3e4faee183ed1810c48553b59a072
Refactor checkout/update logic into Alire (#437)

The subprograms in Alr.Checkout, which disappears, are refactored into
Alire.Workspace. This will enable better logic for retrieval/updates, without
the need to internally reroute to Alr.Commands.Update, which causes some
unrelated side-effects (like re-resolving even when unnecessary).

Minor change: now all crates leave a trace in the form of their dependency
folder within the cache, even if this folder is empty for dependencies whose
deployment does not require such a folder. This is more homogeneous and might
be useful in the future to store status about dependency deployment
completeness right there.

A couple tests are fixed to account for minor output changes and a change in
behavior between Python 2 and 3 (not sure why it not arose initially).
17 files changed:
src/alire/alire-paths.ads
src/alire/alire-workspace.adb [new file with mode: 0644]
src/alire/alire-workspace.ads [new file with mode: 0644]
src/alire/alire-workspaces.adb [deleted file]
src/alire/alire-workspaces.ads [deleted file]
src/alr/alr-checkout.adb [deleted file]
src/alr/alr-checkout.ads [deleted file]
src/alr/alr-commands-get.adb
src/alr/alr-commands-init.adb
src/alr/alr-commands-update.adb
src/alr/alr-commands-withing.adb
src/alr/alr-files.adb
src/alr/alr-files.ads
src/alr/alr-templates.adb [deleted file]
src/alr/alr-templates.ads [deleted file]
testsuite/tests/get/external-tool-dependency/test.py
testsuite/tests/get/get-not-found/test.py