]> _ Git - alire.git/commit
feat: setting to override source archive download command (#1815)
authorSeb M'Caw <mcaw@adacore.com>
Thu, 9 Jan 2025 11:23:04 +0000 (11:23 +0000)
committerGitHub <noreply@github.com>
Thu, 9 Jan 2025 11:23:04 +0000 (12:23 +0100)
commit79a83539bb1cded99a03f3bb89d0f6ad26b6869a
treefaae5deb73f895b794a43801a47f376b6cfd3753
parent9d27d1d7ae98d96ad121ece5f1fd2633095af221
feat: setting to override source archive download command (#1815)

* Support command mocking on Windows

* Add tests

* Make archive download command configurable

* Fix validation of distribution.override

* Prevent configuring command settings locally

* Remove redundant Download function

* Add documentation

* Self-review

* Fix test on Windows when gunzip is only available from msys2

* Restructure documentation

* Add erroneously omitted user-changes.md entry for #1745

* Update user-changes.md

* Fix deprecated 'fail_on_error' in spellcheck workflow

* Switch to US English spellings

* Review

---------

Co-authored-by: Alejandro R. Mosteo <amosteo@unizar.es>
42 files changed:
.github/workflows/spellcheck.yml
doc/getting-started.md
doc/private-crates.md [new file with mode: 0644]
doc/publishing.md
doc/user-changes.md
src/alire/alire-environment-formatting.adb [deleted file]
src/alire/alire-environment-formatting.ads [deleted file]
src/alire/alire-environment-loading.adb
src/alire/alire-formatting.adb [new file with mode: 0644]
src/alire/alire-formatting.ads [new file with mode: 0644]
src/alire/alire-origins-deployers-source_archive.adb
src/alire/alire-os_lib-download.adb
src/alire/alire-os_lib-download.ads
src/alire/alire-os_lib-subprocess.adb
src/alire/alire-settings-builtins.ads
src/alire/alire-settings-edit.adb
src/alire/alire-settings-edit.ads
src/alire/alire-settings.adb
src/alire/alire-settings.ads
src/alire/alire-spawn.adb
src/alire/alire-spawn.ads
src/alire/os_windows/alire-platforms-current__windows.adb
src/alr/alr-commands-edit.adb
src/alr/alr-commands-settings.adb
testsuite/drivers/alr.py
testsuite/drivers/helpers.py
testsuite/tests/get/custom-download-command/my_index/index/index.toml [new file with mode: 0644]
testsuite/tests/get/custom-download-command/my_index/index/li/libhello/libhello-1.0.0.toml [new file with mode: 0644]
testsuite/tests/get/custom-download-command/test.py [new file with mode: 0644]
testsuite/tests/get/custom-download-command/test.yaml [new file with mode: 0644]
testsuite/tests/pin/branch-remote-protocols/test.py
testsuite/tests/publish/private-indexes/test.py
testsuite/tests/settings/basics/test.py
testsuite/tests/workflows/air-gapping/my_index/crates/hello.tar [new file with mode: 0644]
testsuite/tests/workflows/air-gapping/my_index/crates/hello.tgz [deleted file]
testsuite/tests/workflows/air-gapping/my_index/crates/libhello.tar [new file with mode: 0644]
testsuite/tests/workflows/air-gapping/my_index/crates/libhello.tgz [deleted file]
testsuite/tests/workflows/air-gapping/my_index/index/he/hello/hello-1.0.1.toml
testsuite/tests/workflows/air-gapping/my_index/index/li/libhello/libhello-1.0.0.toml
testsuite/tests/workflows/air-gapping/test.py
testsuite/tests/workflows/air-gapping/test.yaml
testsuite/tests/workflows/edit/test.py