Skip to content

Commit 8c91341

Browse files
committed
vendor: github.com/spf13/cobra v1.10.2, migrate to go.yaml.in/yaml/v3
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 1a1a4fc commit 8c91341

File tree

27 files changed

+11629
-16
lines changed

27 files changed

+11629
-16
lines changed

.golangci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ linters:
9494
desc: Use github.com/google/uuid instead.
9595
- pkg: "io/ioutil"
9696
desc: The io/ioutil package has been deprecated, see https://go.dev/doc/go1.16#ioutil
97+
- pkg: "gopkg.in/yaml.v3"
98+
desc: Use go.yaml.in/yaml/v3 instead.
9799

98100
forbidigo:
99101
forbid:

cli/command/stack/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
composeLoader "github.com/docker/cli/cli/compose/loader"
1010
composetypes "github.com/docker/cli/cli/compose/types"
1111
"github.com/spf13/cobra"
12-
"gopkg.in/yaml.v3"
12+
"go.yaml.in/yaml/v3"
1313
)
1414

1515
// configOptions holds docker stack config options

cli/compose/loader/loader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
"github.com/moby/moby/api/types/network"
2929
"github.com/moby/moby/client/pkg/versions"
3030
"github.com/sirupsen/logrus"
31-
"gopkg.in/yaml.v3"
31+
"go.yaml.in/yaml/v3"
3232
)
3333

3434
// Options supported by Load

cli/compose/loader/loader_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ func TestInvalidTopLevelObjectType(t *testing.T) {
333333

334334
func TestNonStringKeys(t *testing.T) {
335335
// FIXME(thaJeztah): opkg.in/yaml.v3, which always unmarshals to a map[string]any, so we cannot produce a customized error for invalid types.
336-
t.Skip("not supported by gopkg.in/yaml.v3, which always unmarshals to a map[string]any")
336+
t.Skip("not supported by go.yaml.in/yaml/v3, which always unmarshals to a map[string]any")
337337
_, err := loadYAML(`
338338
version: "3"
339339
123:

cli/compose/loader/types_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"os"
77
"testing"
88

9-
"gopkg.in/yaml.v3"
9+
"go.yaml.in/yaml/v3"
1010
"gotest.tools/v3/assert"
1111
"gotest.tools/v3/golden"
1212
)

vendor.mod

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ require (
4343
github.com/opencontainers/image-spec v1.1.1
4444
github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c
4545
github.com/sirupsen/logrus v1.9.3
46-
github.com/spf13/cobra v1.10.1
46+
github.com/spf13/cobra v1.10.2
4747
github.com/spf13/pflag v1.0.10
4848
github.com/tonistiigi/go-rosetta v0.0.0-20220804170347-3f4430f2d346
4949
github.com/xeipuuv/gojsonschema v1.2.0
@@ -55,11 +55,11 @@ require (
5555
go.opentelemetry.io/otel/sdk v1.38.0
5656
go.opentelemetry.io/otel/sdk/metric v1.38.0
5757
go.opentelemetry.io/otel/trace v1.38.0
58+
go.yaml.in/yaml/v3 v3.0.4
5859
golang.org/x/sync v0.18.0
5960
golang.org/x/sys v0.38.0
6061
golang.org/x/term v0.37.0
6162
golang.org/x/text v0.31.0
62-
gopkg.in/yaml.v3 v3.0.1
6363
gotest.tools/v3 v3.5.2
6464
tags.cncf.io/container-device-interface v1.0.1
6565
)
@@ -104,4 +104,5 @@ require (
104104
google.golang.org/genproto/googleapis/rpc v0.0.0-20250825161204-c5933d9347a5 // indirect
105105
google.golang.org/grpc v1.75.0 // indirect
106106
google.golang.org/protobuf v1.36.9 // indirect
107+
gopkg.in/yaml.v3 v3.0.1 // indirect
107108
)

vendor.sum

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQD
180180
github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
181181
github.com/sirupsen/logrus v1.9.3 h1:dueUQJ1C2q9oE3F7wvmSGAaVtTmUizReu6fjN8uqzbQ=
182182
github.com/sirupsen/logrus v1.9.3/go.mod h1:naHLuLoDiP4jHNo9R0sCBMtWGeIprob74mVsIT4qYEQ=
183-
github.com/spf13/cobra v1.10.1 h1:lJeBwCfmrnXthfAupyUTzJ/J4Nc1RsHC/mSRU2dll/s=
184-
github.com/spf13/cobra v1.10.1/go.mod h1:7SmJGaTHFVBY0jW4NXGluQoLvhqFQM+6XSKD+P4XaB0=
183+
github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU=
184+
github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4=
185185
github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
186186
github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk=
187187
github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
@@ -229,6 +229,8 @@ go.opentelemetry.io/proto/otlp v1.7.1 h1:gTOMpGDb0WTBOP8JaO72iL3auEZhVmAQg4ipjOV
229229
go.opentelemetry.io/proto/otlp v1.7.1/go.mod h1:b2rVh6rfI/s2pHWNlB7ILJcRALpcNDzKhACevjI+ZnE=
230230
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
231231
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
232+
go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc=
233+
go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
232234
golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
233235
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
234236
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=

vendor/github.com/spf13/cobra/.golangci.yml

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

vendor/github.com/spf13/cobra/command.go

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

vendor/github.com/spf13/cobra/doc/yaml_docs.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)