Skip to content
Myr

Update gopkg.in/yaml.v2 to gopkg.in/yaml.v3 (#1766)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

API v3 was released in 2019 [1]. Update from the v2 API, no changes to the packages's use needed and no breaking changes expected. [1] https://ubuntu.com/blog/api-v3-of-the-yaml-package-for-go-is-available

authored by Tobias Klauser · committed by GitHub · parent f911c0b · Browse files · 3 files+4 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+4 added−4 removed

  • other:+4 added−4 removed

3 files+4 added−4 removed

modified:doc/yaml_docs.go+1 added-1 removed
21 unmodified lines
22 "strings"2324 "github.com/spf13/cobra"25 "github.com/spf13/pflag"26 "gopkg.in/yaml.v2"26 "gopkg.in/yaml.v3"27)2829type cmdOption struct {30 Name string
144 unmodified lines
modified:go.mod+1 added-1 removed
4 unmodified lines
5require (6 github.com/cpuguy83/go-md2man/v2 v2.0.27 github.com/inconshreveable/mousetrap v1.0.18 github.com/spf13/pflag v1.0.59 gopkg.in/yaml.v2 v2.4.09 gopkg.in/yaml.v3 v3.0.110)
modified:go.sum+2 added-2 removed
6 unmodified lines
7github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=8github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=9gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=10gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=11gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=12gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=11gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=12gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=