News for hackers. Stuff that matters.
Re:Git archive checksums may change by pxc on Monday January 30, 2023 @06:13PM (#34588037)
Nixpkgs' so-called binary cache actually also caches source tarballs. Any Nix users out there who ran updates during the change?

Did cache hits save you? Did cache misses break your builds?

Re:Git archive checksums may change by jkachmar on Monday January 30, 2023 @06:51PM (#34588495)
didn’t realize this had happened until i logged off of my work computer & saw someone had shared this thread in a group chat.

looks like we were completely unaffected, as no one made any updates to derivations referencing GitHub sources in a way that invalidated old entries (i.e. no version bumps, new additions, etc.).

Re:Git archive checksums may change by anderskaseorg on Monday January 30, 2023 @06:52PM (#34588508)
Nixpkgs’s fetchFromGitHub function hashes the contents of GitHub archives after unpacking, so it’s unaffected.
Re:Git archive checksums may change by pxc on Tuesday January 31, 2023 @01:31PM (#34599497)
I should have remembered this! Nixpkgs committers are consistently mindful of things like this in code reviews.
Re:Git archive checksums may change by clhodapp on Monday January 30, 2023 @06:59PM (#34588597)
I could be wrong but believe that nix should be safe for the most part because it does a recursive hash of the stuff it cares about on the extraction of these archives.