From 4dea6b3b99ca7d12c99b29b410b91d9917f7e9b0 Mon Sep 17 00:00:00 2001 From: Ilya Lesikov Date: Thu, 27 Oct 2022 10:48:42 +0300 Subject: [PATCH] fix(staged-dockerfile): broken error message Signed-off-by: Ilya Lesikov --- pkg/build/stage/instruction/add.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/build/stage/instruction/add.go b/pkg/build/stage/instruction/add.go index 82ce8c266e..3226bb4d11 100644 --- a/pkg/build/stage/instruction/add.go +++ b/pkg/build/stage/instruction/add.go @@ -77,7 +77,7 @@ func calculateBuildContextGlobsChecksum(ctx context.Context, fileGlobs []string, var matches []string for _, globStat := range globStats { if globStat.Error != "" { - return "", fmt.Errorf("unable to stat glob %q: %w", globStat.Glob, globStat.Error) + return "", fmt.Errorf("unable to stat glob %q: %s", globStat.Glob, globStat.Error) } for _, match := range globStat.Globbed {