From c7d33e18a4d2e15b51e51f384d4865d5295a11d2 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 3 Oct 2025 08:14:36 +0000 Subject: [PATCH] Bump github.com/urfave/cli-altsrc/v3 from 3.0.1 to 3.1.0 Bumps [github.com/urfave/cli-altsrc/v3](https://github.com/urfave/cli-altsrc) from 3.0.1 to 3.1.0. - [Release notes](https://github.com/urfave/cli-altsrc/releases) - [Commits](https://github.com/urfave/cli-altsrc/compare/v3.0.1...v3.1.0) --- updated-dependencies: - dependency-name: github.com/urfave/cli-altsrc/v3 dependency-version: 3.1.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- go.mod | 2 +- go.sum | 4 ++-- .../github.com/urfave/cli-altsrc/v3/altsrc.go | 18 ++++++++++++++++++ vendor/modules.txt | 2 +- 4 files changed, 22 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index 1807ce41a..2a2c047aa 100644 --- a/go.mod +++ b/go.mod @@ -15,7 +15,7 @@ require ( github.com/pelletier/go-toml v1.9.5 github.com/sirupsen/logrus v1.9.3 github.com/stretchr/testify v1.11.1 - github.com/urfave/cli-altsrc/v3 v3.0.1 + github.com/urfave/cli-altsrc/v3 v3.1.0 github.com/urfave/cli/v3 v3.4.1 golang.org/x/mod v0.28.0 golang.org/x/sys v0.36.0 diff --git a/go.sum b/go.sum index f8c2bcad7..762ec7827 100644 --- a/go.sum +++ b/go.sum @@ -66,8 +66,8 @@ github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635 h1:kdXcSzyDtseVEc4yCz2qF8ZrQvIDBJLl4S1c3GCXmoI= github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635/go.mod h1:hkRG7XYTFWNJGYcbNJQlaLq0fg1yr4J4t/NcTQtrfww= github.com/urfave/cli v1.19.1/go.mod h1:70zkFmudgCuE/ngEzBv17Jvp/497gISqfk5gWijbERA= -github.com/urfave/cli-altsrc/v3 v3.0.1 h1:v+gHk59syLk8ao9rYybZs43+D5ut/gzj0omqQ1XYl8k= -github.com/urfave/cli-altsrc/v3 v3.0.1/go.mod h1:8UtsKKcxFVzvaoySFPfvQOk413T+IXJhaCWyyoPW3yM= +github.com/urfave/cli-altsrc/v3 v3.1.0 h1:6E5+kXeAWmRxXlPgdEVf9VqVoTJ2MJci0UMpUi/w/bA= +github.com/urfave/cli-altsrc/v3 v3.1.0/go.mod h1:VcWVTGXcL3nrXUDJZagHAeUX702La3PKeWav7KpISqA= github.com/urfave/cli/v3 v3.4.1 h1:1M9UOCy5bLmGnuu1yn3t3CB4rG79Rtoxuv1sPhnm6qM= github.com/urfave/cli/v3 v3.4.1/go.mod h1:FJSKtM/9AiiTOJL4fJ6TbMUkxBXn7GO9guZqoZtpYpo= github.com/xeipuuv/gojsonpointer v0.0.0-20180127040702-4e3ac2762d5f/go.mod h1:N2zxlSyiKSe5eX1tZViRH5QA0qijqEDrYZiPEAiq3wU= diff --git a/vendor/github.com/urfave/cli-altsrc/v3/altsrc.go b/vendor/github.com/urfave/cli-altsrc/v3/altsrc.go index 3482e8067..982252932 100644 --- a/vendor/github.com/urfave/cli-altsrc/v3/altsrc.go +++ b/vendor/github.com/urfave/cli-altsrc/v3/altsrc.go @@ -4,6 +4,7 @@ import ( "errors" "fmt" "os" + "reflect" "runtime" "strings" ) @@ -115,6 +116,23 @@ type ValueSource struct { func (vs *ValueSource) Lookup() (string, bool) { maafsc := NewMapAnyAnyURISourceCache(vs.sourcer.SourceURI(), vs.um) if v, ok := NestedVal(vs.key, maafsc.Get()); ok { + // Use reflection to check if 'v' is a slice + if val := reflect.ValueOf(v); val.Kind() == reflect.Slice { + // It's a slice, so create a new string slice of the same size + stringSlice := make([]string, val.Len()) + + // Iterate over the slice elements + for i := 0; i < val.Len(); i++ { + // Get the element at index i and convert it to a string + elem := val.Index(i).Interface() + stringSlice[i] = fmt.Sprintf("%v", elem) + } + + // Join the string representations and return + return strings.Join(stringSlice, ","), true + } + + // Fall back to standard string representation if not a slice return fmt.Sprintf("%[1]v", v), ok } diff --git a/vendor/modules.txt b/vendor/modules.txt index e3ec79553..9b16b5684 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -79,7 +79,7 @@ github.com/stretchr/testify/require # github.com/syndtr/gocapability v0.0.0-20200815063812-42c35b437635 ## explicit github.com/syndtr/gocapability/capability -# github.com/urfave/cli-altsrc/v3 v3.0.1 +# github.com/urfave/cli-altsrc/v3 v3.1.0 ## explicit; go 1.23.2 github.com/urfave/cli-altsrc/v3 # github.com/urfave/cli/v3 v3.4.1