Skip to content

Commit 2cebbe8

Browse files
committed
declcfg: validation should allow non-existent replaces value
Signed-off-by: Joe Lanford <[email protected]>
1 parent 4335a01 commit 2cebbe8

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

internal/model/model.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,13 +232,6 @@ func (b *Bundle) Validate() error {
232232
if b.Channel != nil && b.Package != nil && b.Package != b.Channel.Package {
233233
result.subErrors = append(result.subErrors, errors.New("package does not match channel's package"))
234234
}
235-
if b.Replaces != "" {
236-
if b.Channel != nil && b.Channel.Bundles != nil {
237-
if _, ok := b.Channel.Bundles[b.Replaces]; !ok {
238-
result.subErrors = append(result.subErrors, fmt.Errorf("replaces %q not found in channel", b.Replaces))
239-
}
240-
}
241-
}
242235
props, err := property.Parse(b.Properties)
243236
if err != nil {
244237
result.subErrors = append(result.subErrors, err)

0 commit comments

Comments
 (0)