Skip to content

Commit

Permalink
chore: Replace ghodss/yaml with sigs.k8s.io/yaml (#858)
Browse files Browse the repository at this point in the history
This is a fork that is maintained by the kubernetes community.

https://github.com/kubernetes-sigs/yaml
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
  • Loading branch information
mrueg committed Sep 1, 2023
1 parent a6b1eea commit 97b393e
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ linter-settings:
linters:
disable-all: true
enable:
- deadcode
- errcheck
- goconst
- gofmt
Expand All @@ -20,10 +19,8 @@ linters:
- predeclared
- revive
- staticcheck
- structcheck
- typecheck
- unconvert
- unparam
- unused
- varcheck
- wastedassign
3 changes: 1 addition & 2 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ require (
github.com/basgys/goxml2json v1.1.0
github.com/bufbuild/protocompile v0.5.1
github.com/cpuguy83/dockercfg v0.3.1
github.com/ghodss/yaml v1.0.0
github.com/go-akka/configuration v0.0.0-20200606091224-a002c0330665
github.com/go-ini/ini v1.67.0
github.com/google/go-cmp v0.5.9
Expand All @@ -36,6 +35,7 @@ require (
muzzammil.xyz/jsonc v1.0.0
olympos.io/encoding/edn v0.0.0-20201019073823-d3554ca0b0a3
oras.land/oras-go/v2 v2.3.0
sigs.k8s.io/yaml v1.3.0
)

require (
Expand Down Expand Up @@ -125,5 +125,4 @@ require (
gopkg.in/ini.v1 v1.66.2 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
sigs.k8s.io/yaml v1.3.0 // indirect
)
1 change: 0 additions & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,6 @@ github.com/foxcpp/go-mockdns v1.0.0 h1:7jBqxd3WDWwi/6WhDvacvH1XsN3rOLXyHM1uhvIx6
github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
github.com/fsnotify/fsnotify v1.6.0 h1:n+5WquG0fcWoWp6xPWfHdbskMCQaFnG6PfBrh1Ky4HY=
github.com/fsnotify/fsnotify v1.6.0/go.mod h1:sl3t1tCWJFWoRz9R8WJCbQihKKwmorjAbSClcnxKAGw=
github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
github.com/go-akka/configuration v0.0.0-20200606091224-a002c0330665 h1:Iz3aEheYgn+//VX7VisgCmF/wW3BMtXCLbvHV4jMQJA=
github.com/go-akka/configuration v0.0.0-20200606091224-a002c0330665/go.mod h1:19bUnum2ZAeftfwwLZ/wRe7idyfoW2MfmXO464Hrfbw=
Expand Down
2 changes: 1 addition & 1 deletion parser/yaml/yaml.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"fmt"

"github.com/ghodss/yaml"
"sigs.k8s.io/yaml"
)

// Parser is a YAML parser.
Expand Down
2 changes: 1 addition & 1 deletion plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"syscall"

"github.com/ghodss/yaml"
"sigs.k8s.io/yaml"
)

const (
Expand Down

0 comments on commit 97b393e

Please sign in to comment.