From 0faac5cca65ccd3551833a5aacbaf4c1bacd7f60 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Tue, 26 Sep 2023 21:01:34 +0200 Subject: [PATCH] build: fix auth provider with latest buildkit changes Signed-off-by: CrazyMax --- bake/bake.go | 2 +- controller/build/build.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bake/bake.go b/bake/bake.go index e3622e2c292..cd4953bacbe 100644 --- a/bake/bake.go +++ b/bake/bake.go @@ -1121,7 +1121,7 @@ func toBuildOpt(t *Target, inp *Input) (*build.Options, error) { bo.Platforms = platforms dockerConfig := config.LoadDefaultConfigFile(os.Stderr) - bo.Session = append(bo.Session, authprovider.NewDockerAuthProvider(dockerConfig)) + bo.Session = append(bo.Session, authprovider.NewDockerAuthProvider(dockerConfig, nil)) secrets, err := buildflags.ParseSecretSpecs(t.Secrets) if err != nil { diff --git a/controller/build/build.go b/controller/build/build.go index bdf6d8d1ed4..19a836f7ad0 100644 --- a/controller/build/build.go +++ b/controller/build/build.go @@ -74,7 +74,7 @@ func RunBuild(ctx context.Context, dockerCli command.Cli, in controllerapi.Build opts.Platforms = platforms dockerConfig := config.LoadDefaultConfigFile(os.Stderr) - opts.Session = append(opts.Session, authprovider.NewDockerAuthProvider(dockerConfig)) + opts.Session = append(opts.Session, authprovider.NewDockerAuthProvider(dockerConfig, nil)) secrets, err := controllerapi.CreateSecrets(in.Secrets) if err != nil {