You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return"", fmt.Errorf("unable to get available hyperv switches")
325
+
return"", errors.New("unable to get available hyperv switches")
324
326
}
325
327
326
328
iflen(switches) <1 {
327
-
return"", fmt.Errorf("no External vswitch nor Default Switch found. A valid vswitch must be available for this command to run. Check https://docs.docker.com/machine/drivers/hyper-v/")
329
+
return"", errors.New("no External vswitch nor Default Switch found. A valid vswitch must be available for this command to run. Check https://docs.docker.com/machine/drivers/hyper-v/")
Copy file name to clipboardExpand all lines: pkg/drivers/virtualbox/network.go
+9-4Lines changed: 9 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -34,9 +34,12 @@ const (
34
34
dhcpPrefix="HostInterfaceNetworking-"
35
35
)
36
36
37
+
//nolint:staticcheck // ST1005: error strings should not be capitalized
37
38
var (
38
-
reHostOnlyAdapterCreated=regexp.MustCompile(`Interface '(.+)' was successfully created`)
39
-
errNewHostOnlyAdapterNotVisible=errors.New("The host-only adapter we just created is not visible. This is a well known VirtualBox bug. You might want to uninstall it and reinstall at least version 5.0.12 that is is supposed to fix this issue")
39
+
reHostOnlyAdapterCreated=regexp.MustCompile(`Interface '(.+)' was successfully created`)
40
+
errNewHostOnlyAdapterNotVisible=errors.New("The host-only adapter we just created is not visible. This is a well known VirtualBox bug. You might want to uninstall it and reinstall at least version 5.0.12 that is is supposed to fix this issue")
41
+
errFailedToCreateHostOnlyAdapter=errors.New("Failed to create host-only adapter")
42
+
errFailedToFindHostOnlyAdapter=errors.New("Failed to find a new host-only adapter")
if (err!=nil) || (major<4) || (major==4&&minor<=2) {
130
+
//nolint:staticcheck // ST1005: error strings should not be capitalized
130
131
returnfmt.Errorf("We support Virtualbox starting with version 5. Your VirtualBox install is %q. Please upgrade at https://www.virtualbox.org", version)
0 commit comments