about summary refs log tree commit diff
path: root/tvix/store/src/fs
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-09-23T09·38+0300
committerflokli <flokli@flokli.de>2023-09-23T12·54+0000
commite5f22818566b4cc49ce9b089c59921f5a054c48c (patch)
tree1d88d762cb693a8251596a242557c1f8cf020c25 /tvix/store/src/fs
parentdfb3d30d4545015e0cb2c4e7e1e7d43050945262 (diff)
feat(tvix/cli/derivation): reject derivations with empty names r/6641
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
Diffstat (limited to 'tvix/store/src/fs')
0 files changed, 0 insertions, 0 deletions