@@ -8,6 +8,7 @@ package main
8
8
import (
9
9
"errors"
10
10
"fmt"
11
+ "runtime"
11
12
"testing"
12
13
13
14
"github.com/runfinch/finch/pkg/dependency"
@@ -83,6 +84,11 @@ func TestInitVMAction_runAdapter(t *testing.T) {
83
84
command .EXPECT ().CombinedOutput ()
84
85
85
86
logger .EXPECT ().Info ("Initializing and starting Finch virtual machine..." )
87
+ if runtime .GOOS == "windows" {
88
+ logger .EXPECT ().Warnln ("Finch on Windows uses WSL, which mounts the C Drive in read-write mode by default. " +
89
+ "To run finch with more restricted access, follow " +
90
+ "https://runfinch.com/docs/managing-finch/windows/wsl-configuration/" )
91
+ }
86
92
logger .EXPECT ().Info ("Finch virtual machine started successfully" )
87
93
},
88
94
},
@@ -151,6 +157,11 @@ func TestInitVMAction_run(t *testing.T) {
151
157
command .EXPECT ().CombinedOutput ()
152
158
153
159
logger .EXPECT ().Info ("Initializing and starting Finch virtual machine..." )
160
+ if runtime .GOOS == "windows" {
161
+ logger .EXPECT ().Warnln ("Finch on Windows uses WSL, which mounts the C Drive in read-write mode by default. " +
162
+ "To run finch with more restricted access, follow " +
163
+ "https://runfinch.com/docs/managing-finch/windows/wsl-configuration/" )
164
+ }
154
165
logger .EXPECT ().Info ("Finch virtual machine started successfully" )
155
166
},
156
167
},
@@ -276,6 +287,11 @@ func TestInitVMAction_run(t *testing.T) {
276
287
command .EXPECT ().CombinedOutput ()
277
288
278
289
logger .EXPECT ().Info ("Initializing and starting Finch virtual machine..." )
290
+ if runtime .GOOS == "windows" {
291
+ logger .EXPECT ().Warnln ("Finch on Windows uses WSL, which mounts the C Drive in read-write mode by default. " +
292
+ "To run finch with more restricted access, follow " +
293
+ "https://runfinch.com/docs/managing-finch/windows/wsl-configuration/" )
294
+ }
279
295
logger .EXPECT ().Info ("Finch virtual machine started successfully" )
280
296
},
281
297
},
0 commit comments