File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -73,12 +73,12 @@ func ReadImageManifest(fpath string) (*ImageManifest, error) {
73
73
74
74
// Propagate the image values to the variants and determine the base directory
75
75
// and the latest version.
76
- for _ , variant := range manifest .Variants {
76
+ for i , variant := range manifest .Variants {
77
77
if len (variant .Versions ) == 0 {
78
- variant .Versions = manifest .Versions
79
- variant .Latest = manifest .Latest
78
+ manifest . Variants [ i ] .Versions = manifest .Versions
79
+ manifest . Variants [ i ] .Latest = manifest .Latest
80
80
} else {
81
- variant .Latest = Versions (variant .Versions ).Latest ().String ()
81
+ manifest . Variants [ i ] .Latest = Versions (variant .Versions ).Latest ().String ()
82
82
}
83
83
}
84
84
return & manifest , nil
@@ -148,7 +148,7 @@ func (m *ImageManifest) Write(w io.Writer, header *Header) error {
148
148
}
149
149
header .Add ("Tags" , strings .Join (parts , "." )+ "-" + variant .Name )
150
150
}
151
- if m .Latest == v .String () {
151
+ if variant .Latest == v .String () {
152
152
header .Add ("Tags" , variant .Name )
153
153
}
154
154
for _ , arch := range variant .Architectures {
You can’t perform that action at this time.
0 commit comments