@@ -15,7 +15,6 @@ import (
1515 "github.com/docker/buildx/builder"
1616 "github.com/docker/buildx/localstate"
1717 "github.com/docker/buildx/util/buildflags"
18- "github.com/docker/buildx/util/cobrautil"
1918 "github.com/docker/buildx/util/cobrautil/completion"
2019 "github.com/docker/buildx/util/confutil"
2120 "github.com/docker/buildx/util/desktop"
@@ -262,7 +261,7 @@ func bakeCmd(dockerCli command.Cli, rootOpts *rootOptions) *cobra.Command {
262261 Use : "bake [OPTIONS] [TARGET...]" ,
263262 Aliases : []string {"f" },
264263 Short : "Build from a file" ,
265- RunE : cobrautil . ConfigureContext ( func (cmd * cobra.Command , args []string ) error {
264+ RunE : func (cmd * cobra.Command , args []string ) error {
266265 // reset to nil to avoid override is unset
267266 if ! cmd .Flags ().Lookup ("no-cache" ).Changed {
268267 cFlags .noCache = nil
@@ -274,7 +273,7 @@ func bakeCmd(dockerCli command.Cli, rootOpts *rootOptions) *cobra.Command {
274273 options .metadataFile = cFlags .metadataFile
275274 // Other common flags (noCache, pull and progress) are processed in runBake function.
276275 return runBake (cmd .Context (), dockerCli , args , options , cFlags )
277- }) ,
276+ },
278277 ValidArgsFunction : completion .BakeTargets (options .files ),
279278 }
280279
0 commit comments