Change parsing of buck output for infer-deps.txt

Summary: Filenames can contain spaces, so we need to split on the first ' '

Reviewed By: jvillard

Differential Revision: D21618408

fbshipit-source-id: b1e472d18
master
Martin Trojer 5 years ago committed by Facebook GitHub Bot
parent d5b7130eb5
commit 89dbb41ca8

@ -73,8 +73,8 @@ let run_buck_build prog buck_build_args =
*)
let process_buck_line acc line =
L.debug Capture Verbose "BUCK OUT: %s@." line ;
match String.split ~on:' ' line with
| [_; target_path] ->
match String.lsplit2 ~on:' ' line with
| Some (_, target_path) ->
let filename =
ResultsDirEntryName.get_path
~results_dir:(Config.project_root ^/ target_path)

Loading…
Cancel
Save