]> _ Git - alire.git/commit
Transitively add pinned dirs (#713)
authorAlejandro R Mosteo <alejandro@mosteo.com>
Wed, 24 Mar 2021 10:22:58 +0000 (11:22 +0100)
committerGitHub <noreply@github.com>
Wed, 24 Mar 2021 10:22:58 +0000 (11:22 +0100)
commit8c5dea22ab4de2568022859e17e98cd074311081
treed40e976e4b8e622e0dc928727a493d443b664670
parent6d420b7059944a6f09d37a35851f68348d7976fe
Transitively add pinned dirs (#713)

* Store relative pins when given as such

* Ensure pinned dirs use portable paths when relative

* Adjustments in testsuite for new relative links

* Recursively add links when linking crates

* Compound relative paths when adding links

* Restore inadvertently removed comment

* Relax too restrictive checks

In the case of linked releases, it doesn't matter if these contain expressions
as we don't write them to disk. As for the spurious warning during loading of
links, we may be transitively loading and the assumption on the current
directory is faulty in that case. The check must be performed elsewhere.

* Require approval for links to non-existent dirs

* Show broken links in dependency image

* Testsuite: new test and minimal tweaks

* Code review fixes

* Softlinks: report absolute project paths
13 files changed:
src/alire/alire-dependencies-states.ads
src/alire/alire-externals-softlinks.adb
src/alire/alire-externals-softlinks.ads
src/alire/alire-solutions.adb
src/alire/alire-solutions.ads
src/alire/alire-utils-user_input.adb
src/alire/alire-utils-user_input.ads
src/alr/alr-commands-pin.adb
src/alr/alr-commands-withing.adb
testsuite/tests/printenv/linked-paths/my_index/crates/crate_1234/alire.lock [deleted file]
testsuite/tests/with/pin-transitive/test.py [new file with mode: 0644]
testsuite/tests/with/pin-transitive/test.yaml [new file with mode: 0644]
testsuite/tests/with/tree-switch/test.py