From 3f4ed763ddb716bfe810c88d4a31a7538bd0bfb0 Mon Sep 17 00:00:00 2001 From: Evan Wallace Date: Sun, 6 Aug 2023 15:21:37 -0400 Subject: [PATCH] avoid using an api that's not available in go 1.13 --- pkg/api/api_impl.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/api/api_impl.go b/pkg/api/api_impl.go index a45d3fcca6f..843b0cac674 100644 --- a/pkg/api/api_impl.go +++ b/pkg/api/api_impl.go @@ -1530,7 +1530,8 @@ func rebuildImpl(args rebuildArgs, oldHashes map[string]string) (rebuildState, m } hasher := xxhash.New() hasher.Write(item.Contents) - hash := base64.RawStdEncoding.EncodeToString(binary.LittleEndian.AppendUint64(hashBytes[:0], hasher.Sum64())) + binary.LittleEndian.PutUint64(hashBytes[:], hasher.Sum64()) + hash := base64.RawStdEncoding.EncodeToString(hashBytes[:]) result.OutputFiles[i] = OutputFile{ Path: item.AbsPath, Contents: item.Contents,