Skip to content

Conversation

afbjorklund
Copy link
Member

@afbjorklund afbjorklund commented Sep 7, 2025

go: VMOpts.QEMU.CPUType, VMOpts.VZ.Rosetta
yaml: vmOpts.qemu.cpuType, vmOpts.vz.rosetta

Found while moving VMOpts to a separate type.

It is only in the comments actually, but anyway.

@@ -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

go:   VMOpts.QEMU.CPUType, VMOpts.VZ.Rosetta
yaml: vmOpts.qemu.cpuType, vmOpts.vz.rosetta

Signed-off-by: Anders F Björklund <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants