feat(tvix/store/protos): add StorePath message
This encodes a store path a bit more concise, which is used in the Deriver field. Change-Id: Ibfb54d3b206917e51970d1d5fe94fcedb901704b Reviewed-on: https://cl.tvl.fyi/c/depot/+/9646 Reviewed-by: Connor Brewster <cbrewster@hey.com> Tested-by: BuildkiteCI
This commit is contained in:
parent
173641ed37
commit
5f8eb4eeaa
3 changed files with 137 additions and 48 deletions
|
|
@ -23,6 +23,17 @@ message PathInfo {
|
|||
NARInfo narinfo = 3;
|
||||
}
|
||||
|
||||
// Represents a path in the Nix store (a direct child of STORE_DIR).
|
||||
// It is commonly formatted by a nixbase32-encoding the digest, and
|
||||
// concatenating the name, separated by a `-`.
|
||||
message StorePath {
|
||||
// The string after digest and `-`.
|
||||
string name = 1;
|
||||
|
||||
// The digest (20 bytes).
|
||||
bytes digest = 2;
|
||||
}
|
||||
|
||||
// Nix C++ uses NAR (Nix Archive) as a format to transfer store paths,
|
||||
// and stores metadata and signatures in NARInfo files.
|
||||
// Store all these attributes in a separate message.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue