From d1415a6d95c1d69e4b38277e5127fadd1fb88da4 Mon Sep 17 00:00:00 2001 From: Dom Rodriguez Date: Wed, 5 Aug 2026 16:51:39 +0100 Subject: [PATCH] source.py: Add `SHA512` variant to SourceVersionType enum This commit adds `SHA512` as a variant to the SourceVersionType Enum, which allows for more checksum options in the Source Provenance API. --- src/buildstream/source.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/buildstream/source.py b/src/buildstream/source.py index 704d54c55..2e0d9ff88 100644 --- a/src/buildstream/source.py +++ b/src/buildstream/source.py @@ -497,6 +497,11 @@ class SourceVersionType(FastEnum): An sha256 checksum of the content of a file """ + SHA512 = "sha512" + """ + An sha512 checksum of the content of a file + """ + CAS_DIGEST = "cas-digest" """ A CAS digest expressed as ``{hash}/{size}``.