Open grahamc opened 11 months ago
We certainly could. Does that mean you're interested in accepting this change as designed?
Hi @grahamc :wave:
This relates a lot to e.g. https://github.com/alexcrichton/tar-rs/pull/346 and https://github.com/alexcrichton/tar-rs/pull/343 a bit.
In your use case, do you also want to canonicalize uid/gid? I'd guess so...which would argue that we should fix HeaderMode::Deterministic
.
Also I think we should call out that it's really not terribly hard to do "manually" walk a directory recursively and add entries to it:
We could put that in examples/build-walkdir.rs
or something that people could at least copy-paste as a reference?
Hi Alex,
Thanks for the excellent tar crate. While developing a project, we needed a way to override the mtime. This was the most direct route to get it done, even though I'm rather sure it isn't something you'd want to merge upstream.
So, here is some code we wrote. We're sending the PR for you to look at and consider as a use case. We'd be interested in hearing back from you if you're interested in a better implementation, and if so what you think that might look like.
Thank you!