Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4d11ccb

Browse files
committed
try to fix windows test maybe
1 parent 95da8f8 commit 4d11ccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

provisioner/terraform/modules.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ func getModulesArchive(workdir string) ([]byte, error) {
9191
if info.IsDir() {
9292
return nil
9393
}
94-
archivePath, found := strings.CutPrefix(filePath, workdir+"/")
94+
archivePath, found := strings.CutPrefix(filePath, workdir+string(os.PathSeparator))
9595
if !found {
9696
return xerrors.Errorf("walked invalid file path: %q", filePath)
9797
}

0 commit comments

Comments
 (0)