From 8133452dd8c743edb8e27f6dd57ee4fa0c147b64 Mon Sep 17 00:00:00 2001 From: CloudQuery Bot Date: Sun, 1 Mar 2026 02:39:23 +0000 Subject: [PATCH] fix(deps): Update module github.com/coreos/go-systemd/v22 to v22.7.0 --- go.mod | 2 +- go.sum | 4 +-- .../coreos/go-systemd/v22/activation/files.go | 29 +++++++++++++++++++ .../{files_windows.go => files_stub.go} | 2 ++ .../go-systemd/v22/activation/files_unix.go | 4 +-- .../go-systemd/v22/activation/listeners.go | 7 +---- vendor/modules.txt | 2 +- 7 files changed, 38 insertions(+), 12 deletions(-) create mode 100644 vendor/github.com/coreos/go-systemd/v22/activation/files.go rename vendor/github.com/coreos/go-systemd/v22/activation/{files_windows.go => files_stub.go} (97%) diff --git a/go.mod b/go.mod index 78853690fd0..76d6c02bae9 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/Azure/azure-sdk-for-go/sdk/storage/azblob v1.6.3 github.com/aws/aws-sdk-go v1.55.8 github.com/bshuster-repo/logrus-logstash-hook v1.0.0 - github.com/coreos/go-systemd/v22 v22.6.0 + github.com/coreos/go-systemd/v22 v22.7.0 github.com/distribution/reference v0.5.0 github.com/docker/go-events v0.0.0-20250808211157-605354379745 github.com/docker/go-metrics v0.0.1 diff --git a/go.sum b/go.sum index 6c4a1b13348..3bfa0811fe3 100644 --- a/go.sum +++ b/go.sum @@ -68,8 +68,8 @@ github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UF github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs= github.com/cncf/xds/go v0.0.0-20250501225837-2ac532fd4443 h1:aQ3y1lwWyqYPiWZThqv1aFbZMiM9vblcSArJRf2Irls= github.com/cncf/xds/go v0.0.0-20250501225837-2ac532fd4443/go.mod h1:W+zGtBO5Y1IgJhy4+A9GOqVhqLpfZi+vwmdNXUehLA8= -github.com/coreos/go-systemd/v22 v22.6.0 h1:aGVa/v8B7hpb0TKl0MWoAavPDmHvobFe5R5zn0bCJWo= -github.com/coreos/go-systemd/v22 v22.6.0/go.mod h1:iG+pp635Fo7ZmV/j14KUcmEyWF+0X7Lua8rrTWzYgWU= +github.com/coreos/go-systemd/v22 v22.7.0 h1:LAEzFkke61DFROc7zNLX/WA2i5J8gYqe0rSj9KI28KA= +github.com/coreos/go-systemd/v22 v22.7.0/go.mod h1:xNUYtjHu2EDXbsxz1i41wouACIwT7Ybq9o0BQhMwD0w= github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/vendor/github.com/coreos/go-systemd/v22/activation/files.go b/vendor/github.com/coreos/go-systemd/v22/activation/files.go new file mode 100644 index 00000000000..8ac7fa3fa41 --- /dev/null +++ b/vendor/github.com/coreos/go-systemd/v22/activation/files.go @@ -0,0 +1,29 @@ +// Copyright 2026 RedHat, Inc. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +package activation + +import "os" + +// FilesWithNames maps fd names to a set of os.File pointers. +func FilesWithNames() map[string][]*os.File { + files := Files(true) + filesWithNames := map[string][]*os.File{} + + for _, f := range files { + filesWithNames[f.Name()] = append(filesWithNames[f.Name()], f) + } + + return filesWithNames +} diff --git a/vendor/github.com/coreos/go-systemd/v22/activation/files_windows.go b/vendor/github.com/coreos/go-systemd/v22/activation/files_stub.go similarity index 97% rename from vendor/github.com/coreos/go-systemd/v22/activation/files_windows.go rename to vendor/github.com/coreos/go-systemd/v22/activation/files_stub.go index d391bf00c5e..5ea78db417d 100644 --- a/vendor/github.com/coreos/go-systemd/v22/activation/files_windows.go +++ b/vendor/github.com/coreos/go-systemd/v22/activation/files_stub.go @@ -12,6 +12,8 @@ // See the License for the specific language governing permissions and // limitations under the License. +//go:build !unix + package activation import "os" diff --git a/vendor/github.com/coreos/go-systemd/v22/activation/files_unix.go b/vendor/github.com/coreos/go-systemd/v22/activation/files_unix.go index 7031f281a07..113cfef4d17 100644 --- a/vendor/github.com/coreos/go-systemd/v22/activation/files_unix.go +++ b/vendor/github.com/coreos/go-systemd/v22/activation/files_unix.go @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -//go:build !windows +//go:build unix // Package activation implements primitives for systemd socket activation. package activation @@ -51,7 +51,7 @@ func Files(unsetEnv bool) []*os.File { } nfds, err := strconv.Atoi(os.Getenv("LISTEN_FDS")) - if err != nil || nfds == 0 { + if err != nil || nfds <= 0 { return nil } diff --git a/vendor/github.com/coreos/go-systemd/v22/activation/listeners.go b/vendor/github.com/coreos/go-systemd/v22/activation/listeners.go index 3dbe2b08776..108562bfc51 100644 --- a/vendor/github.com/coreos/go-systemd/v22/activation/listeners.go +++ b/vendor/github.com/coreos/go-systemd/v22/activation/listeners.go @@ -45,12 +45,7 @@ func ListenersWithNames() (map[string][]net.Listener, error) { for _, f := range files { if pc, err := net.FileListener(f); err == nil { - current, ok := listeners[f.Name()] - if !ok { - listeners[f.Name()] = []net.Listener{pc} - } else { - listeners[f.Name()] = append(current, pc) - } + listeners[f.Name()] = append(listeners[f.Name()], pc) f.Close() } } diff --git a/vendor/modules.txt b/vendor/modules.txt index aeb8848ef92..7f727d58603 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -208,7 +208,7 @@ github.com/cncf/xds/go/xds/data/orca/v3 github.com/cncf/xds/go/xds/service/orca/v3 github.com/cncf/xds/go/xds/type/matcher/v3 github.com/cncf/xds/go/xds/type/v3 -# github.com/coreos/go-systemd/v22 v22.6.0 +# github.com/coreos/go-systemd/v22 v22.7.0 ## explicit; go 1.23 github.com/coreos/go-systemd/v22/activation # github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc