@@ -23,7 +23,7 @@ func startVM(ctx context.Context, distroName string) error {
23
23
"wsl.exe" ,
24
24
"--distribution" ,
25
25
distroName ,
26
- }, executil .WithContext (& ctx ))
26
+ }, executil .WithContext (ctx ))
27
27
if err != nil {
28
28
return fmt .Errorf ("failed to run `wsl.exe --distribution %s`: %w (out=%q)" ,
29
29
distroName , err , string (out ))
@@ -41,7 +41,7 @@ func initVM(ctx context.Context, instanceDir, distroName string) error {
41
41
distroName ,
42
42
instanceDir ,
43
43
baseDisk ,
44
- }, executil .WithContext (& ctx ))
44
+ }, executil .WithContext (ctx ))
45
45
if err != nil {
46
46
return fmt .Errorf ("failed to run `wsl.exe --import %s %s %s`: %w (out=%q)" ,
47
47
distroName , instanceDir , baseDisk , err , string (out ))
@@ -55,7 +55,7 @@ func stopVM(ctx context.Context, distroName string) error {
55
55
"wsl.exe" ,
56
56
"--terminate" ,
57
57
distroName ,
58
- }, executil .WithContext (& ctx ))
58
+ }, executil .WithContext (ctx ))
59
59
if err != nil {
60
60
return fmt .Errorf ("failed to run `wsl.exe --terminate %s`: %w (out=%q)" ,
61
61
distroName , err , string (out ))
@@ -164,7 +164,7 @@ func unregisterVM(ctx context.Context, distroName string) error {
164
164
"wsl.exe" ,
165
165
"--unregister" ,
166
166
distroName ,
167
- }, executil .WithContext (& ctx ))
167
+ }, executil .WithContext (ctx ))
168
168
if err != nil {
169
169
return fmt .Errorf ("failed to run `wsl.exe --unregister %s`: %w (out=%q)" ,
170
170
distroName , err , string (out ))
0 commit comments