diff --git a/internal/exec/stack_processor_utils.go b/internal/exec/stack_processor_utils.go index ae32fa4b1..42f0031e6 100644 --- a/internal/exec/stack_processor_utils.go +++ b/internal/exec/stack_processor_utils.go @@ -468,8 +468,7 @@ func ProcessYAMLConfigFile( if err != nil { return nil, nil, nil, nil, nil, err } - - importRelativePathWithExt := strings.Replace(importFile, basePath+"/", "", 1) + importRelativePathWithExt := strings.Replace(filepath.ToSlash(importFile), filepath.ToSlash(basePath)+"/", "", 1) ext2 := filepath.Ext(importRelativePathWithExt) if ext2 == "" { ext2 = u.DefaultStackConfigFileExtension