forked from toolshed/abra
fix: find local only apps
This commit is contained in:
@ -220,6 +220,8 @@ func readRecipeCatalogueWeb(target interface{}) error {
|
||||
|
||||
// VersionsOfService lists the version of a service.
|
||||
func VersionsOfService(recipe, serviceName string) ([]string, error) {
|
||||
var versions []string
|
||||
|
||||
catalogue, err := ReadRecipeCatalogue()
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@ -227,10 +229,9 @@ func VersionsOfService(recipe, serviceName string) ([]string, error) {
|
||||
|
||||
rec, ok := catalogue[recipe]
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("recipe '%s' does not exist?", recipe)
|
||||
return versions, nil
|
||||
}
|
||||
|
||||
versions := []string{}
|
||||
alreadySeen := make(map[string]bool)
|
||||
for _, serviceVersion := range rec.Versions {
|
||||
for tag := range serviceVersion {
|
||||
|
Reference in New Issue
Block a user