Skip to content

Commit

Permalink
fix: embed filesystem uses forward slashes regardless of the underlyi…
Browse files Browse the repository at this point in the history
…ng OS (#1198)

Signed-off-by: Harikrishnan Balagopal <harikrishmenon@gmail.com>
  • Loading branch information
HarikrishnanBalagopal authored Nov 6, 2024
1 parent 18e6d62 commit 7012d98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import (
"fmt"
"net/http"
"os"
"path"
"path/filepath"
"strings"

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 7012d98

Please sign in to comment.