tvl-depot/tvix/nix-compat/src
Florian Klink d4cbdc2beb feat(tvix/nix-compat/nixhash): support BASE64_NOPAD SRI
Nix accepts SRI hashes that are missing their padding characters
in base64, as seen in
7e49471316/pkgs/development/libraries/kerberos/krb5.nix .

It only seems to work in the SRI case, not with `sha256` being set to a
(nopad) base64 string.

Add regression tests for this, and document why we don't want to support
*additional* characters afterwards.

Reported in https://b.tvl.fyi/issues/252

Change-Id: I9ffc2b417501b426ced1894a9cbf95ff5f0e5159
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8037
Reviewed-by: Alyssa Ross <hi@alyssa.is>
Tested-by: BuildkiteCI
2023-02-08 10:39:26 +00:00
..
derivation feat(tvix/nix-compat/derivation): Display -> to_aterm_string() 2023-02-01 16:31:56 +00:00
nar refactor(tvix/nix-compat): absorb nar writer 2023-01-31 15:18:39 +00:00
lib.rs feat(tvix/nix-compat): add nixhash module 2023-02-01 15:29:48 +00:00
nixbase32.rs refactor(tvix/nix-compat): operator precedence can trip the unwary 2023-02-01 13:43:24 +00:00
nixhash.rs feat(tvix/nix-compat/nixhash): support BASE64_NOPAD SRI 2023-02-08 10:39:26 +00:00
store_path.rs docs(tvix/nix-compat/store_path): fix docstrings 2023-01-31 15:35:45 +00:00