Skip to content

Commit ad76523

Browse files
committed
Merge pull request #120 from samoht/master
Update cohttp version constraints
2 parents a18a9b3 + 51092e8 commit ad76523

File tree

9 files changed

+18
-18
lines changed

9 files changed

+18
-18
lines changed

lib/memory.ml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ let err_not_found n k =
2222
let str = Printf.sprintf "Git.Memory.%s: %s not found" n k in
2323
Lwt.fail (Invalid_argument str)
2424

25-
module Make (D: SHA.DIGEST) = struct
25+
module Make (D: SHA.DIGEST) (I: Inflate.S) = struct
2626

27-
module Value_IO = Value.IO(D)(Inflate.None)
27+
module Value_IO = Value.IO(D)(I)
2828

2929
type t = {
3030
root : string;
@@ -119,8 +119,8 @@ module Make (D: SHA.DIGEST) = struct
119119
in
120120
failwith str
121121

122-
module Pack_IO = Pack.IO(D)(Inflate.None)
123-
module Packed_value_IO = Packed_value.IO(D)(Inflate.None)
122+
module Pack_IO = Pack.IO(D)(I)
123+
module Packed_value_IO = Packed_value.IO(D)(I)
124124

125125
let write_pack t pack =
126126
Pack_IO.of_raw pack >>= fun pack ->
@@ -209,5 +209,5 @@ module Make (D: SHA.DIGEST) = struct
209209
let kind = `Memory
210210

211211
module Digest = D
212-
module Inflate = Inflate.None
212+
module Inflate = I
213213
end

lib/memory.mli

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
(** Store Git objects in memory. *)
1818

19-
module Make (D: SHA.DIGEST): sig
19+
module Make (D: SHA.DIGEST) (I: Inflate.S): sig
2020

2121
include Store.S
2222

lib/mirage/git_mirage.ml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,6 @@ module Smart_HTTP = struct
274274
module Net = struct
275275
module IO = HTTP_IO
276276
type ctx = { resolver: Resolver_lwt.t; conduit: Conduit_mirage.t; }
277-
let sexp_of_ctx { resolver; _ } = Resolver_lwt.sexp_of_t resolver
278277
let default_ctx = {
279278
resolver = Resolver_mirage.localhost;
280279
conduit = Conduit_mirage.empty;

lib/mirage/git_mirage.mli

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,12 @@ module FS (FS: FS) (D: Git.SHA.DIGEST) (I: Git.Inflate.S): Git.FS.S
3333

3434
module Sync: sig
3535
module IO: Git.Sync.IO with type ctx = Resolver_lwt.t * Conduit_mirage.t
36+
3637
module Result:
3738
(module type of Git.Sync.Result with type fetch = Git.Sync.Result.fetch
3839
and type push = Git.Sync.Result.push)
39-
module Make (D: Git.SHA.DIGEST) (I: Git.Inflate.S) (S: Git.Store.S):
40+
41+
module Make (S: Git.Store.S):
4042
Git.Sync.S with type t = S.t and type ctx = IO.ctx
4143
end
4244

lib/sync.ml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,9 @@ module Result = struct
307307

308308
end
309309

310-
module Make (IO: IO) (D: SHA.DIGEST) (I: Inflate.S) (Store: Store.S) = struct
310+
module Make (IO: IO) (Store: Store.S) = struct
311311

312-
module SHA_IO = SHA.IO(D)
312+
module SHA_IO = SHA.IO(Store.Digest)
313313

314314
exception Error
315315

@@ -878,7 +878,7 @@ module Make (IO: IO) (D: SHA.DIGEST) (I: Inflate.S) (Store: Store.S) = struct
878878

879879
module Update_request = struct
880880

881-
module Pack_IO = Pack.IO(D)(I)
881+
module Pack_IO = Pack.IO(Store.Digest)(Store.Inflate)
882882

883883
type command =
884884
| Create of Reference.t * SHA.Commit.t
@@ -1000,7 +1000,7 @@ module Make (IO: IO) (D: SHA.DIGEST) (I: Inflate.S) (Store: Store.S) = struct
10001000
| Fetch of fetch
10011001

10021002
module Graph = Global_graph.Make(Store)
1003-
module Pack_IO = Pack.IO(D)(I)
1003+
module Pack_IO = Pack.IO(Store.Digest)(Store.Inflate)
10041004

10051005
let push ?ctx t ~branch gri =
10061006
Log.debug "Sync.push";

lib/sync.mli

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,5 +177,4 @@ module type IO = sig
177177

178178
end
179179

180-
module Make (IO: IO) (D: SHA.DIGEST) (I: Inflate.S) (S: Store.S):
181-
S with type t = S.t and type ctx = IO.ctx
180+
module Make (IO: IO) (S: Store.S): S with type t = S.t and type ctx = IO.ctx

lib/unix/git_unix.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,15 +348,15 @@ module Make (D: Git.SHA.DIGEST) (I: Git.Inflate.S) = struct
348348
module Sync = struct
349349
module IO = IO_Sync
350350
module Result = Sync.Result
351-
module Make = Sync.Make(IO)(D)(I)
351+
module Make = Sync.Make(IO)
352352
end
353353

354354
module FS = struct
355355
module IO = IO_FS
356356
include Git.FS.Make(IO_FS)(D)(I)
357357
end
358358

359-
module Memory = Git.Memory.Make(D)
359+
module Memory = Git.Memory.Make(D)(I)
360360

361361
module SHA_IO = Git.SHA.IO(D)
362362
module Value_IO = Value.IO(D)(I)

lib_test/test_memory.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
open Test_store
1818

19-
module Memory = Git.Memory.Make(Git_unix.SHA1)
19+
module Memory = Git.Memory.Make(Git_unix.SHA1)(Git_unix.Zlib)
2020

2121
let init () =
2222
Git.Value.Cache.clear ();

opam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ depopts: [
5656
"nocrypto"
5757
]
5858
conflicts: [
59-
"cohttp" {< "0.18.0" & >="0.19.0"}
59+
"cohttp" {< "0.19.1"}
6060
"conduit" {< "0.8.4"}
6161
"alcotest" {< "0.4.0"}
6262
"camlzip" {< "1.05"}

0 commit comments

Comments
 (0)