From 7f0e80fc74154356958389ff20c4d45655d97609 Mon Sep 17 00:00:00 2001 From: Harikrishnan Balagopal Date: Wed, 6 Nov 2024 04:35:56 +0530 Subject: [PATCH] fix: embed filesystem uses forward slashes regardless of the underlying OS Signed-off-by: Harikrishnan Balagopal --- cmd/utils.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/utils.go b/cmd/utils.go index 7bc40691..dfb0c3a7 100644 --- a/cmd/utils.go +++ b/cmd/utils.go @@ -21,6 +21,7 @@ import ( "fmt" "net/http" "os" + "path" "path/filepath" "strings" @@ -113,7 +114,7 @@ func getCustomMappingFilePath() (qaenginetypes.QAMappings, error) { } } logrus.Infof("Using the default QA mappings file") - qaMappingFilepath := filepath.Join("built-in", "qa", "qamappings.yaml") + qaMappingFilepath := path.Join("built-in", "qa", "qamappings.yaml") file, err := assets.AssetsDir.ReadFile(qaMappingFilepath) if err != nil { return qaMapping, fmt.Errorf("failed to read the mappings file metadata from the yaml file at path '%s' . Error: %w", qaMappingFilepath, err)