Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tweak mkdir_p uses #2159

Merged
merged 1 commit into from
May 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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