From 9f020c225d3e2d8eae710e54d52d73ce2716f921 Mon Sep 17 00:00:00 2001 From: Han Qiao Date: Sat, 30 Dec 2023 20:10:04 +0800 Subject: [PATCH] fix: assign linked project ref to global variable --- internal/utils/flags/project_ref.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/utils/flags/project_ref.go b/internal/utils/flags/project_ref.go index 91f67a625..8a3cbef9e 100644 --- a/internal/utils/flags/project_ref.go +++ b/internal/utils/flags/project_ref.go @@ -56,7 +56,7 @@ func LoadProjectRef(fsys afero.Fs) (string, error) { } else if err != nil { return "", errors.Errorf("failed to load project ref: %w", err) } - ProjectRef := string(bytes.TrimSpace(projectRefBytes)) + ProjectRef = string(bytes.TrimSpace(projectRefBytes)) if err := utils.AssertProjectRefIsValid(ProjectRef); err != nil { return "", err }