spiegel_podman/pkg
Kir Kolyshkin 121948d69e pkg/rootless: modernize
Using modernize (aka go fix) from Go 1.26.3, implement the following
changes:

> pkg/rootless/rootless_linux.go:319:30: fmtappendf: Replace []byte(fmt.Sprintf...) with fmt.Appendf (modernize)
> 		err = os.WriteFile(uidMap, []byte(fmt.Sprintf("%d %d 1\n", 0, os.Geteuid())), 0o666)
> 		                           ^
> pkg/rootless/rootless_linux.go:339:30: fmtappendf: Replace []byte(fmt.Sprintf...) with fmt.Appendf (modernize)
> 		err = os.WriteFile(gidMap, []byte(fmt.Sprintf("%d %d 1\n", 0, os.Getegid())), 0o666)
> 		                           ^
> pkg/rootless/rootless_linux.go:381:6: rangeint: for loop can be modernized using range over int (modernize)
> 	for sig := 0; sig < numSig; sig++ {
> 	    ^
> pkg/rootless/rootless_linux.go:432:24: stringsseq: Ranging over SplitSeq is more efficient (modernize)
> 	for _, entry := range bytes.Split(data, []byte{0}) {
> 	                      ^

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-05-22 12:25:21 -07:00
..
annotations RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
api Replace os.Is* error checks with errors.Is 2026-05-21 13:09:42 -07:00
auth api/compat: switch to moby/moby 2026-03-09 11:09:23 +01:00
autoupdate RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
bindings Replace os.Is* error checks with errors.Is 2026-05-21 13:09:42 -07:00
channel bump golangci-lint to v1.50.1 2022-12-15 13:39:56 +01:00
checkpoint Replace os.Is* error checks with errors.Is 2026-05-21 13:09:42 -07:00
copy Replace os.Is* error checks with errors.Is 2026-05-21 13:09:42 -07:00
criu lint: reenable revive unused-parameter check 2025-10-01 10:42:08 -04:00
ctime update golangci/golangci-lint to v1.63.4 2025-01-07 15:48:53 +01:00
domain Merge pull request #28753 from kolyshkin/os-is 2026-05-22 05:18:45 -04:00
emulation pkg/emulation: remove slice copying 2026-02-11 11:41:10 -08:00
env run modernize -fix ./... 2025-09-10 16:17:04 +02:00
errorhandling pkg/errorhandling: remove deadcode 2025-06-26 19:37:14 +02:00
farm RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
fileserver RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
inspect RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
k8s.io RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
logiface run modernize -fix ./... 2025-09-10 16:17:04 +02:00
lookup Replace os.Is* error checks with errors.Is 2026-05-21 13:09:42 -07:00
machine Close leaked file handles in container config, CRIU stats, and playbook read 2026-05-17 16:09:56 -07:00
namespaces Remove slirp4netns setup functions (preserve RLK) 2026-04-13 09:04:41 -04:00
parallel RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
pidhandle add missing O_CLOEXEC to open calls 2026-04-02 15:06:37 +02:00
ps RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
rctl use strings.SplitSeq where possible 2025-09-10 16:17:04 +02:00
rootless pkg/rootless: modernize 2026-05-22 12:25:21 -07:00
seccomp pkg: switch to golang native error wrapping 2022-07-08 08:54:47 +02:00
selinux Update oc/selinux to v1.14.1 2026-05-11 11:04:23 -07:00
signal enable gofumpt formatter 2025-11-11 12:32:46 +01:00
specgen specgen: memoize isMqueueSupported with sync.OnceValue 2026-05-05 14:41:26 +02:00
specgenutil RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
specgenutilexternal enable gofumpt formatter 2025-11-11 12:32:46 +01:00
syncmap Add syncmap package and use it for graph stop/remove 2025-02-17 14:32:34 -05:00
systemd RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
terminal Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
trust Replace os.Is* error checks with errors.Is 2026-05-21 13:09:42 -07:00
util Replace os.Is* error checks with errors.Is 2026-05-21 13:09:42 -07:00