Skip to content

Commit 762a044

Browse files
committed
Convert Windows path separators
This avoids `foo\tmp` in a path to be expanded to `foo<TAB>mp`. Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
1 parent b5faaf0 commit 762a044

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config_platform_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func TestPlatformPathSeparators(t *testing.T) {
5555
require.NoError(t, err)
5656

5757
// Main config with platform-appropriate path
58-
content := "[include]\n\tpath = " + includePath + "\n[user]\n\tname = Test"
58+
content := "[include]\n\tpath = " + filepath.ToSlash(includePath) + "\n[user]\n\tname = Test"
5959
err = os.WriteFile(configPath, []byte(content), 0o644)
6060
require.NoError(t, err)
6161

0 commit comments

Comments
 (0)