Skip to content

Commit 03a657c

Browse files
committed
Fix paths on windows
Signed-off-by: David Gageot <[email protected]>
1 parent 1732f2f commit 03a657c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/skaffold/build/buildpacks/init_test.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -32,27 +32,27 @@ func TestValidate(t *testing.T) {
3232
}{
3333
{
3434
description: "NodeJS",
35-
path: "path/to/package.json",
35+
path: filepath.Join("path", "to", "package.json"),
3636
expectedValid: true,
3737
},
3838
{
3939
description: "NodeJS (ignored)",
40-
path: "node_modules/package.json",
40+
path: filepath.Join("node_modules", "package.json"),
4141
expectedValid: false,
4242
},
4343
{
4444
description: "Go",
45-
path: "path/to/go.mod",
45+
path: filepath.Join("path", "to", "go.mod"),
4646
expectedValid: true,
4747
},
4848
{
4949
description: "Go (ignored)",
50-
path: "vendor/go.mod",
50+
path: filepath.Join("vendor", "go.mod"),
5151
expectedValid: false,
5252
},
5353
{
5454
description: "Unknown language",
55-
path: "path/to/something.txt",
55+
path: filepath.Join("path", "to", "something.txt"),
5656
expectedValid: false,
5757
},
5858
}

0 commit comments

Comments
 (0)