Skip to content
Closed
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 pkg/limatype/lima_yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type LimaYAML struct {
OS *OS `yaml:"os,omitempty" json:"os,omitempty" jsonschema:"nullable"`
Arch *Arch `yaml:"arch,omitempty" json:"arch,omitempty" jsonschema:"nullable"`
Images []Image `yaml:"images,omitempty" json:"images,omitempty" jsonschema:"nullable"`
// Deprecated: Use VMOpts.Qemu.CPUType instead.
// Deprecated: Use VMOpts.QEMU.CPUType instead.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Soon:

Suggested change
// Deprecated: Use VMOpts.QEMU.CPUType instead.
// Deprecated: Use VMOpts["qemu"].CPUType instead.

Copy link
Member Author

@afbjorklund afbjorklund Sep 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I used the yaml names since they are less ugly, but that is the "after" state and this was the "before" state...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pkg/limatype/lima_yaml.go:      VMOpts             VMOpts        `yaml:"vmOpts,omitempty" json:"vmOpts,omitempty"`
pkg/limatype/lima_yaml.go:      // Deprecated: Use vmOpts.qemu.cpuType instead.
pkg/limatype/lima_yaml.go:      // Deprecated: Use vmOpts.vz.rosetta instead.
pkg/limatype/lima_yaml.go:type VMOpts map[VMType]any

CPUType CPUType `yaml:"cpuType,omitempty" json:"cpuType,omitempty" jsonschema:"nullable"`
CPUs *int `yaml:"cpus,omitempty" json:"cpus,omitempty" jsonschema:"nullable"`
Memory *string `yaml:"memory,omitempty" json:"memory,omitempty" jsonschema:"nullable"` // go-units.RAMInBytes
Expand Down
2 changes: 1 addition & 1 deletion templates/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ os: null
# DEPRECATED: Use vmOpts.qemu.cpuType instead. See the vmOpts.qemu.cpuType section above for configuration.
cpuType:

# DEPRECATED: Use vmOpts.vz.rosetta instead. See the vmOpts.qemu.cpuType section above for configuration.
# DEPRECATED: Use vmOpts.vz.rosetta instead. See the vmOpts.vz.rosetta section above for configuration.
rosetta:
enabled: null
binfmt: null
Expand Down
Loading