Skip to content

Commit 8900d8e

Browse files
Merge pull request #26984 from Luap99/pflag
update module github.com/spf13/pflag to v1.0.10
2 parents 9dd5fb2 + c250665 commit 8900d8e

File tree

9 files changed

+17
-14
lines changed

9 files changed

+17
-14
lines changed

cmd/podman/compose.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ func composeMain(cmd *cobra.Command, args []string) error {
254254
// after `podman compose [ARGS]` are passed to the compose provider.
255255
// For now, we only look for the --help flag.
256256
fs := pflag.NewFlagSet("args", pflag.ContinueOnError)
257-
fs.ParseErrorsWhitelist.UnknownFlags = true
257+
fs.ParseErrorsAllowlist.UnknownFlags = true
258258
fs.SetInterspersed(false)
259259
fs.BoolP("help", "h", false, "")
260260
if err := fs.Parse(args); err != nil {

cmd/podman/registry/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func containersConfModules() ([]string, error) {
7070

7171
var modules []string
7272
fs := pflag.NewFlagSet("module", pflag.ContinueOnError)
73-
fs.ParseErrorsWhitelist.UnknownFlags = true
73+
fs.ParseErrorsAllowlist.UnknownFlags = true
7474
fs.Usage = func() {}
7575
fs.SetInterspersed(false)
7676
fs.StringArrayVar(&modules, "module", nil, "")

cmd/podman/registry/remote.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func IsRemote() bool {
3636
remote = true
3737
}
3838
fs := pflag.NewFlagSet("remote", pflag.ContinueOnError)
39-
fs.ParseErrorsWhitelist.UnknownFlags = true
39+
fs.ParseErrorsAllowlist.UnknownFlags = true
4040
fs.Usage = func() {}
4141
fs.SetInterspersed(false)
4242
fs.BoolVarP(&remoteFromCLI.Value, "remote", "r", remote, "")

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ require (
6060
github.com/shirou/gopsutil/v4 v4.25.8
6161
github.com/sirupsen/logrus v1.9.3
6262
github.com/spf13/cobra v1.10.1
63-
github.com/spf13/pflag v1.0.9
63+
github.com/spf13/pflag v1.0.10
6464
github.com/stretchr/testify v1.11.1
6565
github.com/vbauerster/mpb/v8 v8.10.2
6666
github.com/vishvananda/netlink v1.3.1

go.sum

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,9 @@ github.com/smallstep/pkcs7 v0.1.1 h1:x+rPdt2W088V9Vkjho4KtoggyktZJlMduZAtRHm68LU
365365
github.com/smallstep/pkcs7 v0.1.1/go.mod h1:dL6j5AIz9GHjVEBTXtW+QliALcgM19RtXaTeyxI+AfA=
366366
github.com/spf13/cobra v1.10.1 h1:lJeBwCfmrnXthfAupyUTzJ/J4Nc1RsHC/mSRU2dll/s=
367367
github.com/spf13/cobra v1.10.1/go.mod h1:7SmJGaTHFVBY0jW4NXGluQoLvhqFQM+6XSKD+P4XaB0=
368-
github.com/spf13/pflag v1.0.9 h1:9exaQaMOCwffKiiiYk6/BndUBv+iRViNW+4lEMi0PvY=
369368
github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
369+
github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk=
370+
github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
370371
github.com/stefanberger/go-pkcs11uri v0.0.0-20230803200340-78284954bff6 h1:pnnLyeX7o/5aX8qUQ69P/mLojDqwda8hFOCBTmP/6hw=
371372
github.com/stefanberger/go-pkcs11uri v0.0.0-20230803200340-78284954bff6/go.mod h1:39R/xuhNgVhi+K0/zst4TLrJrVmbm6LVgl4A0+ZFS5M=
372373
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=

pkg/systemd/generate/containers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ func executeContainerTemplate(info *containerInfo, options entities.GenerateSyst
358358
remainingCmd := info.CreateCommand[index:]
359359
// Presence check for certain flags/options.
360360
fs := pflag.NewFlagSet("args", pflag.ContinueOnError)
361-
fs.ParseErrorsWhitelist.UnknownFlags = true
361+
fs.ParseErrorsAllowlist.UnknownFlags = true
362362
fs.Usage = func() {}
363363
fs.SetInterspersed(false)
364364
fs.BoolP("detach", "d", false, "")

pkg/systemd/generate/pods.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ func executePodTemplate(info *podInfo, options entities.GenerateSystemdOptions)
339339

340340
// Presence check for certain flags/options.
341341
fs := pflag.NewFlagSet("args", pflag.ContinueOnError)
342-
fs.ParseErrorsWhitelist.UnknownFlags = true
342+
fs.ParseErrorsAllowlist.UnknownFlags = true
343343
fs.Usage = func() {}
344344
fs.SetInterspersed(false)
345345
fs.String("name", "", "")

vendor/github.com/spf13/pflag/flag.go

Lines changed: 8 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,7 @@ github.com/smallstep/pkcs7/internal/legacy/x509
646646
# github.com/spf13/cobra v1.10.1
647647
## explicit; go 1.15
648648
github.com/spf13/cobra
649-
# github.com/spf13/pflag v1.0.9
649+
# github.com/spf13/pflag v1.0.10
650650
## explicit; go 1.12
651651
github.com/spf13/pflag
652652
# github.com/stefanberger/go-pkcs11uri v0.0.0-20230803200340-78284954bff6

0 commit comments

Comments
 (0)