New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split the unix specific part out of irmin-pack #1783
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks good
src/irmin-pack/unix/import.ml
Outdated
include Irmin.Export_for_backends | ||
|
||
let src = Logs.Src.create "irmin.pack" ~doc:"irmin-pack backend" | ||
|
||
module Log = (val Logs.src_log src : Logs.LOG) | ||
|
||
module Int63 = struct | ||
include Optint.Int63 | ||
|
||
let t = Irmin.Type.int63 | ||
end | ||
|
||
type int63 = Int63.t [@@deriving irmin] | ||
|
||
let ( ++ ) = Int63.add | ||
let ( -- ) = Int63.sub |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
include Irmin.Export_for_backends | |
let src = Logs.Src.create "irmin.pack" ~doc:"irmin-pack backend" | |
module Log = (val Logs.src_log src : Logs.LOG) | |
module Int63 = struct | |
include Optint.Int63 | |
let t = Irmin.Type.int63 | |
end | |
type int63 = Int63.t [@@deriving irmin] | |
let ( ++ ) = Int63.add | |
let ( -- ) = Int63.sub | |
include Irmin_pack.Import |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Import is not exported in irmin-pack
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it fine to define twice Logs.Src.create "irmin.pack" ~doc:"irmin-pack backend"
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know, but it probably make sense to change the name. I've pushed a change
I've fixed the rest of the codebase. |
Codecov Report
@@ Coverage Diff @@
## main #1783 +/- ##
==========================================
- Coverage 64.70% 64.68% -0.03%
==========================================
Files 111 115 +4
Lines 14060 14063 +3
==========================================
- Hits 9098 9097 -1
- Misses 4962 4966 +4
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
…min-test, irmin-pack, irmin-mirage, irmin-mirage-graphql, irmin-mirage-git, irmin-http, irmin-graphql, irmin-git, irmin-fs, irmin-containers, irmin-chunk and irmin-bench (3.1.0) CHANGES: ### Fixed - **irmin-pack** - Drop unnecessary runtime dependency on `ppx_irmin`. (mirage/irmin#1782, @hhugo) - Split the unix part of irmin-pack into irmin-pack.unix (mirage/irmin#1783, @hhugo) - **irmin-unix** - Fix conflicting command line arguments for `push`, `pull`, `fetch` and `clone` (mirage/irmin#1776, @zshipko) - Fix issues with Sync functions by provided a better default `Mimic.ctx`. A side-effect of this update is that the `remote` function now returns an Lwt promise. (mirage/irmin#1778, @zshipko) ### Added - **libirmin** - Create `libirmin` package providing a C interface to the irmin API (mirage/irmin#1713, @zshipko) ### Changed - **irmin-bench** - Make trace replay API public and simpler (mirage/irmin#1781, @Ngoguey42)
The mirage#1783 PR introduced `irmin-pack.unix` by moving code out of `irmin-pack`. This commit goes further by moving more code. Partially extracted from mirage#1832 Co-authored-by: Nicolas Goguey <ngoguey42@free.fr> Co-authored-by: Tom Ridge <tom.j.ridge@googlemail.com>
The mirage#1783 PR introduced `irmin-pack.unix` by moving code out of `irmin-pack`. This commit goes further by moving more code. Partially extracted from mirage#1832 Co-authored-by: Nicolas Goguey <ngoguey42@free.fr> Co-authored-by: Tom Ridge <tom.j.ridge@googlemail.com>
The mirage#1783 PR introduced `irmin-pack.unix` by moving code out of `irmin-pack`. This commit goes further by moving more code. Partially extracted from mirage#1832 Co-authored-by: Nicolas Goguey <ngoguey42@free.fr> Co-authored-by: Tom Ridge <tom.j.ridge@googlemail.com>
Fix #1772