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,20 @@
Glob deps in a subdirectory that refer to a path outside that subdirectory
$ cat > dune-project <<EOF
> (lang dune 3.6)
> EOF
$ mkdir -p foo bar
$ cat > foo/dune <<EOF
> (rule
> (alias x)
> (deps (glob_files ../bar/*.txt))
> (action (system "for i in %{deps}; do printf \"\$i\\n\"; done")))
> EOF
$ touch bar/a.txt bar/b.txt
$ dune build @foo/x
../bar/a.txt
../bar/b.txt