Skip to content

Commit

Permalink
Merge pull request #241 from hinshun/fix-run-customname
Browse files Browse the repository at this point in the history
Show newline symbols in llb.Run custom name
  • Loading branch information
hinshun authored May 13, 2021
2 parents a9be169 + 0e71f23 commit 53c7d05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codegen/builtin_fs.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 53c7d05

Please sign in to comment.