4 ms·
Just use a sha256 hash of the library. If it matches something you already have, you can skip a download. If not, you download another copy.
by tedunangst 5y ago
Just use a sha256 hash of the library. If it matches something you already have, you can skip a download. If not, you download another copy.
- mananaysiempre 5y agoAnd given that’s a new approach in a Unix-like environment, let’s call it Nix, and the content-addressed download location should probably be called the binary cache :) [Not really, Nix integrates a build system into the process, and there was prior work I can’t remember that was binary-only and so closer, but the essence of the idea is very similar.]