Hello, we have a use case where we want to package...
# general
f
Hello, we have a use case where we want to package some files into a zip file using an
archive
target deterministically (in 🧵).
These are files that rarely change (CA certificates), but when they do we want to propagate an update downstream that uses the file hash to determine if it needs to be updated and the environment (airflow) needs to be restarted.
The problem is that while the contents of the archive don’t change, the zips include a timestamp as metadata that throws the archive hash off and triggers the environment to be restarted every time.
This blog post describes a `--no-extra`/`-X` flag to
zip
that excludes the metadata, so the zip can be deterministic from the file contents - is there any way to get pants to use this flag for our target?
f
Is that something you would want upstream? Happy to PR it if so
h
Makes sense to, thanks!
✔️ 1
f
oh that's very useful, I didn't know about this flag, thanks for sharing this @faint-businessperson-86903
🙌 1