File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -195,8 +195,7 @@ module Process = struct
195
195
let * stdin = make stdin_w Output in
196
196
let + stdout = make stdout_r Input in
197
197
let session = Lev_fiber_csexp.Session. create ~socket: false stdout stdin in
198
- let initial_cwd = Misc. canonicalize_filename dir in
199
- { pid; initial_cwd; stdin; stdout; session }
198
+ { pid; initial_cwd = dir; stdin; stdout; session }
200
199
end
201
200
202
201
module Dot_protocol_io =
@@ -319,7 +318,9 @@ let find_project_context start_dir =
319
318
List. find_map [ " dune-project" ; " dune-workspace" ] ~f: (fun f ->
320
319
let fname = Filename. concat dir f in
321
320
if file_exists fname then
322
- let workdir = Option. value ~default: dir workdir in
321
+ let workdir =
322
+ Misc. canonicalize_filename (Option. value ~default: dir workdir)
323
+ in
323
324
Some ({ workdir; process_dir = dir }, fname)
324
325
else None )
325
326
with
You can’t perform that action at this time.
0 commit comments