Skip to content

Commit 93228a7

Browse files
authored
Fix bad layout options merge (google#953)
1 parent 14945a4 commit 93228a7

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

pkg/v1/layout/write.go

+3-4
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,9 @@ func (l Path) replaceDescriptor(append mutate.Appendable, matcher match.Matcher,
161161
return err
162162
}
163163

164-
for _, opt := range options {
165-
if err := opt(desc); err != nil {
166-
return err
167-
}
164+
o := makeOptions(options...)
165+
for _, opt := range o.descOpts {
166+
opt(desc)
168167
}
169168

170169
add := mutate.IndexAddendum{

0 commit comments

Comments
 (0)