From 84bde05f497b0475d6fa8afa52608701f089e3d9 Mon Sep 17 00:00:00 2001 From: Ahmed Hesham Abdelkader <23265119+ahmedhesham6@users.noreply.github.com> Date: Thu, 9 Nov 2023 16:30:30 +0200 Subject: [PATCH] Fix: Env Name - Environment fails to build if it contains double quotes --- pkg/stackbuilder/stackbuilder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/stackbuilder/stackbuilder.go b/pkg/stackbuilder/stackbuilder.go index b9d1785..8a2097c 100644 --- a/pkg/stackbuilder/stackbuilder.go +++ b/pkg/stackbuilder/stackbuilder.go @@ -41,7 +41,7 @@ func NewEnvironments(value cue.Value) (Environments, error) { } for envIter.Next() { - name := utils.GetLastPathFragment(envIter.Value()) + name := strings.Trim(utils.GetLastPathFragment(envIter.Value()), "\"") environments[name], err = NewStackBuilder(name, envIter.Value()) if err != nil { return environments, err