local: improve log message

Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
This commit is contained in:
Andrea Luzzardi 2021-02-24 17:29:51 -08:00
parent 4a4c0da0aa
commit a8df284e9b

View File

@ -267,7 +267,7 @@ func (p *Pipeline) Local(ctx context.Context, op *compiler.Value) error {
llb.Local( llb.Local(
dir, dir,
llb.FollowPaths(include), llb.FollowPaths(include),
llb.WithCustomName(p.vertexNamef("Local %s", dir)), llb.WithCustomName(p.vertexNamef("Local %s [transfer]", dir)),
// Without hint, multiple `llb.Local` operations on the // Without hint, multiple `llb.Local` operations on the
// same path get a different digest. // same path get a different digest.
@ -277,6 +277,7 @@ func (p *Pipeline) Local(ctx context.Context, op *compiler.Value) error {
"/", "/",
"/", "/",
), ),
llb.WithCustomName(p.vertexNamef("Local %s [copy]", dir)),
) )
}) })