Skip to content

Commit

Permalink
filepath.ToSlash for FS.Open
Browse files Browse the repository at this point in the history
  • Loading branch information
cuixq committed Jan 20, 2025
1 parent 5213257 commit 1492083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/mavenutil/maven.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func MergeParents(ctx context.Context, input *filesystem.ScanInput, mavenClient
if allowLocal {
if parentPath := ParentPOMPath(input, currentPath, string(current.RelativePath)); parentPath != "" {
currentPath = parentPath
f, err := input.FS.Open(parentPath)
f, err := input.FS.Open(filepath.ToSlash(parentPath))
if err != nil {
return fmt.Errorf("failed to open parent file %s: %w", parentPath, err)
}
Expand Down

0 comments on commit 1492083

Please sign in to comment.