Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95da8f8 commit 4d11ccbCopy full SHA for 4d11ccb
provisioner/terraform/modules.go
@@ -91,7 +91,7 @@ func getModulesArchive(workdir string) ([]byte, error) {
91
if info.IsDir() {
92
return nil
93
}
94
- archivePath, found := strings.CutPrefix(filePath, workdir+"/")
+ archivePath, found := strings.CutPrefix(filePath, workdir+string(os.PathSeparator))
95
if !found {
96
return xerrors.Errorf("walked invalid file path: %q", filePath)
97
0 commit comments