0
0
forked from toolshed/abra

fix: find local only apps

This commit is contained in:
2021-12-20 00:50:09 +01:00
parent cb2bb3f532
commit 8d499c0810
6 changed files with 44 additions and 12 deletions

View File

@ -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 {