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,32 @@
Setting (expand_aliases_in_sandbox) should re-run the action
First, we create an action and make it depend on an alias
$ cat >dune-project <<EOF
> (lang dune 3.11)
> EOF
$ export DUNE_SANDBOX=symlink
$ cat >dune <<EOF
> (rule
> (alias bar)
> (action (with-stdout-to alias-dep (echo ""))))
> (rule
> (alias foo)
> (deps (alias bar))
> (action (system "find . | sort")))
> EOF
$ dune build @foo
.
Now we set (expand_aliases_in_sandbox), and re-run the action.
$ cat >dune-project <<EOF
> (lang dune 3.11)
> (expand_aliases_in_sandbox)
> EOF
$ dune build @foo
.
./alias-dep
The above output should include the files that we depend on via the alias
expansion.