Skip to content

Commit 41a2a2a

Browse files
committed
fix: attempt to fix a breaking api change
1 parent fdf7850 commit 41a2a2a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

shared/oci.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func BlobResource(resource Resource) ComponentModification {
7373
Relation: ocmmetav1.LocalRelation,
7474
},
7575
blobaccess.ForString(mime.MIME_TEXT, resource.Data),
76-
"", nil,
76+
"", nil, ocm.ModifyElement(true),
7777
)
7878
}
7979
}
@@ -88,7 +88,7 @@ func ImageRefResource(ref string, resource Resource) ComponentModification {
8888
},
8989
Type: resource.Type,
9090
Relation: ocmmetav1.ExternalRelation,
91-
}, ociartifact.New(ref))
91+
}, ociartifact.New(ref), ocm.ModifyElement(true))
9292
}
9393
}
9494

@@ -101,7 +101,7 @@ func ComponentVersionRef(ref ComponentRef) ComponentModification {
101101
Version: ref.Version,
102102
},
103103
ComponentName: ref.ComponentName,
104-
})
104+
}, ocm.ModifyElement(true))
105105
}
106106
}
107107

0 commit comments

Comments
 (0)