Skip to content

Commit

Permalink
Expose a bug related to patch-back-source-tree and the action stamp f…
Browse files Browse the repository at this point in the history
…ile (#5121)

Signed-off-by: Jeremie Dimino <[email protected]>
  • Loading branch information
jeremiedimino authored Nov 9, 2021
1 parent 8277f73 commit f78017c
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions test/blackbox-tests/test-cases/patch-back-source-tree.t
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,30 @@ inside the source tree:

$ if test -w x; then echo writable; else echo non-writable; fi
writable

Reproduction case for copying the action stamp file
---------------------------------------------------

At the moment, there is a bug causing the internal action stamp file
to be produced in the sandbox and copied back:

$ cat >dune<<EOF
> (rule
> (mode patch-back-source-tree)
> (alias blah)
> (action (system "echo 'Hello, world!'")))
> EOF

$ dune build @blah
Hello, world!

This is the internal stamp file:

$ ls _build/.actions/default/blah*
_build/.actions/default/blah-3209c92f18c7050c580114796b6023bd

And it ends up copied in the source tree:

$ ls default/blah*
default/blah-3209c92f18c7050c580114796b6023bd

0 comments on commit f78017c

Please sign in to comment.