From 18fdbaee805e6fda509c0ef64e56ce04f71613b0 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Sat, 29 Mar 2025 23:46:45 -0700 Subject: [PATCH] pkg/machine/qemu: fix ST1016 linter warning on freebsd > pkg/machine/qemu/stubber.go:92:23: ST1016: methods on the same type should have the same receiver name (seen 1x "v", 25x "q") (staticcheck) > func (q *QEMUStubber) CreateVM(opts define.CreateVMOpts, mc *vmconfigs.MachineConfig, builder *ignition.IgnitionBuilder) error { > ^ Signed-off-by: Kir Kolyshkin --- pkg/machine/qemu/options_freebsd_amd64.go | 2 +- pkg/machine/qemu/options_freebsd_arm64.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/machine/qemu/options_freebsd_amd64.go b/pkg/machine/qemu/options_freebsd_amd64.go index 615a5107f8..37ade8eddb 100644 --- a/pkg/machine/qemu/options_freebsd_amd64.go +++ b/pkg/machine/qemu/options_freebsd_amd64.go @@ -6,7 +6,7 @@ var ( QemuCommand = "qemu-system-x86_64" ) -func (v *QEMUStubber) addArchOptions(_ *setNewMachineCMDOpts) []string { +func (q *QEMUStubber) addArchOptions(_ *setNewMachineCMDOpts) []string { opts := []string{"-machine", "q35,accel=hvf:tcg", "-cpu", "host"} return opts } diff --git a/pkg/machine/qemu/options_freebsd_arm64.go b/pkg/machine/qemu/options_freebsd_arm64.go index 56adc27103..6aab9b0669 100644 --- a/pkg/machine/qemu/options_freebsd_arm64.go +++ b/pkg/machine/qemu/options_freebsd_arm64.go @@ -6,7 +6,7 @@ var ( QemuCommand = "qemu-system-aarch64" ) -func (v *QEMUStubber) addArchOptions(_ *setNewMachineCMDOpts) []string { +func (q *QEMUStubber) addArchOptions(_ *setNewMachineCMDOpts) []string { opts := []string{ "-machine", "virt", "-accel", "tcg",