-
Notifications
You must be signed in to change notification settings - Fork 165
Open
Description
I have a small test of irmin using the git backend, which works perfectly on its own. I wanted to experiment with irmin-pack and added it as a dependency, and found that the original git backend example started to fail with an invalid checksum error.
let make ~token ~url =
let open Lwt_result.Syntax in
let* repo = Store.Repo.v config |> Lwt_result.ok in
let* store = Store.main repo |> Lwt_result.ok in
let headers =
let e = Cohttp.Header.of_list [] in
Cohttp.Header.add_authorization e (`Basic ("oauth2", token))
in
let* remote = Store.remote ~headers url |> Lwt_result.ok in
let+ _status =
Lwt_result.ok
@@
Sync.pull_exn store remote `Set
|> Lwt_result.map_error (fun e -> Fmt.to_to_string Sync.pp_pull_error e)Fatal error: exception Invalid_argument("Sync.pull_exn: object <0000000e>: Invalid checksum (expect:2ed549da, has:0000)")
Raised at Lwt.Miscellaneous.poll in file "src/core/lwt.ml", line 3123, characters 20-29
Called from Lwt_main.run.run_loop in file "src/unix/lwt_main.ml", line 27, characters 10-20
Called from Lwt_main.run in file "src/unix/lwt_main.ml", line 106, characters 8-13
Re-raised at Lwt_main.run in file "src/unix/lwt_main.ml", line 112, characters 4-13
Called from Dune__exe__Main.sync_repo in file "server/main.ml", line 76, characters 2-20```
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels