From 0e71f23eede39ec59b74aadefaf5d2e0c7c7aac9 Mon Sep 17 00:00:00 2001 From: Edgar Lee Date: Fri, 7 May 2021 16:55:29 -0700 Subject: [PATCH] Show newline symbols in llb.Run custom name --- codegen/builtin_fs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codegen/builtin_fs.go b/codegen/builtin_fs.go index eb5fea22..ba4aa440 100644 --- a/codegen/builtin_fs.go +++ b/codegen/builtin_fs.go @@ -365,7 +365,7 @@ func (r Run) Call(ctx context.Context, cln *client.Client, ret Register, opts Op return err } - customName := strings.ReplaceAll(shellquote.Join(runArgs...), "\n", "") + customName := strings.ReplaceAll(shellquote.Join(runArgs...), "\n", "\\n") runOpts = append(runOpts, llb.Args(runArgs), llb.WithCustomName(customName)) err = llbutil.ShimReadonlyMountpoints(runOpts)