From b1ddf63290cafb1fe23a152004d2000f6b099ed3 Mon Sep 17 00:00:00 2001 From: Haitham Rageh Date: Sun, 29 Dec 2024 00:24:29 +0200 Subject: [PATCH] fix import path --- internal/exec/stack_processor_utils.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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