diff --git a/sledge/bin/sledge_buck.ml b/sledge/bin/sledge_buck.ml index 3321563af..c019c70bf 100644 --- a/sledge/bin/sledge_buck.ml +++ b/sledge/bin/sledge_buck.ml @@ -26,7 +26,9 @@ let cwd = Unix.getcwd () (* query buck for root *) let buck_root = let open Process in - lazy (String.strip (eval (run "buck" ["root"] |- read_all))) + lazy + (String.strip + (eval (run "buck" ["root"; "@mode/" ^ Lazy.force mode] |- read_all))) (* use buck root for working directory *) let context () =