diff options
author | Florian Klink <flokli@flokli.de> | 2022-12-23T17·53+0100 |
---|---|---|
committer | flokli <flokli@flokli.de> | 2022-12-28T13·55+0000 |
commit | 27bfc8cfcdfae849d90bfee67c323f93ffc816dd (patch) | |
tree | b50f6c1d40062e67848bf51fa180f4c48f5e9459 /tvix/store/protos/pathinfo.proto | |
parent | 5c748780b58b29612f121ecaca34f591bc7a53c0 (diff) |
chore(tvix/store/protos): move (Root)Node into separate message r/5523
This is gonna get used in another place in a second. Co-Authored-By: edef <edef@unfathomable.blue> Change-Id: I347c11c8d24379628b7ed09d2c90670c576e686a Reviewed-on: https://cl.tvl.fyi/c/depot/+/7617 Tested-by: BuildkiteCI Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'tvix/store/protos/pathinfo.proto')
-rw-r--r-- | tvix/store/protos/pathinfo.proto | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/tvix/store/protos/pathinfo.proto b/tvix/store/protos/pathinfo.proto index 279bb14848fd..7a9702600605 100644 --- a/tvix/store/protos/pathinfo.proto +++ b/tvix/store/protos/pathinfo.proto @@ -12,19 +12,23 @@ option go_package = "code.tvl.fyi/tvix/store/protos;storev1"; // That's a single element inside /nix/store. message PathInfo { // The path can be a directory, file or symlink. - oneof node { - DirectoryNode directory = 1; - FileNode file = 2; - SymlinkNode symlink = 3; - } + Node node = 1; // List of references (output path hashes) // This really is the raw *bytes*, after decoding nixbase32, and not a // base32-encoded string. - repeated bytes references = 4; + repeated bytes references = 2; // see below. - NARInfo narinfo = 5; + NARInfo narinfo = 3; +} + +message Node { + oneof node { + DirectoryNode directory = 1; + FileNode file = 2; + SymlinkNode symlink = 3; + } } // Nix C++ uses NAR (Nix Archive) as a format to transfer store paths, |