diff --git a/pkg/recipe/recipe.go b/pkg/recipe/recipe.go index 6bc75f4a..c4ac38d4 100644 --- a/pkg/recipe/recipe.go +++ b/pkg/recipe/recipe.go @@ -239,10 +239,12 @@ func Get(recipeName string, offline bool) (Recipe, error) { } func Get2(name string) Recipe2 { + dir := path.Join(config.RECIPES_DIR, name) return Recipe2{ - Name: name, - Dir: path.Join(config.RECIPES_DIR, name), - SSHURL: fmt.Sprintf(config.SSH_URL_TEMPLATE, name), + Name: name, + Dir: dir, + SSHURL: fmt.Sprintf(config.SSH_URL_TEMPLATE, name), + SampleEnvPath: path.Join(dir, ".env.sample"), } } @@ -250,6 +252,8 @@ type Recipe2 struct { Name string Dir string SSHURL string + + SampleEnvPath string } // GetRecipesLocal retrieves all local recipe directories