Merge pull request #138 from dagger/local-improve-log

local: improve log message
This commit is contained in:
Andrea Luzzardi 2021-02-24 18:17:24 -08:00 committed by GitHub
commit e7ec4fc132
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -267,7 +267,7 @@ func (p *Pipeline) Local(ctx context.Context, op *compiler.Value) error {
llb.Local(
dir,
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
// 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)),
)
})