]> _ Git - alire.git/commit
Exit code fix for `get --build` with build failure (#428)
authorAlejandro R Mosteo <alejandro@mosteo.com>
Fri, 5 Jun 2020 17:07:18 +0000 (19:07 +0200)
committerGitHub <noreply@github.com>
Fri, 5 Jun 2020 17:07:18 +0000 (19:07 +0200)
commita328f1fdc24fd1d02b2d79dc2dd56334a99ab1fc
treecf88195698022a4e0ae06d96fbe187107705d309
parentfc92bfcc53d67761917653757237300fe8068564
Exit code fix for `get --build` with build failure (#428)

We were not erroring if the build failed, which is counterintuitive. We now
require successful retrieval and build to exit with code 0. A test to verify
this situation has been added.
src/alr/alr-commands-get.adb
testsuite/tests/get/build/my_index/crates/bad/bad.gpr [new file with mode: 0644]
testsuite/tests/get/build/my_index/crates/bad/src/bad.adb [new file with mode: 0644]
testsuite/tests/get/build/my_index/crates/good/good.gpr [new file with mode: 0644]
testsuite/tests/get/build/my_index/crates/good/src/good.adb [new file with mode: 0644]
testsuite/tests/get/build/my_index/index/ba/bad.toml [new file with mode: 0644]
testsuite/tests/get/build/my_index/index/go/good.toml [new file with mode: 0644]
testsuite/tests/get/build/my_index/index/index.toml [new file with mode: 0644]
testsuite/tests/get/build/test.py [new file with mode: 0644]
testsuite/tests/get/build/test.yaml [new file with mode: 0644]