From 39ad6e8aa827261308e0b98a59aa97bde8713f53 Mon Sep 17 00:00:00 2001 From: decentral1se Date: Fri, 10 Sep 2021 09:56:58 +0200 Subject: [PATCH] fix: use recipeName instead of recipe.Name This provides a correctly formatted recipe name for machine reading (i.e. with `-` and such) instead of the more human readable version (i.e. with spaces). Closes https://git.coopcloud.tech/coop-cloud/organising/issues/162. --- cli/app/new.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/app/new.go b/cli/app/new.go index 9838fde2..737fc1f8 100644 --- a/cli/app/new.go +++ b/cli/app/new.go @@ -104,7 +104,7 @@ func getRecipeMeta(recipeName string) (catalogue.RecipeMeta, error) { err := fmt.Errorf("recipe '%s' does not exist?", recipeName) return catalogue.RecipeMeta{}, err } - if err := recipePkg.EnsureExists(recipeMeta.Name); err != nil { + if err := recipePkg.EnsureExists(recipeName); err != nil { return catalogue.RecipeMeta{}, err }