diff options
author | Florian Klink <flokli@flokli.de> | 2024-03-14T11·50+0200 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-03-14T16·52+0000 |
commit | 43c851bc841bccc65ffddab7205783c43f25417f (patch) | |
tree | 74249d4df9d5c82f5e12b345a62728bbeaed157f /tvix/scripts | |
parent | 35f636b68482d8c84939b4707514a48416557bb4 (diff) |
refactor(nix-compat/store_path): take [u8;32] for outer fingerprint r/7691
The outer fingerprint used for store path calculation is always a sha256 digest. This includes both input and output-addressed store paths. We used a NixHash here, which can also represent other hash types, and that had a bunch of annoyances: - Whenever we had the bytes, we had to wrap them in a NixHash::Sha256(). - Things like AtermWriteable had to be implemented on NixHash, even though we then had an assertion it was only called in the NixHash::Sha256 case. Change-Id: Ic895503d9b071800d2e52ae057666f44bd0ab9d6 Reviewed-on: https://cl.tvl.fyi/c/depot/+/11142 Tested-by: BuildkiteCI Autosubmit: flokli <flokli@flokli.de> Reviewed-by: John Ericson <git@johnericson.me> Reviewed-by: picnoir picnoir <picnoir@alternativebit.fr>
Diffstat (limited to 'tvix/scripts')
0 files changed, 0 insertions, 0 deletions