Skip to content

Commit

Permalink
Merge pull request #63 from paynejacob/fix/ver-check
Browse files Browse the repository at this point in the history
  • Loading branch information
paynejacob authored Apr 25, 2022
2 parents ce293da + 1fe967f commit ae7bdc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/package/load.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func loadRemotePackage(ref string) (pkg Package, err error) {
return
}

if ver, err := semver.Parse(manifest.Annotations[CorralVersionAnnotation]); err != nil {
if ver, err := semver.Parse(manifest.Annotations[CorralVersionAnnotation]); err == nil {
if semver.MustParse(version.Version).Major > ver.Major {
return pkg, errors.New("packages must be published by the same major version of corral or later")
}
Expand Down

0 comments on commit ae7bdc0

Please sign in to comment.