added debug message

Signed-off-by: Richard Jones <richard@dagger.io>
This commit is contained in:
Richard Jones 2021-12-16 14:39:34 -07:00
parent f50311de35
commit eebbfcb258
No known key found for this signature in database
GPG Key ID: CFB3A382EB166F4C

View File

@ -4,6 +4,7 @@ import (
"context"
"github.com/moby/buildkit/client/llb"
"github.com/rs/zerolog/log"
"go.dagger.io/dagger/compiler"
"go.dagger.io/dagger/plancontext"
"go.dagger.io/dagger/solver"
@ -27,6 +28,8 @@ func (c localDirectoryTask) Run(ctx context.Context, pctx *plancontext.Context,
return nil, err
}
lg := log.Ctx(ctx)
lg.Debug().Str("path", dir.Path).Msg("loading local directory")
opts := []llb.LocalOption{
withCustomName(v, "Local %s", dir.Path),
// Without hint, multiple `llb.Local` operations on the