From 1e3518a3265e00e9d5e97eb68d86cdf7ab6a4654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Wed, 14 Feb 2024 23:18:44 +0100 Subject: [PATCH] Fix compilation on non-Linux MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miloslav Trmač --- pkg/fsverity/fsverity_unsupported.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/fsverity/fsverity_unsupported.go b/pkg/fsverity/fsverity_unsupported.go index 7909c54fa..46e68c578 100644 --- a/pkg/fsverity/fsverity_unsupported.go +++ b/pkg/fsverity/fsverity_unsupported.go @@ -17,5 +17,5 @@ func EnableVerity(description string, fd int) error { // MeasureVerity measures and returns the verity digest for the file represented by 'fd'. // The 'description' parameter is a human-readable description of the file. func MeasureVerity(description string, fd int) (string, error) { - return fmt.Errorf("fs-verity is not supported on this platform") + return "", fmt.Errorf("fs-verity is not supported on this platform") }