Commit ec48f1af authored by Cristian Maglie's avatar Cristian Maglie

Find returns the latest release if no version is specified

parent 236387b2
......@@ -77,6 +77,9 @@ func (idx *Index) FindRelease(ref *Reference) *Release {
if library, exists := idx.Libraries[ref.Name]; !exists {
return nil
} else {
if ref.Version == "" {
return library.Latest
}
return library.Releases[ref.Version]
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment