Skip to content

Commit a6332a4

Browse files
committed
Removed duplicate import
1 parent 64d2c57 commit a6332a4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

build.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import (
2727
controlapi "github.com/moby/buildkit/api/services/control"
2828
bkclient "github.com/moby/buildkit/client"
2929
"github.com/moby/buildkit/cmd/buildctl/build"
30-
bkbuild "github.com/moby/buildkit/cmd/buildctl/build"
3130
"github.com/moby/buildkit/identity"
3231
"github.com/moby/buildkit/session"
3332
"github.com/moby/buildkit/session/filesync"
@@ -268,7 +267,7 @@ func (cmd *buildCommand) Run(args []string) (err error) {
268267

269268
var cacheExports []*controlapi.CacheOptionsEntry
270269
if cmdExportCaches := cmd.exportCache.GetAll(); len(cmdExportCaches) > 0 {
271-
parsedCacheExports, err := bkbuild.ParseExportCache(cmdExportCaches, []string{})
270+
parsedCacheExports, err := build.ParseExportCache(cmdExportCaches, []string{})
272271
if err != nil {
273272
return fmt.Errorf("error parsing export cache: %v", err)
274273
}
@@ -287,7 +286,7 @@ func (cmd *buildCommand) Run(args []string) (err error) {
287286

288287
var cacheImports []*controlapi.CacheOptionsEntry
289288
if cmdImportCaches := cmd.importCache.GetAll(); len(cmdImportCaches) > 0 {
290-
parsedCacheImport, err := bkbuild.ParseImportCache(cmdImportCaches)
289+
parsedCacheImport, err := build.ParseImportCache(cmdImportCaches)
291290
if err != nil {
292291
return fmt.Errorf("error parsing import cache: %v", err)
293292
}

0 commit comments

Comments
 (0)