Skip to content
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

Issue with Camlzip 1.12 #1607

Closed
xavierleroy opened this issue Jul 10, 2024 · 1 comment
Closed

Issue with Camlzip 1.12 #1607

xavierleroy opened this issue Jul 10, 2024 · 1 comment

Comments

@xavierleroy
Copy link

For reasons explained in ocaml/opam-repository#26207 (comment) , Camlzip version 1.12 removes the extra field from type Zip.entry. This breaks lib/bap_byteweight/bap_byteweight_signatures.ml:

let update_or_fail ?compiler target data payload path =
let entries =
read_entries path |>
List.filter ~f:(fun (entry,_) ->
not (matching_entry ?compiler target data entry)) in
with_output path @@ fun zip ->
let path = make_entry ?compiler target data in
let data = Bytes.unsafe_to_string (data.save payload) in
Zip.add_entry data zip path;
List.iter entries ~f:(fun ({Zip.filename; extra; comment; mtime},data) ->
Zip.add_entry data zip filename
~extra ~comment ~mtime)

I suggest not trying to copy the extra data at all.

@ivg
Copy link
Member

ivg commented Jul 29, 2024

Thanks @xavierleroy and @bmourad01, closing the issue as fixed in #1609

@ivg ivg closed this as completed Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants