File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -106,20 +106,20 @@ command. As part of this process, we do the following:
106
106
}
107
107
108
108
var sopts []image.StoreOpt
109
+ p , err := platforms .ParseAll (context .StringSlice ("platform" ))
110
+ if err != nil {
111
+ return err
112
+ }
113
+
114
+ // Set unpack configuration
115
+ for _ , platform := range p {
116
+ sopts = append (sopts , image .WithUnpack (platform , context .String ("snapshotter" )))
117
+ }
109
118
if ! context .Bool ("all-platforms" ) {
110
- p , err := platforms .ParseAll (context .StringSlice ("platform" ))
111
- if err != nil {
112
- return err
113
- }
114
119
if len (p ) == 0 {
115
120
p = append (p , platforms .DefaultSpec ())
116
121
}
117
122
sopts = append (sopts , image .WithPlatforms (p ... ))
118
-
119
- // Set unpack configuration
120
- for _ , platform := range p {
121
- sopts = append (sopts , image .WithUnpack (platform , context .String ("snapshotter" )))
122
- }
123
123
}
124
124
// TODO: Support unpack for all platforms..?
125
125
// Pass in a *?
You can’t perform that action at this time.
0 commit comments