]> _ Git - alire.git/commit
Set up environment before post-fetch actions (#456)
authorAlejandro R Mosteo <alejandro@mosteo.com>
Mon, 6 Jul 2020 08:58:50 +0000 (10:58 +0200)
committerGitHub <noreply@github.com>
Mon, 6 Jul 2020 08:58:50 +0000 (10:58 +0200)
commit0cf68ee8ffc7f8be1c587e5c622203d5baddb09b
treea9c83bc8855b5c743a3722ac9aff7d035dff636d
parent2c5a4f8a86d99021067a44ed013f62ca1b8e986a
Set up environment before post-fetch actions (#456)

* Alire.Environment: take release paths from a Root

The path lookup has three levels:
1. For the root release, the own root folder
2. For a regular release, the dependencies folder "/" release unique folder
3. For a pinned softlink, the absolute path of the softlink

The root contains the solution which in turn contains the softlinks, so the
query for the path can be directly made to the root.

* Set up build env before deploying dependencies

* Tests for softlink nested path and env export

* Review fixes

* Alire.Environment.Load: Remove unused parameter

This flies by CE but is detected by FSF (?)

* Alire.Roots: move expression functions to body

There's some bug manifesting when a lot of code is in the spec in which the
linker complaints about missing references.

* Spelling fixes

* Updated new tests index versions

* Rename dir_separator/path_separator to match GNAT...

... in the Python testsuite

* Remove trailing '/' separator in extra prj paths

This is to match the output of full path normalization by Ada.Directories.
39 files changed:
src/alire/alire-environment-formatting.adb
src/alire/alire-environment-formatting.ads
src/alire/alire-environment.adb
src/alire/alire-environment.ads
src/alire/alire-releases.adb
src/alire/alire-roots.adb
src/alire/alire-roots.ads
src/alire/alire-workspace.adb
src/alr/alr-build_env.adb [deleted file]
src/alr/alr-build_env.ads [deleted file]
src/alr/alr-commands-build.adb
src/alr/alr-commands-build.ads
src/alr/alr-commands-clean.adb
src/alr/alr-commands-get.adb
src/alr/alr-commands-run.adb
src/alr/alr-commands-setenv.adb
testsuite/drivers/helpers.py
testsuite/tests/pin/change-type/test.py
testsuite/tests/pin/dir-crate/test.py
testsuite/tests/pin/dir-mismatch/test.py
testsuite/tests/pin/pin-dir-with-regular/test.py
testsuite/tests/pin/pin-dir/test.py
testsuite/tests/setenv/env-during-fetch/my_index/crates/checkenv/checkenv.gpr [new file with mode: 0644]
testsuite/tests/setenv/env-during-fetch/my_index/crates/checkenv/src/checkenv.adb [new file with mode: 0644]
testsuite/tests/setenv/env-during-fetch/my_index/index/ch/checkenv.toml [new file with mode: 0644]
testsuite/tests/setenv/env-during-fetch/my_index/index/ch/checkparent.toml [new file with mode: 0644]
testsuite/tests/setenv/env-during-fetch/my_index/index/index.toml [new file with mode: 0644]
testsuite/tests/setenv/env-during-fetch/test.py [new file with mode: 0644]
testsuite/tests/setenv/env-during-fetch/test.yaml [new file with mode: 0644]
testsuite/tests/setenv/linked-paths/my_index/crates/crate_1234/.emptydir [new file with mode: 0644]
testsuite/tests/setenv/linked-paths/my_index/crates/crate_1234/alire/crate_1234.lock [new file with mode: 0644]
testsuite/tests/setenv/linked-paths/my_index/crates/crate_1234/alire/crate_1234.toml [new file with mode: 0644]
testsuite/tests/setenv/linked-paths/my_index/index/index.toml [new file with mode: 0644]
testsuite/tests/setenv/linked-paths/test.py [new file with mode: 0644]
testsuite/tests/setenv/linked-paths/test.yaml [new file with mode: 0644]
testsuite/tests/with/pin-dir-crate-autodetect/test.py
testsuite/tests/with/pin-dir-crate/test.py
testsuite/tests/with/pin-dir-mismatch/test.py
testsuite/tests/with/pin-dir/test.py