Skip to content

feat: preserve datetime of building the KPAR in the zip metadata - #491

Open
andrius-puksta-sensmetry wants to merge 1 commit into
sensmetry:mainfrom
andrius-puksta-sensmetry:pr/zip-correct-date
Open

feat: preserve datetime of building the KPAR in the zip metadata#491
andrius-puksta-sensmetry wants to merge 1 commit into
sensmetry:mainfrom
andrius-puksta-sensmetry:pr/zip-correct-date

Conversation

@andrius-puksta-sensmetry

Copy link
Copy Markdown
Collaborator

We initialy wanted to make kpars reproducible, so set datetime to earliest possible (#372). To prevent confusion of users who download and unzip a kpar manually (and then see that the files date back to 1980), set the datetime to the build datetime (same for all files). If we find a good reason to have reproducible kpars, this can be changed in the future.

What do you think @consideRatio? We don't currently have good reasons to do either way, but having the correct time is less confusing to users.

We initialy wanted to make kpars reproducible, so set datetime to
earliest possible. To prevent confusion of users who download and unzip
a kpar manually (and then see that the files date back to 1980), set the
datetime to the build datetime (same for all files). If we find a good
reason to have reproducible kpars, this can be changed in the future.

Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>

@consideRatio consideRatio left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is OK to do, not formed a clear opinion yet.

It seems Python wheels built with wheel is letting source file's modified time be respected in the .whl files (zip), but pip when installing a wheel, will install content so its declared modified as "now".

So we have the following considerations:

  1. What .kpar / zip do we write -- perhaps 1980 / now / last-modified
  2. What .kpar / zip files do we unpack when using sysand -- perhaps 1980 / now / archive's "modified" info

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

Successfully merging this pull request may close these issues.

2 participants