This commit is contained in:
swrup 2025-11-11 02:07:51 +01:00
parent aa2ff7b2f0
commit 2f3113f55d
11742 changed files with 1223940 additions and 0 deletions

View file

@ -0,0 +1,23 @@
Repro for #7962: a rule has a dependency on a `(source_tree)` outside the
workspace. This blows up loudly but should not - we should probably detect that
the path escapes the build directory and error out or handle that as an
external directory.
$ mkdir proj ext
$ cat > proj/dune-project << EOF
> (lang dune 1.0)
> EOF
$ cat > proj/dune << EOF
> (alias
> (name runtest)
> (deps (source_tree ../ext)))
> EOF
$ (cd proj; dune runtest)
File "dune", line 3, characters 20-26:
3 | (deps (source_tree ../ext)))
^^^^^^
Error: path cannot escape the context root
[1]