Releases: mirage/ocaml-tar
3.1.2
CHANGES:
- Fix a wrong assumption in
Tar_lwt_unix.run
forTar.Really_read _
that one
tar block was always read. This meant that usingTar.Really_read
with a
size different from 512 would fail. (Reported by @jonahbeckford, review by @hannesm, @reynir, #153) - Document better the actual behavior of
Tar_unix.extract
and
Tar_lwt_unix.extract
(@reynir, #155)
3.1.1
3.1.0
3.0.0
CHANGES:
-
Fix
Header.marshal
and the checksum and the length (@reynir, #145) -
Delete a mutable field about the level into the header (@hannesm, #141)
-
BREAKING: de-functorize the package (@hannesm, @reynir, @dinosaure, #140, #143, #146)
These PRs attempt to de-functorize
Tar
so that users can implement I/O
themselves, usingTar
's own element serialization/deserialization functions
to take advantage of read/write methods. This avoids imposing on the user the
implementation of a module that is too rigid in his/her case (which could have
performance implications).Tar
offers functions for serializing/deserializing tar-specific elements
fromstring
. It is then up to the user to know how to obtain or write these
strings
.To this, these PRs add "logics" (see
'a Tar.t
) requiring read and/or write
implementations and describing how to extract all entries from a tar file or
how to write a tar file according to a "dispenser" (likeSeq.to_dispenser
)
of entries.These logics do not depend on a particular "scheduler", and these PRs propose
a derivation of these logics withtar-unix
,tar-eio
andtar-mirage
.
These latter derivations mean that the API for these packages has only been
extended, and there are no breaking changes as such.These logics also make it easy to offer a compression/decompression layer with
decompress
, so you can easily manipulate and/or create a .tar.gz file.
2.6.0
CHANGES:
- Add eio backend for tar in
tar-eio
(@patricoferris, review by @talex5, @reynir, #132) - Also apply backwards compatibility fix when GNU LongName is used.
The compatibility fix is unfortunately also applied for unknown-to-ocaml-tar link indicators (reported by @gravicappa in #129, @reynir, #133)
2.5.1
2.5.0
2.4.0
CHANGES:
- Switch to alcotest for tests (@MisterDA, review by @reynir, #121)
- BREAKING: fix ustar magic version. Previously, the version "0\000" was
serialized instead of the correct version "00". This means tar archives may
not be reproducable with older versions. (@reynir, @hannesm, #117 and #122) - Remove
ppx_cstruct
dependency (@hannesm, review by @reynir, #117) - Properly skip Pax GlobalExtendedHeaders (@MisterDA, @reynir, #116 and #118)