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

Timestamps encoded in tar file #41

Open
pavelzw opened this issue Aug 8, 2024 · 3 comments
Open

Timestamps encoded in tar file #41

pavelzw opened this issue Aug 8, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@pavelzw
Copy link
Member

pavelzw commented Aug 8, 2024

❯ pixi-pack pack -o env1.tar
⏳ Downloading 3 packages...
📦 Created pack at env1.tar with size 6.05 MiB.
❯ pixi-pack pack -o env2.tar
⏳ Downloading 3 packages...
📦 Created pack at env2.tar with size 6.05 MiB.
❯ sha256sum env*.tar
aa42d191320d39b64c8cb9a83ec7a1b19dc67a9fe36a61aa133437c28c475053  env1.tar
c5fa50a37ac57d73d7640de8a0cd9522732e862af0cf91f9c9fb1cc73ca11174  env2.tar
❯ pixi exec diffoscope env*.tar
--- env1.tar
+++ env2.tar
├── file list
│ @@ -1,9 +1,9 @@
│ -drwxr-xr-x   0      501       20        0 2024-08-08 11:23:13.000000 ./
│ -drwxr-xr-x   0      501       20        0 2024-08-08 11:23:13.000000 channel
│ -drwxr-xr-x   0      501       20        0 2024-08-08 11:23:13.000000 channel/osx-arm64
│ --rw-r--r--   0      501       20   154517 2024-08-08 11:23:13.000000 channel/osx-arm64/ca-certificates-2024.7.4-hf0a4a13_0.conda
│ --rw-r--r--   0      501       20  3284536 2024-08-08 11:23:13.000000 channel/osx-arm64/pixi-pack-0.1.5-h563f0a8_0.conda
│ --rw-r--r--   0      501       20  2899682 2024-08-08 11:23:13.000000 channel/osx-arm64/openssl-3.3.1-hfb2fe0b_2.conda
│ --rw-r--r--   0      501       20     1698 2024-08-08 11:23:13.000000 channel/osx-arm64/repodata.json
│ --rw-r--r--   0      501       20       47 2024-08-08 11:23:13.000000 pixi-pack.json
│ --rw-r--r--   0      501       20      153 2024-08-08 11:23:13.000000 environment.yml
│ +drwxr-xr-x   0      501       20        0 2024-08-08 11:23:16.000000 ./
│ +drwxr-xr-x   0      501       20        0 2024-08-08 11:23:16.000000 channel
│ +drwxr-xr-x   0      501       20        0 2024-08-08 11:23:16.000000 channel/osx-arm64
│ +-rw-r--r--   0      501       20   154517 2024-08-08 11:23:16.000000 channel/osx-arm64/ca-certificates-2024.7.4-hf0a4a13_0.conda
│ +-rw-r--r--   0      501       20  3284536 2024-08-08 11:23:16.000000 channel/osx-arm64/pixi-pack-0.1.5-h563f0a8_0.conda
│ +-rw-r--r--   0      501       20  2899682 2024-08-08 11:23:16.000000 channel/osx-arm64/openssl-3.3.1-hfb2fe0b_2.conda
│ +-rw-r--r--   0      501       20     1698 2024-08-08 11:23:16.000000 channel/osx-arm64/repodata.json
│ +-rw-r--r--   0      501       20       47 2024-08-08 11:23:16.000000 pixi-pack.json
│ +-rw-r--r--   0      501       20      153 2024-08-08 11:23:16.000000 environment.yml

We should set it to some fixed value s.t. the files are reproducible: https://reproducible-builds.org/docs/archives/

@pavelzw pavelzw added the bug Something isn't working label Aug 8, 2024
@xhochy
Copy link
Member

xhochy commented Aug 9, 2024

This should be the timestamps the files already have in the conda package.

@pavelzw
Copy link
Member Author

pavelzw commented Aug 9, 2024

They are located in info/index.json and should be present in the rattler struct. For pixi-pack.json, repodata.json and environment.yml we need to set a fixed date, for example 2024-01-01.

@pavelzw
Copy link
Member Author

pavelzw commented Aug 9, 2024

When downloading with wget https://anaconda.org/conda-forge/pixi-pack/0.1.5/download/osx-arm64/pixi-pack-0.1.5-h563f0a8_0.conda we get the correct date 🤔 maybe it's rattler doing weird things to the file s.t. the date is changed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants