Skip to content

Commit 9ff14ce

Browse files
authored
Clarify how Digest.hash is encoded generally (#285)
It seems bad form to special-case SHA-256 while not saying anything about other digest functions.
1 parent d20ae8b commit 9ff14ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build/bazel/remote/execution/v2/remote_execution.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -981,8 +981,8 @@ message SymlinkNode {
981981
// serializing, but care should be taken to avoid shortcuts. For instance,
982982
// concatenating two messages to merge them may produce duplicate fields.
983983
message Digest {
984-
// The hash. In the case of SHA-256, it will always be a lowercase hex string
985-
// exactly 64 characters long.
984+
// The hash, represented as a lowercase hexadecimal string, padded with
985+
// leading zeroes up to the hash function length.
986986
string hash = 1;
987987

988988
// The size of the blob, in bytes.

0 commit comments

Comments
 (0)