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.
2 parents 16fae26 + a331c51 commit ca465fcCopy full SHA for ca465fc
pkg/specgen/volumes_windows_test.go
@@ -67,6 +67,10 @@ func TestSplitVolumeString(t *testing.T) {
67
},
68
}
69
70
+ t.Run("shouldResolveWinPaths() returns true", func(t *testing.T) {
71
+ assert.True(t, shouldResolveWinPaths())
72
+ })
73
+
74
for _, tt := range tests {
75
t.Run(tt.name, func(t *testing.T) {
76
parts := SplitVolumeString(tt.volume)
pkg/specgen/winpath_linux.go
@@ -6,7 +6,8 @@ import (
6
)
7
8
func shouldResolveWinPaths() bool {
9
- return machine.HostType() == "wsl"
+ hostType := machine.HostType()
10
+ return hostType == machine.Wsl || hostType == machine.HyperV
11
12
13
func shouldResolveUnixWinVariant(path string) bool {
0 commit comments