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

Release tarballs now contain hardlinks #438

Closed
infinisil opened this issue Jun 3, 2024 · 1 comment
Closed

Release tarballs now contain hardlinks #438

infinisil opened this issue Jun 3, 2024 · 1 comment
Labels

Comments

@infinisil
Copy link
Member

Since around 2024-05-31, Nixpkgs tarballs contain encoded hardlinks.

Older tarball:

$ curl https://releases.nixos.org/nixpkgs/nixpkgs-24.11pre632986.aa61b27554a5/nixexprs.tar.xz \
  | tar -Jxvv | grep 'link to'
[no result]

Newer tarball:

$ curl https://releases.nixos.org/nixpkgs/nixpkgs-24.11pre633168.6132b0f6e344/nixexprs.tar.xz \
  | tar -Jxvv | grep 'link to'
nixpkgs-24.11pre633168.6132b0f6e344/lib/tests/modules/declare-bare-submodule-deep-option.nix
  link to nixpkgs-24.11pre633168.6132b0f6e344/lib/tests/modules/declare-bare-submodule-deep-option-duplicate.nix
nixpkgs-24.11pre633168.6132b0f6e344/lib/tests/modules/disable-recursive/foo.nix
  link to nixpkgs-24.11pre633168.6132b0f6e344/lib/tests/modules/disable-recursive/bar.nix
nixpkgs-24.11pre633168.6132b0f6e344/lib/tests/packages-from-directory/c/support-definitions.nix
  link to nixpkgs-24.11pre633168.6132b0f6e344/lib/tests/packages-from-directory/c/not-a-namespace/not-a-package.nix
nixpkgs-24.11pre633168.6132b0f6e344/nixos/modules/hardware/video/radeon.nix
  link to nixpkgs-24.11pre633168.6132b0f6e344/nixos/modules/hardware/network/broadcom-43xx.nix
nixpkgs-24.11pre633168.6132b0f6e344/pkgs/applications/networking/cluster/k3s/1_28/chart-versions.nix
  link to nixpkgs-24.11pre633168.6132b0f6e344/pkgs/applications/networking/cluster/k3s/1_27/chart-versions.nix
[...]

Because of a new Nix bug, this causes problems when fetching these tarballs with builtins.fetchTarball, which happens CI of a project I maintain. While the bug should ultimately be fixed, this will take a while, and it would be best if we could revert to not generating hardlinks in these tarfiles.

Unfortunately I don't know what causes this. I suspect it's due to an optimised store now being enabled somewhere. It might also be related to @mweinelt updating all builders on 2024-05-29. It might also be related to the nixos-channel-scripts code that repacks the archive.

This was briefly discussed on Matrix

@infinisil
Copy link
Member Author

Should become more reproducible now thanks to NixOS/nixpkgs#317122!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant