Skip to content

Commit

Permalink
Merge pull request #2159 from rgrinberg/relax-mkdir
Browse files Browse the repository at this point in the history
Tweak mkdir_p uses
  • Loading branch information
rgrinberg authored May 15, 2019
2 parents 7aedf81 + 5c0484f commit 6166600
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ unreleased

- Add a 'cookies' option to ppx_rewriter/deriver flags in library stanzas
(#2106, @mlasson @diml). This allow to specify cookie requests from
variables expanded at each invocation of the preprocessor.
variables expanded at each invocation of the preprocessor.

- Add more opam metadata and use it to generate `.opam` files. In particular, a
`package` field has been added to specify package specific information.
Expand Down
8 changes: 7 additions & 1 deletion src/action_exec.ml
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,13 @@ let rec exec t ~ectx ~dir ~env ~stdout_to ~stderr_to =
Path.rm_rf path;
Fiber.return ()
| Mkdir path ->
Path.mkdir_p path;
begin
if Path.is_in_build_dir path then
Path.mkdir_p path
else
Exn.code_error "Action_exec.exec: mkdir on non build dir"
["path", Path.to_sexp path]
end;
Fiber.return ()
| Digest_files paths ->
let s =
Expand Down

0 comments on commit 6166600

Please sign in to comment.