Skip to content

Commit c92cc3c

Browse files
hsinn0taylorsilva
andauthored
Migrate from unmaintained gopkg.in/yaml.v3 to go.yaml.in/yaml/v3 (#132)
* Migrate from unmaintained gopkg.in/yaml.v3 to go.yaml.in/yaml/v3 Signed-off-by: Taylor Silva <dev@taydev.net> * fix: "gopkg.in/yaml.v3" still used - Removed the remaining use of the package. --------- Signed-off-by: Taylor Silva <dev@taydev.net> Co-authored-by: Taylor Silva <dev@taydev.net>
1 parent 99ffa2c commit c92cc3c

24 files changed

+7
-11511
lines changed

commands/delete.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"os"
66

77
"code.cloudfoundry.org/credhub-cli/errors"
8-
"gopkg.in/yaml.v3"
8+
"go.yaml.in/yaml/v3"
99
)
1010

1111
type DeleteCommand struct {

commands/helpers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"code.cloudfoundry.org/credhub-cli/credhub"
1212
"code.cloudfoundry.org/credhub-cli/credhub/auth"
1313
"code.cloudfoundry.org/credhub-cli/errors"
14-
"gopkg.in/yaml.v3"
14+
"go.yaml.in/yaml/v3"
1515
)
1616

1717
func initializeCredhubClient(cfg config.Config) (*credhub.CredHub, error) {

credhub/credentials/types_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@ package credentials_test
33
import (
44
"encoding/json"
55

6-
"gopkg.in/yaml.v3"
7-
86
. "code.cloudfoundry.org/credhub-cli/credhub/credentials"
9-
107
"code.cloudfoundry.org/credhub-cli/credhub/credentials/values"
118
. "github.com/onsi/ginkgo/v2"
129
. "github.com/onsi/gomega"
10+
"go.yaml.in/yaml/v3"
1311
)
1412

1513
var _ = Describe("Types", func() {

go.mod

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ require (
1212
github.com/jessevdk/go-flags v1.6.1
1313
github.com/onsi/ginkgo/v2 v2.28.1
1414
github.com/onsi/gomega v1.39.1
15+
go.yaml.in/yaml/v3 v3.0.4
1516
golang.org/x/net v0.49.0
1617
golang.org/x/term v0.39.0
17-
gopkg.in/yaml.v3 v3.0.1
1818
)
1919

2020
require (
@@ -29,7 +29,6 @@ require (
2929
github.com/mattn/go-colorable v0.1.14 // indirect
3030
github.com/mattn/go-isatty v0.0.20 // indirect
3131
github.com/nxadm/tail v1.4.11 // indirect
32-
go.yaml.in/yaml/v3 v3.0.4 // indirect
3332
golang.org/x/crypto v0.47.0 // indirect
3433
golang.org/x/mod v0.32.0 // indirect
3534
golang.org/x/sync v0.19.0 // indirect

models/credential_bulk_export.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"encoding/json"
55

66
"code.cloudfoundry.org/credhub-cli/credhub/credentials"
7-
"gopkg.in/yaml.v3"
7+
"go.yaml.in/yaml/v3"
88
)
99

1010
type exportCredential struct {

models/credential_bulk_export_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
. "github.com/onsi/ginkgo/v2"
1010
. "github.com/onsi/gomega"
11-
"gopkg.in/yaml.v3"
11+
"go.yaml.in/yaml/v3"
1212
)
1313

1414
var _ = Describe("ExportCredentials", func() {

models/credential_bulk_import.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"os"
66
"strings"
77

8-
"gopkg.in/yaml.v3"
8+
"go.yaml.in/yaml/v3"
99

1010
"strconv"
1111

vendor/gopkg.in/yaml.v3/LICENSE

Lines changed: 0 additions & 50 deletions
This file was deleted.

vendor/gopkg.in/yaml.v3/NOTICE

Lines changed: 0 additions & 13 deletions
This file was deleted.

vendor/gopkg.in/yaml.v3/README.md

Lines changed: 0 additions & 150 deletions
This file was deleted.

0 commit comments

Comments
 (0)