test: glob_files_rec with a relative path#8265
Conversation
test/blackbox-tests/test-cases/install/install-glob/install-glob-relative.t
Outdated
Show resolved
Hide resolved
test/blackbox-tests/test-cases/install/install-glob/install-glob-relative.t
Outdated
Show resolved
Hide resolved
We demonstrate that using relative paths in [glob_files_rec] has unintended consequences. In this test, we install some artifacts outside the package directory just by globbing from a parent dir. Signed-off-by: Rudi Grinberg <me@rgrinberg.com> <!-- ps-id: 0f38b0df-b5b3-4797-a555-8687aed27290 -->
dee4a3d to
9fe0c3f
Compare
|
Improved the test to describe the issue better. How should we go about the fix? I've copied @anmonteiro because he dealt with a similar issue with One way would be to allow users to explicitly write out the prefix. E.g. |
|
For the Melange rules we added a check that the runtime assets must be present under the source tree where the library is defined: dune/src/dune_rules/install_rules.ml Lines 46 to 63 in dfb6330 |
|
I'm looking into this now. I noticed that the non-recursive I'm going to do two things to fix this:
|
We demonstrate that using relative paths in [glob_files_rec] has
unintended consequences. In this test, we install some artifacts outside
the package directory just by globbing from a parent dir.
Signed-off-by: Rudi Grinberg me@rgrinberg.com