File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -12,13 +12,13 @@ import (
12
12
"golang.org/x/exp/slices"
13
13
)
14
14
15
- func isSavedBuild (options []* cliv1.BuildOptions ) bool {
15
+ func isSavedBuild (options []* cliv1.BuildOptions , savedForLoad bool ) bool {
16
16
for _ , opt := range options {
17
17
if opt .Save {
18
18
return true
19
19
}
20
20
}
21
- return false
21
+ return savedForLoad
22
22
}
23
23
24
24
func isBake (options []* cliv1.BuildOptions ) bool {
Original file line number Diff line number Diff line change @@ -103,7 +103,8 @@ func NewCmdPull() *cobra.Command {
103
103
}
104
104
105
105
buildOptions := res .Msg .Options
106
- if len (buildOptions ) > 0 && ! isSavedBuild (buildOptions ) {
106
+ savedForLoad := res .Msg .SaveForLoad
107
+ if len (buildOptions ) > 0 && ! isSavedBuild (buildOptions , savedForLoad ) {
107
108
return fmt .Errorf ("build %s is not a saved build. To use the registry use --save when building" , buildID )
108
109
}
109
110
You can’t perform that action at this time.
0 commit comments