Skip to content

Commit

Permalink
Allow bundles with version v0.3.x (all v0.3 point releases) (#147)
Browse files Browse the repository at this point in the history
Signed-off-by: Cody Soyland <[email protected]>
  • Loading branch information
codysoyland authored Apr 10, 2024
1 parent 20c2ce9 commit 998ff47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/bundle/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ func (b *ProtobufBundle) validate() error {
}
}

// if bundle version is newer than v0.3, return error as this version is not supported
if semver.Compare(bundleVersion, "v0.3") > 0 {
// if bundle version is >= v0.4, return error as this version is not supported
if semver.Compare(bundleVersion, "v0.4") >= 0 {
return fmt.Errorf("%w: bundle version %s is not yet supported", ErrUnsupportedMediaType, bundleVersion)
}

Expand Down

0 comments on commit 998ff47

Please sign in to comment.