Skip to content

Commit b2a1341

Browse files
committed
really fix windows test
1 parent ca4594c commit b2a1341

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

provisioner/terraform/modules.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func getModulesArchive(workdir string) ([]byte, error) {
9393
}
9494
archivePath, found := strings.CutPrefix(filePath, workdir+string(os.PathSeparator))
9595
if !found {
96-
return xerrors.Errorf("walked invalid file path: %q (expected to start with %q)", filePath, workdir)
96+
return xerrors.Errorf("walked invalid file path: %q", filePath)
9797
}
9898

9999
content, err := os.ReadFile(filePath)

provisioner/terraform/modules_internal_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"crypto/sha256"
66
"encoding/hex"
77
"io/fs"
8+
"path"
89
"strings"
910
"testing"
1011

@@ -16,7 +17,7 @@ import (
1617
func TestGetModulesArchive(t *testing.T) {
1718
t.Parallel()
1819

19-
archive, err := getModulesArchive("testdata/modules-source-caching")
20+
archive, err := getModulesArchive(path.Join("testdata", "modules-source-caching"))
2021
require.NoError(t, err)
2122

2223
// Check that all of the files it should contain are correct

0 commit comments

Comments
 (0)