Skip to content

Commit

Permalink
Improve path resolution handling in stack_processor_utils
Browse files Browse the repository at this point in the history
  • Loading branch information
milldr committed Dec 27, 2024
1 parent cafdfdd commit ddde3d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/exec/stack_processor_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -1751,7 +1751,7 @@ func resolveRelativePath(path string, currentFilePath string) string {
}

// Check if the path starts with "." or ".."
firstElement := strings.Split(path, string(filepath.Separator))[0]
firstElement := filepath.Clean(strings.Split(path, string(filepath.Separator))[0])
if firstElement == "." || firstElement == ".." {
// Join the current local path with the current stack file path
baseDir := filepath.Dir(currentFilePath)
Expand Down

0 comments on commit ddde3d5

Please sign in to comment.