From 5d566fcf15cf787a4366e24d78611aaf2118f321 Mon Sep 17 00:00:00 2001 From: Elara Musayelyan Date: Thu, 3 Aug 2023 12:57:05 -0700 Subject: [PATCH] Fix panic when an element is missing in the checksums array --- build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.go b/build.go index 113684c..cbee872 100644 --- a/build.go +++ b/build.go @@ -597,7 +597,7 @@ func genBuildEnv(info *distro.OSRelease, scriptdir string) []string { func getSources(ctx context.Context, srcdir string, bv *BuildVars) error { if len(bv.Sources) != len(bv.Checksums) { - log.Fatal("The checksums array must be the same length as sources") + log.Fatal("The checksums array must be the same length as sources").Send() } for i, src := range bv.Sources {