spiegel_podman/cmd/podman/machine
Kir Kolyshkin 2a99655120 machine: prepend LocalhostSSHArgs to args
Rather than append LocalhostSSHArgs to args, prepend it, assuming the
order doesn't matter here.

This fixes the following prealloc warning (without decreasing
readability):

> cmd/podman/machine/cp.go:130:2: Consider preallocating args (prealloc)
> 	args := []string{"-r", "-i", sshConfig.IdentityPath, "-P", strconv.Itoa(sshConfig.Port)}
> 	^

This commit is part of series fixing issues reported by prealloc linter
from golangci-lint v2.8.0.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-02-11 11:41:11 -08:00
..
os Autocomplete machine fixes 2026-02-02 15:19:37 -06:00
client9p.go enable gofumpt formatter 2025-11-11 12:32:46 +01:00
cp.go machine: prepend LocalhostSSHArgs to args 2026-02-11 11:41:11 -08:00
info.go enable gofumpt formatter 2025-11-11 12:32:46 +01:00
init.go Add update-connection to machine start and init 2025-11-04 10:35:28 -06:00
inspect.go Autocomplete machine fixes 2026-02-02 15:19:37 -06:00
list.go Fix regression in podman machine ssh 2025-11-12 10:37:48 -06:00
machine.go Preallocate a slice 2026-02-11 11:41:10 -08:00
machine_unix.go Bump Go version to v6 2025-10-23 11:00:15 -04:00
machine_unsupported.go chore: delete obsolete // +build lines 2024-01-04 11:53:38 +02:00
machine_windows.go lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
os.go enable gofumpt formatter 2025-11-11 12:32:46 +01:00
reset.go enable gofumpt formatter 2025-11-11 12:32:46 +01:00
rm.go Autocomplete machine fixes 2026-02-02 15:19:37 -06:00
server9p.go enable gofumpt formatter 2025-11-11 12:32:46 +01:00
set.go enable gofumpt formatter 2025-11-11 12:32:46 +01:00
ssh.go Fix regression in podman machine ssh 2025-11-12 10:37:48 -06:00
start.go Autocomplete machine fixes 2026-02-02 15:19:37 -06:00
stop.go Autocomplete machine fixes 2026-02-02 15:19:37 -06:00