Skip to content

Commit

Permalink
stop using camlzip
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Gazagnaire <thomas@gazagnaire.org>
  • Loading branch information
samoht committed May 18, 2017
1 parent c554653 commit e3cdaa8
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -13,7 +13,7 @@ RUN opam pin add irmin.1.2.0 -n https://github.com/mirage/irmin.git#81ffa256d3aa
RUN opam pin add irmin-mem.1.2.0 -n https://github.com/mirage/irmin.git#81ffa256d3aa6b73b689609f7a5ff01c298fe821
RUN opam pin add irmin-git.1.2.0 -n https://github.com/mirage/irmin.git#81ffa256d3aa6b73b689609f7a5ff01c298fe821

RUN opam depext -ui lwt inotify alcotest conf-libev asl win-eventlog camlzip \
RUN opam depext -ui lwt inotify alcotest conf-libev asl win-eventlog \
irmin-watcher mtime mirage-flow conduit hvsock prometheus-app git irmin \
cmdliner protocol-9p rresult win-error named-pipe

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.ci
Expand Up @@ -16,7 +16,7 @@ RUN opam pin add irmin-http.1.2.0 -n https://github.com/mirage/irmin.git#81ffa25
RUN opam pin add irmin-git.1.2.0 -n https://github.com/mirage/irmin.git#81ffa256d3aa6b73b689609f7a5ff01c298fe821
RUN opam pin add irmin-unix.1.2.0 -n https://github.com/mirage/irmin.git#81ffa256d3aa6b73b689609f7a5ff01c298fe821

RUN opam depext -i asl win-eventlog camlzip alcotest mtime mirage-flow hvsock \
RUN opam depext -i asl win-eventlog alcotest mtime mirage-flow hvsock \
git irmin irmin-unix lwt protocol-9p-unix tyxml redis multipart-form-data \
pbkdf tls prometheus-app github git session irmin irmin-unix cmdliner \
webmachine alcotest
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.github
Expand Up @@ -14,7 +14,7 @@ RUN opam pin add irmin-git.1.2.0 -n https://github.com/mirage/irmin.git#81ffa256

RUN opam depext -ui lwt inotify alcotest conf-libev lambda-term cmdliner \
github protocol-9p rresult prometheus-app asl win-eventlog mtime hex \
github-hooks hvsock camlzip irmin-watcher git irmin
github-hooks hvsock irmin-watcher git irmin

COPY check-libev.ml /tmp/check-libev.ml
RUN opam config exec -- ocaml /tmp/check-libev.ml
Expand Down
6 changes: 3 additions & 3 deletions ci/tests/test_utils.ml
@@ -1,3 +1,6 @@
module Maker = Irmin_git.Mem.Make(Datakit_io.IO)(Git.Inflate.M)
module Store = Ivfs_tree.Make(Maker)

open Datakit_github
open Result
open Lwt.Infix
Expand Down Expand Up @@ -25,9 +28,6 @@ let or_fail msg = function
| None -> Alcotest.fail msg
| Some x -> x

module Maker = Irmin_git.Mem.Make(Datakit_io.IO)(Datakit_io.Zlib)
module Store = Ivfs_tree.Make(Maker)

let config = Irmin_mem.config ()

(*
Expand Down
1 change: 0 additions & 1 deletion datakit.opam
Expand Up @@ -23,7 +23,6 @@ depends: [
"irmin" {>= "1.1.0"}
"irmin-mem"
"irmin-git" {>= "1.0.0"}
"camlzip" {>= "1.06"}
"cstruct" {>= "2.2"}
"result"
"lwt" {>= "3.0.0"}
Expand Down
2 changes: 0 additions & 2 deletions src/datakit-io/datakit_io.ml
Expand Up @@ -415,5 +415,3 @@ module FS = struct
)

end

module Zlib = Git.Inflate.Make(Zlib)
1 change: 0 additions & 1 deletion src/datakit-io/datakit_io.mli
@@ -1,3 +1,2 @@
module IO: Irmin_git.IO
module Zlib: Git.Inflate.S
module FS: Git.FS.IO
3 changes: 1 addition & 2 deletions src/datakit-io/jbuild
Expand Up @@ -3,5 +3,4 @@
(library
((name datakit_io)
(wrapped false)
(libraries (irmin-git conduit.lwt-unix zip))
))
(libraries (irmin-git conduit.lwt-unix))))
4 changes: 2 additions & 2 deletions src/datakit/bin/main.ml
Expand Up @@ -47,7 +47,7 @@ let info msg =

module Git_fs_store = struct
open Datakit_io
module Maker = Irmin_git.FS.Make(IO)(Zlib)(FS)
module Maker = Irmin_git.FS.Make(IO)(Git.Inflate.M)(FS)
module Store = Ivfs_tree.Make(Maker)
type t = Store.Repo.t
module Filesystem = Ivfs.Make(Store)
Expand All @@ -68,7 +68,7 @@ end

module In_memory_store = struct
open Datakit_io
module Maker = Irmin_git.Mem.Make(IO)(Zlib)
module Maker = Irmin_git.Mem.Make(IO)(Git.Inflate.M)
module Store = Ivfs_tree.Make(Maker)
type t = Store.Repo.t
module Filesystem = Ivfs.Make(Store)
Expand Down
2 changes: 1 addition & 1 deletion tests/common/test_utils.ml
Expand Up @@ -97,7 +97,7 @@ let () =
Logs.set_reporter (reporter ());
()

module Maker = Irmin_git.Mem.Make(Datakit_io.IO)(Datakit_io.Zlib)
module Maker = Irmin_git.Mem.Make(Datakit_io.IO)(Git.Inflate.M)
module Store = Ivfs_tree.Make(Maker)
module RW = Ivfs_rw.Make(Store)
module Filesystem = Ivfs.Make(Store)
Expand Down

0 comments on commit e3cdaa8

Please sign in to comment.