@@ -23,7 +23,7 @@ import (
23
23
"github.com/lima-vm/lima/v2/pkg/envutil"
24
24
"github.com/lima-vm/lima/v2/pkg/instance"
25
25
"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 "
27
27
networks "github.com/lima-vm/lima/v2/pkg/networks/reconcile"
28
28
"github.com/lima-vm/lima/v2/pkg/sshutil"
29
29
"github.com/lima-vm/lima/v2/pkg/store"
@@ -86,7 +86,7 @@ func shellAction(cmd *cobra.Command, args []string) error {
86
86
}
87
87
return err
88
88
}
89
- if inst .Status == store .StatusStopped {
89
+ if inst .Status == limatype .StatusStopped {
90
90
startNow , err := askWhetherToStart ()
91
91
if err != nil {
92
92
return err
@@ -142,7 +142,7 @@ func shellAction(cmd *cobra.Command, args []string) error {
142
142
if workDir != "" {
143
143
changeDirCmd = fmt .Sprintf ("cd %s || exit 1" , shellescape .Quote (workDir ))
144
144
// 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 {
146
146
hostCurrentDir , err := os .Getwd ()
147
147
if err == nil && runtime .GOOS == "windows" {
148
148
hostCurrentDir , err = mountDirFromWindowsDir (ctx , inst , hostCurrentDir )
@@ -265,8 +265,8 @@ func shellAction(cmd *cobra.Command, args []string) error {
265
265
return sshCmd .Run ()
266
266
}
267
267
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 {
270
270
distroName := "lima-" + inst .Name
271
271
return ioutilx .WindowsSubsystemPathForLinux (ctx , dir , distroName )
272
272
}
0 commit comments