Skip to content

Commit

Permalink
fix(oci-tool/output): porperly populate the map entries when reading …
Browse files Browse the repository at this point in the history
…from file

Co-authored-by: Lorenzo Susini <[email protected]>
Signed-off-by: Aldo Lacuku <[email protected]>
  • Loading branch information
2 people authored and poiana committed Oct 13, 2022
1 parent f1279a0 commit 8f1a599
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build/oci/pkg/output/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ func (e *Entries) EntryByName(name string) *Entry {
func (e *Entries) Upsert(entry *Entry) {
for k, en := range e.Entries {
if en.Name == entry.Name {
e.Entries[k] = en
e.Entries[k] = entry
e.entryByName[entry.Name] = entry
return
}
}
Expand Down

0 comments on commit 8f1a599

Please sign in to comment.