@@ -8,6 +8,7 @@ package main
88import (
99 "errors"
1010 "fmt"
11+ "runtime"
1112 "testing"
1213
1314 "github.com/runfinch/finch/pkg/dependency"
@@ -83,6 +84,11 @@ func TestInitVMAction_runAdapter(t *testing.T) {
8384 command .EXPECT ().CombinedOutput ()
8485
8586 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+ }
8692 logger .EXPECT ().Info ("Finch virtual machine started successfully" )
8793 },
8894 },
@@ -151,6 +157,11 @@ func TestInitVMAction_run(t *testing.T) {
151157 command .EXPECT ().CombinedOutput ()
152158
153159 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+ }
154165 logger .EXPECT ().Info ("Finch virtual machine started successfully" )
155166 },
156167 },
@@ -276,6 +287,11 @@ func TestInitVMAction_run(t *testing.T) {
276287 command .EXPECT ().CombinedOutput ()
277288
278289 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+ }
279295 logger .EXPECT ().Info ("Finch virtual machine started successfully" )
280296 },
281297 },
0 commit comments