tvl-depot/tvix/cli
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
..
src feat(tvix/cli/derivation): reject derivations with empty names 2023-09-23 12:54:26 +00:00
Cargo.toml refactor(tvix): move castore into tvix-castore crate 2023-09-22 12:51:21 +00:00
default.nix fix(tvix/eval): only finalise formal arguments if defaulting 2023-06-20 10:07:44 +00:00