Skip to content

builtins.fetchTarball fails on ZIP archives when the source is absent from the store #300

Done

Description

@rcouto

First of all, thank you for the great project! My CI eval speed up is over 4x! But sharing finding that IETS 0.2.0 (e171eb868c8558ff61e407f671f58f3e48c24728) fails below; standard Nix succeeds:

builtins.fetchTarball {
  url = "https://github.com/sini/gen/archive/6427d42770e3b1c283b8caf2929ed622e551ebb9.zip";
  sha256 = "sha256-iZy+KBldd5UQh1RdCgMbmrYbnKMH0Vy9iJ4mpn1fbzw=";
  name = "nfu-1965-zip-repro";
}

Evaluate with iets eval --raw --expr '…' versus nix eval --raw --expr '…'. Run IETS first with an unused name to prevent store reuse.

Actual: cannot read the tarball: numeric field was not a number: 22e551eb when getting cksum for PK\u0003\u0004
Expected: Unpack successfully, as standard Nix does.

Encountered in Den’s schema loader (https://github.com/denful/den/blob/0f7675b0b789eabe1a62f8a31b5323a7ad3ca5c4/nix/lib/schema.nix#L27-L32):

locked = lock.nodes.gen.locked;
genSrc = builtins.fetchTarball {
  url = "https://github.com/${locked.owner}/${locked.repo}/archive/${locked.rev}.zip";
  sha256 = locked.narHash;
};

An already-valid source in /nix/store masks the failure. The divergence documentation doesn’t explicitly mention unsupported ZIP archives.

Activity

  1. added
    bug
    on Oct 30, 2026
  2. added a commit that references this issue on Nov 28, 2026
    0e717da
  3. added a commit that references this issue on Nov 28, 2026
    4947e9f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions