snix/tvix/cli/src
Florian Klink e5f2281856 feat(tvix/cli/derivation): reject derivations with empty names
As shown in the previous CLs, we can very well have store paths starting
with periods, but we can't have derivations with an empty name:

```
nix-build -E 'derivation { name = ""; builder = "/bin/sh"; system = "x86_64-linux"; }'
error: store path 'nr7i5pf18hw2zg487vkdyrbasdqylfcj-' has an empty name
```

I'm currently using ErrorKind::Abort here, because we don't have a
Derivation- related error in tvix-eval (and probably don't want to).

Change-Id: I0e9743cee98dbfa69e9caa2a58352176270f15bd
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9448
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: raitobezarius <tvl@lahfa.xyz>
Tested-by: BuildkiteCI
2023-09-23 12:54:26 +00:00
..
.skip-subtree feat(tvix/cli): implement builtins.derivation 2023-01-27 12:21:41 +00:00
derivation.nix feat(tvix/cli): implement builtins.derivation 2023-01-27 12:21:41 +00:00
derivation.rs feat(tvix/cli/derivation): reject derivations with empty names 2023-09-23 12:54:26 +00:00
errors.rs fix(tvix/eval): emit only warnings on shadowed outputs 2023-06-11 20:59:34 +00:00
fetchurl.nix feat(tvix/cli): bundle corepkgs/fetchurl.nix with tvix-cli 2023-03-13 20:30:59 +00:00
known_paths.rs refactor(tvix/nix-compat): replace calculate_drv_replacement_str 2023-03-14 18:26:19 +00:00
main.rs refactor(tvix): move castore into tvix-castore crate 2023-09-22 12:51:21 +00:00
refscan.rs refactor(tvix/cli): cargo clippy 2023-08-20 21:43:02 +00:00
tvix_io.rs refactor(tvix/{cli,store}): move TvixStoreIO to tvix-cli crate 2023-09-04 16:02:12 +00:00
tvix_store_io.rs refactor(tvix): move castore into tvix-castore crate 2023-09-22 12:51:21 +00:00