Skip to content

Commit 457ddea

Browse files
committed
refactor(driver): move qemu,vz and wsl2 to pkg/driver
Signed-off-by: Ansuman Sahoo <[email protected]>
1 parent bb413ed commit 457ddea

24 files changed

+5
-4
lines changed

pkg/builtins/drivers.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ package builtins
55

66
import (
77
// Import all built-in drivers to register them in the registry.
8-
_ "github.com/lima-vm/lima/pkg/qemu"
9-
_ "github.com/lima-vm/lima/pkg/vz"
10-
_ "github.com/lima-vm/lima/pkg/wsl2"
8+
_ "github.com/lima-vm/lima/pkg/driver/qemu"
9+
_ "github.com/lima-vm/lima/pkg/driver/vz"
10+
_ "github.com/lima-vm/lima/pkg/driver/wsl2"
1111
)

pkg/qemu/qemu.go renamed to pkg/driver/qemu/qemu.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import (
3434
"github.com/lima-vm/lima/pkg/networks"
3535
"github.com/lima-vm/lima/pkg/networks/usernet"
3636
"github.com/lima-vm/lima/pkg/osutil"
37+
"github.com/lima-vm/lima/pkg/qemuimgutil"
3738
"github.com/lima-vm/lima/pkg/store"
3839
"github.com/lima-vm/lima/pkg/store/filenames"
3940
)

pkg/qemu/qemu_driver.go renamed to pkg/driver/qemu/qemu_driver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ import (
2727
"github.com/sirupsen/logrus"
2828

2929
"github.com/lima-vm/lima/pkg/driver"
30+
"github.com/lima-vm/lima/pkg/driver/qemu/entitlementutil"
3031
"github.com/lima-vm/lima/pkg/executil"
3132
"github.com/lima-vm/lima/pkg/limayaml"
3233
"github.com/lima-vm/lima/pkg/networks/usernet"
3334
"github.com/lima-vm/lima/pkg/osutil"
34-
"github.com/lima-vm/lima/pkg/qemu/entitlementutil"
3535
"github.com/lima-vm/lima/pkg/store"
3636
"github.com/lima-vm/lima/pkg/store/filenames"
3737
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)