From 828749d4ebfecee9ccd77533f4fb4a81b4ed0e8d Mon Sep 17 00:00:00 2001 From: Frank Villaro-Dixon Date: Wed, 1 Nov 2023 18:37:00 +0100 Subject: [PATCH] frontend/dockerfile/dockerfile2llb: errmsg: quote build target The build target is not quoted and it makes it difficult for some persons to see what the problem is. By quoting it we emphasize that the target name is variable. Signed-off-by: Frank Villaro-Dixon --- frontend/dockerfile/dockerfile2llb/convert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/dockerfile/dockerfile2llb/convert.go b/frontend/dockerfile/dockerfile2llb/convert.go index ce225a391495..7cd57a343f63 100644 --- a/frontend/dockerfile/dockerfile2llb/convert.go +++ b/frontend/dockerfile/dockerfile2llb/convert.go @@ -317,7 +317,7 @@ func toDispatchState(ctx context.Context, dt []byte, opt ConvertOpt) (*dispatchS var ok bool target, ok = allDispatchStates.findStateByName(opt.Target) if !ok { - return nil, errors.Errorf("target stage %s could not be found", opt.Target) + return nil, errors.Errorf("target stage %q could not be found", opt.Target) } }