@@ -71,7 +71,7 @@ func latestContractRelease(ctx context.Context, repo Repository, contract string
71
71
72
72
// If the Major or Minor version of the latest release doesn't match the release series for the current contract,
73
73
// return the latest patch release of the desired Major/Minor version.
74
- if sv .Major () != releaseSeries .Major || sv .Minor () != releaseSeries .Minor {
74
+ if sv .Major () != uint ( releaseSeries .Major ) || sv .Minor () != uint ( releaseSeries .Minor ) {
75
75
return latestPatchRelease (ctx , repo , & releaseSeries .Major , & releaseSeries .Minor )
76
76
}
77
77
return latest , nil
@@ -84,7 +84,7 @@ func latestRelease(ctx context.Context, repo Repository) (string, error) {
84
84
}
85
85
86
86
// latestPatchRelease returns the latest patch release for a given Major and Minor version.
87
- func latestPatchRelease (ctx context.Context , repo Repository , major , minor * uint ) (string , error ) {
87
+ func latestPatchRelease (ctx context.Context , repo Repository , major , minor * int32 ) (string , error ) {
88
88
versions , err := repo .GetVersions (ctx )
89
89
if err != nil {
90
90
return "" , errors .Wrapf (err , "failed to get repository versions" )
@@ -101,7 +101,7 @@ func latestPatchRelease(ctx context.Context, repo Repository, major, minor *uint
101
101
continue
102
102
}
103
103
104
- if (major != nil && sv .Major () != * major ) || (minor != nil && sv .Minor () != * minor ) {
104
+ if (major != nil && sv .Major () != uint ( * major )) || (minor != nil && sv .Minor () != uint ( * minor ) ) {
105
105
// skip versions that don't match the desired Major.Minor version.
106
106
continue
107
107
}
0 commit comments