Skip to content

Commit 7012d98

Browse files
fix: embed filesystem uses forward slashes regardless of the underlying OS (#1198)
Signed-off-by: Harikrishnan Balagopal <[email protected]>
1 parent 18e6d62 commit 7012d98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cmd/utils.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
"fmt"
2222
"net/http"
2323
"os"
24+
"path"
2425
"path/filepath"
2526
"strings"
2627

@@ -113,7 +114,7 @@ func getCustomMappingFilePath() (qaenginetypes.QAMappings, error) {
113114
}
114115
}
115116
logrus.Infof("Using the default QA mappings file")
116-
qaMappingFilepath := filepath.Join("built-in", "qa", "qamappings.yaml")
117+
qaMappingFilepath := path.Join("built-in", "qa", "qamappings.yaml")
117118
file, err := assets.AssetsDir.ReadFile(qaMappingFilepath)
118119
if err != nil {
119120
return qaMapping, fmt.Errorf("failed to read the mappings file metadata from the yaml file at path '%s' . Error: %w", qaMappingFilepath, err)

0 commit comments

Comments
 (0)