]> _ Git - alire.git/commit
Alire.Environment: load env context from the platform (#608)
authorFabien Chouteau <Fabien-Chouteau@users.noreply.github.com>
Wed, 4 Nov 2020 20:32:52 +0000 (21:32 +0100)
committerGitHub <noreply@github.com>
Wed, 4 Nov 2020 20:32:52 +0000 (21:32 +0100)
commit906095fcb3f018331c46adef6ab2df391acffbcf
treec8be595b4e37154cf2632b6c3a7554424edb9dbc
parentdab818536443b65df922cb4307e78195f79155d6
Alire.Environment: load env context from the platform  (#608)

* Alire.Environment: sort env list for predictable output

* Alire.Environment: load env context from the platform

For the moment this is only used on Windows for msys2. Before this patch the msys2 env was not included in `alr print` which means that the context was not complete.

* Alr.Platforms.Windows: do not install msys2 if pacman already in PATH

This makes alr usable when the user is already in an msys2 context.
And it alse makes possible to have an alire package in msys2.
src/alire/alire-environment.adb
src/alire/alire-environment.ads
src/alire/alire-platform.ads
src/alire/os_linux/alire-platform.adb
src/alire/os_macos/alire-platform.adb
src/alire/os_windows/alire-platform.adb
src/alr/os_windows/alr-platforms-windows.adb
testsuite/tests/printenv/basic/test.py
testsuite/tests/printenv/linked-paths/test.py
testsuite/tests/printenv/with-external/test.py