-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
utility function to get latest Version w/signoff #599
Conversation
Signed-off-by: Jougan-0 <[email protected]>
} | ||
|
||
// Function to get all version directories sorted in descending order | ||
func GetAllVersionDirsSortedDesc(modelVersionsDirPath string) ([]string, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we consider to add unit test on this method ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1. // @Jougan-0
return nil, fmt.Errorf("no valid version directories found in '%s'", modelVersionsDirPath) | ||
} | ||
|
||
sort.Slice(versions, func(i, j int) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extract the logic and "Less" function implementation as under sorted semver version / similar.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay
We're in need of fixing the lint check errors. |
Description
This PR fixes #
Notes for Reviewers
Signed commits