Skip to content

Commit

Permalink
Fix bad layout options merge (#953)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonjohnsonjr committed Mar 2, 2021
1 parent 14945a4 commit 93228a7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions pkg/v1/layout/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,10 +161,9 @@ func (l Path) replaceDescriptor(append mutate.Appendable, matcher match.Matcher,
return err
}

for _, opt := range options {
if err := opt(desc); err != nil {
return err
}
o := makeOptions(options...)
for _, opt := range o.descOpts {
opt(desc)
}

add := mutate.IndexAddendum{
Expand Down

0 comments on commit 93228a7

Please sign in to comment.