diff --git a/bake/remote.go b/bake/remote.go index 92d2bb57..3dd1e0d1 100644 --- a/bake/remote.go +++ b/bake/remote.go @@ -59,7 +59,7 @@ func ReadRemoteFiles(ctx context.Context, nodes []builder.Node, url string, name ch, done := progress.NewChannel(pw) defer func() { <-done }() - _, err = c.Build(ctx, client.SolveOpt{Session: session}, "buildx", func(ctx context.Context, c gwclient.Client) (*gwclient.Result, error) { + _, err = c.Build(ctx, client.SolveOpt{Session: session, Internal: true}, "buildx", func(ctx context.Context, c gwclient.Client) (*gwclient.Result, error) { def, err := st.Marshal(ctx) if err != nil { return nil, err diff --git a/build/url.go b/build/url.go index e1c72c68..1555520a 100644 --- a/build/url.go +++ b/build/url.go @@ -21,7 +21,7 @@ func createTempDockerfileFromURL(ctx context.Context, d *driver.DriverHandle, ur var out string ch, done := progress.NewChannel(pw) defer func() { <-done }() - _, err = c.Build(ctx, client.SolveOpt{}, "buildx", func(ctx context.Context, c gwclient.Client) (*gwclient.Result, error) { + _, err = c.Build(ctx, client.SolveOpt{Internal: true}, "buildx", func(ctx context.Context, c gwclient.Client) (*gwclient.Result, error) { def, err := llb.HTTP(url, llb.Filename("Dockerfile"), llb.WithCustomNamef("[internal] load %s", url)).Marshal(ctx) if err != nil { return nil, err