snix/tvix/glue/src/tests
Florian Klink cd48566173 fix(tvix/glue): reject unknown attrset args for fetch builtins
This now uses UnexpectedArgumentBuiltin in case builtins.fetchurl or
builtins.fetchTarball are called with the wrong arguments:

```
note: while evaluating this Nix code
 --> [code]:1:1
  |
1 | builtins.readDir (builtins.fetchTarball { url = "https://git"; hash = "sha1-NKNeU1csW5YJ4lCeWH3Z/apppNU=";})
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error[E040]: Unexpected agrument `"hash"` passed to builtin
 --> [code]:1:19
  |
1 | builtins.readDir (builtins.fetchTarball { url = "https://git"; hash = "sha1-NKNeU1csW5YJ4lCeWH3Z/apppNU=";})
  |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ while calling this builtin

```

Change-Id: I51124255a46b78d3cf4dc89a1eca9e68750858d4
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11878
Reviewed-by: Ilan Joselevich <personal@ilanjoselevich.com>
Reviewed-by: flokli <flokli@flokli.de>
Reviewed-by: Simon Hauser <simon.hauser@helsinki-systems.de>
Tested-by: BuildkiteCI
2024-06-26 16:06:52 +00:00
..
nix_tests feat(tvix/eval): implement appendContext 2024-04-04 17:24:26 +00:00
tvix_tests fix(tvix/glue): reject unknown attrset args for fetch builtins 2024-06-26 16:06:52 +00:00
0hm2f1psjpcwg8fijsmr4wwxrx59s092-bar.drv feat(tvix/build/protos): add some missing fields 2023-12-26 10:20:41 +00:00
blob.tar.bz2 feat(tvix/glue): Add AsyncRead wrapper to decompress streams 2024-03-11 11:35:18 +00:00
blob.tar.gz feat(tvix/glue): Add AsyncRead wrapper to decompress streams 2024-03-11 11:35:18 +00:00
blob.tar.xz feat(tvix/glue): Add AsyncRead wrapper to decompress streams 2024-03-11 11:35:18 +00:00
ch49594n9avinrf8ip0aslidkc4lxkqv-foo.drv feat(tvix/build): add derivation_to_build_request 2023-12-11 22:35:39 +00:00
empty-file feat(tvix/glue): Implement builtins.storePath 2024-06-05 17:50:15 +00:00
mod.rs feat(tvix/glue): add eval-fail-* support to glue tests 2024-06-26 11:17:30 +00:00
ss2p4wmxijn652haqyd7dckxwl4c7hxx-bar.drv test(tvix/glue/known_paths): add tests 2024-02-17 07:54:05 +00:00