Skip to content

Commit

Permalink
switch to gopkg.in/yaml.v3
Browse files Browse the repository at this point in the history
Looks like most other projects switched over to v3, so let's follow suit.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Dec 1, 2023
1 parent d5a1cf6 commit f343ae8
Show file tree
Hide file tree
Showing 25 changed files with 2,546 additions and 1,082 deletions.
2 changes: 1 addition & 1 deletion configuration/configuration_test.go
Expand Up @@ -10,7 +10,7 @@ import (
"time"

"gopkg.in/check.v1"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
)

// Hook up gocheck into the "go test" runner
Expand Down
2 changes: 1 addition & 1 deletion configuration/parser.go
Expand Up @@ -9,7 +9,7 @@ import (
"strings"

"github.com/sirupsen/logrus"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
)

// Version is a major/minor version pair of the form Major.Minor
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Expand Up @@ -31,7 +31,7 @@ require (
golang.org/x/oauth2 v0.7.0
google.golang.org/api v0.114.0
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v3 v3.0.1
)

require (
Expand Down
2 changes: 1 addition & 1 deletion registry/registry_test.go
Expand Up @@ -28,7 +28,7 @@ import (
"github.com/distribution/distribution/v3/internal/dcontext"
_ "github.com/distribution/distribution/v3/registry/storage/driver/inmemory"
"github.com/sirupsen/logrus"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
)

// Tests to ensure nextProtos returns the correct protocols when:
Expand Down
17 changes: 0 additions & 17 deletions vendor/gopkg.in/yaml.v2/.travis.yml

This file was deleted.

201 changes: 0 additions & 201 deletions vendor/gopkg.in/yaml.v2/LICENSE

This file was deleted.

0 comments on commit f343ae8

Please sign in to comment.