Skip to content

go.mod: github.com/lima-vm/lima/v2 #3731

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ linters:
- name: dot-imports
arguments:
- allowedPackages:
- github.com/lima-vm/lima/pkg/must
- github.com/lima-vm/lima/v2/pkg/must
- name: empty-block
- name: error-naming
- name: error-return
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ endif
endif
endif

PACKAGE := github.com/lima-vm/lima
PACKAGE := github.com/lima-vm/lima/v2

VERSION := $(shell git describe --match 'v[0-9]*' --dirty='.m' --always --tags)
VERSION_TRIMMED := $(VERSION:v%=%)
Expand Down
4 changes: 2 additions & 2 deletions cmd/lima-driver-qemu/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
package main

import (
"github.com/lima-vm/lima/pkg/driver/external/server"
"github.com/lima-vm/lima/pkg/driver/qemu"
"github.com/lima-vm/lima/v2/pkg/driver/external/server"
"github.com/lima-vm/lima/v2/pkg/driver/qemu"
)

// To be used as an external driver for Lima.
Expand Down
4 changes: 2 additions & 2 deletions cmd/lima-driver-vz/main_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
package main

import (
"github.com/lima-vm/lima/pkg/driver/external/server"
"github.com/lima-vm/lima/pkg/driver/vz"
"github.com/lima-vm/lima/v2/pkg/driver/external/server"
"github.com/lima-vm/lima/v2/pkg/driver/vz"
)

// To be used as an external driver for Lima.
Expand Down
4 changes: 2 additions & 2 deletions cmd/lima-driver-wsl2/main_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
package main

import (
"github.com/lima-vm/lima/pkg/driver/external/server"
"github.com/lima-vm/lima/pkg/driver/wsl2"
"github.com/lima-vm/lima/v2/pkg/driver/external/server"
"github.com/lima-vm/lima/v2/pkg/driver/wsl2"
)

// To be used as an external driver for Lima.
Expand Down
8 changes: 4 additions & 4 deletions cmd/lima-guestagent/daemon_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"

"github.com/lima-vm/lima/pkg/guestagent"
"github.com/lima-vm/lima/pkg/guestagent/api/server"
"github.com/lima-vm/lima/pkg/guestagent/serialport"
"github.com/lima-vm/lima/pkg/portfwdserver"
"github.com/lima-vm/lima/v2/pkg/guestagent"
"github.com/lima-vm/lima/v2/pkg/guestagent/api/server"
"github.com/lima-vm/lima/v2/pkg/guestagent/serialport"
"github.com/lima-vm/lima/v2/pkg/portfwdserver"
)

func newDaemonCommand() *cobra.Command {
Expand Down
2 changes: 1 addition & 1 deletion cmd/lima-guestagent/install_systemd_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"

"github.com/lima-vm/lima/pkg/textutil"
"github.com/lima-vm/lima/v2/pkg/textutil"
)

func newInstallSystemdCommand() *cobra.Command {
Expand Down
4 changes: 2 additions & 2 deletions cmd/lima-guestagent/main_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"

"github.com/lima-vm/lima/pkg/debugutil"
"github.com/lima-vm/lima/pkg/version"
"github.com/lima-vm/lima/v2/pkg/debugutil"
"github.com/lima-vm/lima/v2/pkg/version"
)

