Skip to content

Mounts: prohibit relative paths in YAML (while allowing them in limactl create --mount CLI) #3948

@AkihiroSuda

Description

@AkihiroSuda

The current YAML surprisingly allows relative paths (maybe a regression):

mounts:
- location: .

The actual path changes depending on the cwd of the limactl start command.

In Lima v2.0, these relative paths should be prohibited to make the command deterministic.

limactl create --mount DIR should continue to support relative paths.
A relative path should be resolved into an absolute path at the time of limactl create.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingregressionUsed to work but has been broken

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions