@@ -23,7 +23,7 @@ import (
2323 "github.com/lima-vm/lima/v2/pkg/envutil"
2424 "github.com/lima-vm/lima/v2/pkg/instance"
2525 "github.com/lima-vm/lima/v2/pkg/ioutilx"
26- "github.com/lima-vm/lima/v2/pkg/limayaml "
26+ "github.com/lima-vm/lima/v2/pkg/limatype "
2727 networks "github.com/lima-vm/lima/v2/pkg/networks/reconcile"
2828 "github.com/lima-vm/lima/v2/pkg/sshutil"
2929 "github.com/lima-vm/lima/v2/pkg/store"
@@ -86,7 +86,7 @@ func shellAction(cmd *cobra.Command, args []string) error {
8686 }
8787 return err
8888 }
89- if inst .Status == store .StatusStopped {
89+ if inst .Status == limatype .StatusStopped {
9090 startNow , err := askWhetherToStart ()
9191 if err != nil {
9292 return err
@@ -142,7 +142,7 @@ func shellAction(cmd *cobra.Command, args []string) error {
142142 if workDir != "" {
143143 changeDirCmd = fmt .Sprintf ("cd %s || exit 1" , shellescape .Quote (workDir ))
144144 // FIXME: check whether y.Mounts contains the home, not just len > 0
145- } else if len (inst .Config .Mounts ) > 0 || inst .VMType == limayaml .WSL2 {
145+ } else if len (inst .Config .Mounts ) > 0 || inst .VMType == limatype .WSL2 {
146146 hostCurrentDir , err := os .Getwd ()
147147 if err == nil && runtime .GOOS == "windows" {
148148 hostCurrentDir , err = mountDirFromWindowsDir (ctx , inst , hostCurrentDir )
@@ -265,8 +265,8 @@ func shellAction(cmd *cobra.Command, args []string) error {
265265 return sshCmd .Run ()
266266}
267267
268- func mountDirFromWindowsDir (ctx context.Context , inst * store .Instance , dir string ) (string , error ) {
269- if inst .VMType == limayaml .WSL2 {
268+ func mountDirFromWindowsDir (ctx context.Context , inst * limatype .Instance , dir string ) (string , error ) {
269+ if inst .VMType == limatype .WSL2 {
270270 distroName := "lima-" + inst .Name
271271 return ioutilx .WindowsSubsystemPathForLinux (ctx , dir , distroName )
272272 }
0 commit comments