Skip to content

Commit

Permalink
fix(engine): fixed go-getter not returning rel path on windows (#3866)
Browse files Browse the repository at this point in the history
Signed-off-by: João Reigota <[email protected]>
  • Loading branch information
cx-joao-reigota authored Jul 14, 2021
1 parent a9bd093 commit fee45a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/model/summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func replaceIfTemporaryPath(filePath string, pathExtractionMap map[string]Extrac

func resolvePath(filePath string, pathExtractionMap map[string]ExtractedPathObject) string {
var returnPath string
returnPath = replaceIfTemporaryPath(filePath, pathExtractionMap)
returnPath = replaceIfTemporaryPath(filepath.FromSlash(filePath), pathExtractionMap)
pwd, err := os.Getwd()
if err != nil {
log.Error().Msgf("Unable to get current working dir %s", err)
Expand Down

0 comments on commit fee45a4

Please sign in to comment.