Select the types of activity you want to include in your feed.
Thread ~sw through monopam to fix Switch finished! bug
Pass Eio switch from top-level Eio_main.run down to all Git.Repository.open_repo calls instead of creating tiny per-call Switch.run scopes that close prematurely.
···7474 unregistered
7575 end
76767777-let print_forks ~proc ~fs ~config ~show_all =
7777+let print_forks ~sw ~proc ~fs ~config ~show_all =
7878 match Monopam.Verse_config.load ~fs () with
7979 | Error _ -> ()
8080 | Ok verse_config ->
···123123 "(opam changed)")
124124 pub.unpublished
125125 end;
126126- if show_forks then print_forks ~proc ~fs ~config ~show_all;
126126+ if show_forks then print_forks ~sw ~proc ~fs ~config ~show_all;
127127 `Ok ()
128128 | Error e ->
129129 Fmt.epr "Error: %a@." Monopam.pp_error_with_hint e;
+3-1
bin/cmd_verse.ml
···363363 Common.with_verse_config env @@ fun config ->
364364 let fs = Eio.Stdenv.fs env in
365365 let proc = Eio.Stdenv.process_mgr env in
366366+ Eio.Switch.run @@ fun sw ->
366367 match
367367- Monopam.Verse.fork ~proc ~fs ~config ~handle ~package ~fork_url ~dry_run ()
368368+ Monopam.Verse.fork ~sw ~proc ~fs ~config ~handle ~package ~fork_url ~dry_run
369369+ ()
368370 with
369371 | Ok result ->
370372 handle_fork_success ~fs ~config ~dry_run result;
+1-1
lib/add.ml
···1010let run ~sw ~proc ~fs ~config ~package:pkg_name () =
1111 let fs_t = Ctx.fs_typed fs in
1212 Ctx.ensure_checkouts_dir ~fs:fs_t ~config;
1313- match Init.ensure ~proc ~fs:fs_t ~config with
1313+ match Init.ensure ~sw ~proc ~fs:fs_t ~config with
1414 | Error e -> Error e
1515 | Ok () -> (
1616 match Ctx.package ~fs:(fs_t :> _ Eio.Path.t) ~config pkg_name with