Skip to content

Commit 49021ad

Browse files
committed
vendor: github.com/spf13/cobra v1.10.2, migrate to go.yaml.in/yaml/v3
Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 1a1a4fc commit 49021ad

File tree

30 files changed

+449
-338
lines changed

30 files changed

+449
-338
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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ require (
1414
github.com/cpuguy83/go-md2man/v2 v2.0.7
1515
github.com/creack/pty v1.1.24
1616
github.com/distribution/reference v0.6.0
17-
github.com/docker/cli-docs-tool v0.10.0
17+
github.com/docker/cli-docs-tool v0.11.0
1818
github.com/docker/distribution v2.8.3+incompatible
1919
github.com/docker/docker-credential-helpers v0.9.4
2020
github.com/docker/go-connections v0.6.0
@@ -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
)

vendor.sum

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
3636
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
3737
github.com/distribution/reference v0.6.0 h1:0IXCQ5g4/QMHHkarYzh5l+u8T3t73zM5QvfrDyIgxBk=
3838
github.com/distribution/reference v0.6.0/go.mod h1:BbU0aIcezP1/5jX/8MP0YiH4SdvB5Y4f/wlDRiLyi3E=
39-
github.com/docker/cli-docs-tool v0.10.0 h1:bOD6mKynPQgojQi3s2jgcUWGp/Ebqy1SeCr9VfKQLLU=
40-
github.com/docker/cli-docs-tool v0.10.0/go.mod h1:5EM5zPnT2E7yCLERZmrDA234Vwn09fzRHP4aX1qwp1U=
39+
github.com/docker/cli-docs-tool v0.11.0 h1:7d8QARFb7QEobizqxmEM7fOteZEHwH/zWgHQtHZEcfE=
40+
github.com/docker/cli-docs-tool v0.11.0/go.mod h1:ma8BKiisUo8D6W05XEYIh3oa1UbgrZhi1nowyKFJa8Q=
4141
github.com/docker/distribution v2.8.3+incompatible h1:AtKxIZ36LoNK51+Z6RpzLpddBirtxJnzDrHLEKxTAYk=
4242
github.com/docker/distribution v2.8.3+incompatible/go.mod h1:J2gT2udsDAN96Uj4KfcMRqY0/ypR+oyYUYmja8H+y+w=
4343
github.com/docker/docker-credential-helpers v0.9.4 h1:76ItO69/AP/V4yT9V4uuuItG0B1N8hvt0T0c0NN/DzI=
@@ -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/docker/cli-docs-tool/Dockerfile

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

vendor/github.com/docker/cli-docs-tool/clidocstool_yaml.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.

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.

0 commit comments

Comments
 (0)