func main() {
Expand Down
14 changes: 7 additions & 7 deletions cmd/limactl/clone.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ import (

"github.com/spf13/cobra"

"github.com/lima-vm/lima/cmd/limactl/editflags"
"github.com/lima-vm/lima/pkg/instance"
"github.com/lima-vm/lima/pkg/limayaml"
networks "github.com/lima-vm/lima/pkg/networks/reconcile"
"github.com/lima-vm/lima/pkg/store"
"github.com/lima-vm/lima/pkg/store/filenames"
"github.com/lima-vm/lima/pkg/yqutil"
"github.com/lima-vm/lima/v2/cmd/limactl/editflags"
"github.com/lima-vm/lima/v2/pkg/instance"
"github.com/lima-vm/lima/v2/pkg/limayaml"
networks "github.com/lima-vm/lima/v2/pkg/networks/reconcile"
"github.com/lima-vm/lima/v2/pkg/store"
"github.com/lima-vm/lima/v2/pkg/store/filenames"
"github.com/lima-vm/lima/v2/pkg/yqutil"
)

func newCloneCommand() *cobra.Command {
Expand Down
6 changes: 3 additions & 3 deletions cmd/limactl/completion.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (

"github.com/spf13/cobra"

"github.com/lima-vm/lima/pkg/networks"
"github.com/lima-vm/lima/pkg/store"
"github.com/lima-vm/lima/pkg/templatestore"
"github.com/lima-vm/lima/v2/pkg/networks"
"github.com/lima-vm/lima/v2/pkg/store"
"github.com/lima-vm/lima/v2/pkg/templatestore"
)

func bashCompleteInstanceNames(_ *cobra.Command) ([]string, cobra.ShellCompDirective) {
Expand Down
6 changes: 3 additions & 3 deletions cmd/limactl/copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ import (
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"

"github.com/lima-vm/lima/pkg/ioutilx"
"github.com/lima-vm/lima/pkg/sshutil"
"github.com/lima-vm/lima/pkg/store"
"github.com/lima-vm/lima/v2/pkg/ioutilx"
"github.com/lima-vm/lima/v2/pkg/sshutil"
"github.com/lima-vm/lima/v2/pkg/store"
)

const copyHelp = `Copy files between host and guest
Expand Down
2 changes: 1 addition & 1 deletion cmd/limactl/debug.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"

"github.com/lima-vm/lima/pkg/hostagent/dns"
"github.com/lima-vm/lima/v2/pkg/hostagent/dns"
)

func newDebugCommand() *cobra.Command {
Expand Down
8 changes: 4 additions & 4 deletions cmd/limactl/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import (
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"

"github.com/lima-vm/lima/pkg/autostart"
"github.com/lima-vm/lima/pkg/instance"
networks "github.com/lima-vm/lima/pkg/networks/reconcile"
"github.com/lima-vm/lima/pkg/store"
"github.com/lima-vm/lima/v2/pkg/autostart"
"github.com/lima-vm/lima/v2/pkg/instance"
networks "github.com/lima-vm/lima/v2/pkg/networks/reconcile"
"github.com/lima-vm/lima/v2/pkg/store"
)

func newDeleteCommand() *cobra.Command {
Expand Down
6 changes: 3 additions & 3 deletions cmd/limactl/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import (
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"

"github.com/lima-vm/lima/pkg/imgutil/proxyimgutil"
"github.com/lima-vm/lima/pkg/store"
"github.com/lima-vm/lima/pkg/store/filenames"
"github.com/lima-vm/lima/v2/pkg/imgutil/proxyimgutil"
"github.com/lima-vm/lima/v2/pkg/store"
"github.com/lima-vm/lima/v2/pkg/store/filenames"
)

func newDiskCommand() *cobra.Command {
Expand Down
18 changes: 9 additions & 9 deletions cmd/limactl/edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ import (
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"

"github.com/lima-vm/lima/cmd/limactl/editflags"
"github.com/lima-vm/lima/pkg/editutil"
"github.com/lima-vm/lima/pkg/instance"
"github.com/lima-vm/lima/pkg/limayaml"
networks "github.com/lima-vm/lima/pkg/networks/reconcile"
"github.com/lima-vm/lima/pkg/store"
"github.com/lima-vm/lima/pkg/store/filenames"
"github.com/lima-vm/lima/pkg/uiutil"
"github.com/lima-vm/lima/pkg/yqutil"
"github.com/lima-vm/lima/v2/cmd/limactl/editflags"
"github.com/lima-vm/lima/v2/pkg/editutil"
"github.com/lima-vm/lima/v2/pkg/instance"
"github.com/lima-vm/lima/v2/pkg/limayaml"
networks "github.com/lima-vm/lima/v2/pkg/networks/reconcile"
"github.com/lima-vm/lima/v2/pkg/store"
"github.com/lima-vm/lima/v2/pkg/store/filenames"
"github.com/lima-vm/lima/v2/pkg/uiutil"
"github.com/lima-vm/lima/v2/pkg/yqutil"
)

func newEditCommand() *cobra.Command {
Expand Down
8 changes: 4 additions & 4 deletions cmd/limactl/factory-reset.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import (
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"

"github.com/lima-vm/lima/pkg/cidata"
"github.com/lima-vm/lima/pkg/instance"
"github.com/lima-vm/lima/pkg/store"
"github.com/lima-vm/lima/pkg/store/filenames"
"github.com/lima-vm/lima/v2/pkg/cidata"
"github.com/lima-vm/lima/v2/pkg/instance"
"github.com/lima-vm/lima/v2/pkg/store"
"github.com/lima-vm/lima/v2/pkg/store/filenames"
)

func newFactoryResetCommand() *cobra.Command {
Expand Down
4 changes: 2 additions & 2 deletions cmd/limactl/genschema.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import (
"github.com/spf13/cobra"
orderedmap "github.com/wk8/go-ordered-map/v2"

"github.com/lima-vm/lima/pkg/jsonschemautil"
"github.com/lima-vm/lima/pkg/limayaml"
"github.com/lima-vm/lima/v2/pkg/jsonschemautil"
"github.com/lima-vm/lima/v2/pkg/limayaml"
)

func newGenSchemaCommand() *cobra.Command {
Expand Down
4 changes: 2 additions & 2 deletions cmd/limactl/hostagent.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import (
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"

"github.com/lima-vm/lima/pkg/hostagent"
"github.com/lima-vm/lima/pkg/hostagent/api/server"
"github.com/lima-vm/lima/v2/pkg/hostagent"
"github.com/lima-vm/lima/v2/pkg/hostagent/api/server"
)

func newHostagentCommand() *cobra.Command {
Expand Down
2 changes: 1 addition & 1 deletion cmd/limactl/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/spf13/cobra"

"github.com/lima-vm/lima/pkg/limainfo"
"github.com/lima-vm/lima/v2/pkg/limainfo"
)

func newInfoCommand() *cobra.Command {
Expand Down
2 changes: 1 addition & 1 deletion cmd/limactl/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"

"github.com/lima-vm/lima/pkg/store"
"github.com/lima-vm/lima/v2/pkg/store"
)

func fieldNames() []string {
Expand Down
12 changes: 6 additions & 6 deletions cmd/limactl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ import (
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"

"github.com/lima-vm/lima/pkg/debugutil"
"github.com/lima-vm/lima/pkg/driver/external/server"
"github.com/lima-vm/lima/pkg/fsutil"
"github.com/lima-vm/lima/pkg/osutil"
"github.com/lima-vm/lima/pkg/store/dirnames"
"github.com/lima-vm/lima/pkg/version"
"github.com/lima-vm/lima/v2/pkg/debugutil"
"github.com/lima-vm/lima/v2/pkg/driver/external/server"
"github.com/lima-vm/lima/v2/pkg/fsutil"
"github.com/lima-vm/lima/v2/pkg/osutil"
"github.com/lima-vm/lima/v2/pkg/store/dirnames"
"github.com/lima-vm/lima/v2/pkg/version"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion cmd/limactl/main_darwin.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
package main

// Import vz driver to register it in the registry on darwin.
import _ "github.com/lima-vm/lima/pkg/driver/vz"
import _ "github.com/lima-vm/lima/v2/pkg/driver/vz"
2 changes: 1 addition & 1 deletion cmd/limactl/main_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
package main

// Import qemu driver to register it in the registry on all platforms.
import _ "github.com/lima-vm/lima/pkg/driver/qemu"
import _ "github.com/lima-vm/lima/v2/pkg/driver/qemu"
2 changes: 1 addition & 1 deletion cmd/limactl/main_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
package main

// Import wsl2 driver to register it in the registry on windows.
import _ "github.com/lima-vm/lima/pkg/driver/wsl2"
import _ "github.com/lima-vm/lima/v2/pkg/driver/wsl2"
4 changes: 2 additions & 2 deletions cmd/limactl/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"

"github.com/lima-vm/lima/pkg/networks"
"github.com/lima-vm/lima/pkg/yqutil"
"github.com/lima-vm/lima/v2/pkg/networks"
"github.com/lima-vm/lima/v2/pkg/yqutil"
)

const networkCreateExample = ` Create a network:
Expand Down
2 changes: 1 addition & 1 deletion cmd/limactl/protect.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"

"github.com/lima-vm/lima/pkg/store"
"github.com/lima-vm/lima/v2/pkg/store"
)

func newProtectCommand() *cobra.Command {
Expand Down
8 changes: 4 additions & 4 deletions cmd/limactl/prune.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"

"github.com/lima-vm/lima/pkg/downloader"
"github.com/lima-vm/lima/pkg/limayaml"
"github.com/lima-vm/lima/pkg/store"
"github.com/lima-vm/lima/pkg/templatestore"
"github.com/lima-vm/lima/v2/pkg/downloader"
"github.com/lima-vm/lima/v2/pkg/limayaml"
"github.com/lima-vm/lima/v2/pkg/store"
"github.com/lima-vm/lima/v2/pkg/templatestore"
)

func newPruneCommand() *cobra.Command {
Expand Down
4 changes: 2 additions & 2 deletions cmd/limactl/restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package main
import (
"github.com/spf13/cobra"

"github.com/lima-vm/lima/pkg/instance"
"github.com/lima-vm/lima/pkg/store"
"github.com/lima-vm/lima/v2/pkg/instance"
"github.com/lima-vm/lima/v2/pkg/store"
)

func newRestartCommand() *cobra.Command {
Expand Down
12 changes: 6 additions & 6 deletions cmd/limactl/shell.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ import (
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"

"github.com/lima-vm/lima/pkg/instance"
"github.com/lima-vm/lima/pkg/ioutilx"
"github.com/lima-vm/lima/pkg/limayaml"
networks "github.com/lima-vm/lima/pkg/networks/reconcile"
"github.com/lima-vm/lima/pkg/sshutil"
"github.com/lima-vm/lima/pkg/store"
"github.com/lima-vm/lima/v2/pkg/instance"
"github.com/lima-vm/lima/v2/pkg/ioutilx"
"github.com/lima-vm/lima/v2/pkg/limayaml"
networks "github.com/lima-vm/lima/v2/pkg/networks/reconcile"
"github.com/lima-vm/lima/v2/pkg/sshutil"
"github.com/lima-vm/lima/v2/pkg/store"
)

const shellHelp = `Execute shell in Lima
Expand Down
8 changes: 4 additions & 4 deletions cmd/limactl/show-ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"

"github.com/lima-vm/lima/pkg/sshutil"
"github.com/lima-vm/lima/pkg/store"
"github.com/lima-vm/lima/pkg/store/dirnames"
"github.com/lima-vm/lima/pkg/store/filenames"
"github.com/lima-vm/lima/v2/pkg/sshutil"
"github.com/lima-vm/lima/v2/pkg/store"
"github.com/lima-vm/lima/v2/pkg/store/dirnames"
"github.com/lima-vm/lima/v2/pkg/store/filenames"
)

const showSSHExample = `
Expand Down
4 changes: 2 additions & 2 deletions cmd/limactl/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"

"github.com/lima-vm/lima/pkg/snapshot"
"github.com/lima-vm/lima/pkg/store"
"github.com/lima-vm/lima/v2/pkg/snapshot"
"github.com/lima-vm/lima/v2/pkg/store"
)

func newSnapshotCommand() *cobra.Command {
Expand Down
4 changes: 2 additions & 2 deletions cmd/limactl/start-at-login_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (
"github.com/sirupsen/logrus"
"github.com/spf13/cobra"

"github.com/lima-vm/lima/pkg/autostart"
"github.com/lima-vm/lima/pkg/store"
"github.com/lima-vm/lima/v2/pkg/autostart"
"github.com/lima-vm/lima/v2/pkg/store"
)

func startAtLoginAction(cmd *cobra.Command, args []string) error {
Expand Down
Loading