]> _ Git - alire.git/commit
Deploy dependencies atomically and related cleanup subcommand (#768)
authorAlejandro R Mosteo <alejandro@mosteo.com>
Tue, 20 Jul 2021 16:08:18 +0000 (18:08 +0200)
committerGitHub <noreply@github.com>
Tue, 20 Jul 2021 16:08:18 +0000 (18:08 +0200)
commit99e579cf5402fb5e74401c61bdfca59927196429
tree3449f6ac2a9037fb1fe633aba06e9962fd0b305a
parent7c67911cc82b903fa5525790b6468c4a9dd1e12d
Deploy dependencies atomically and related cleanup subcommand (#768)

* Use a temporary to fetch & deploy releases

This is done to avoid an interrupted download (for example with Ctrl-C) to
mistake our deployer, which considers an existing directory as a successfully
deployed dependency.

* Cmd.Clean: implement --temp option

To remove any dangling temporaries

* Improve clean --cache to avoid useless downloads

* Test for `alr clean --temp`
src/alire/alire-directories.adb
src/alire/alire-directories.ads
src/alire/alire-origins-deployers.adb
src/alire/alire-paths.ads
src/alire/alire-roots.adb
src/alr/alr-commands-clean.adb
src/alr/alr-commands-clean.ads
testsuite/tests/clean/temp-files/test.py [new file with mode: 0644]
testsuite/tests/clean/temp-files/test.yaml [new file with mode: 0644]