Skip to content

Commit

Permalink
refactor: replace github.com/ghodss/yaml with sigs.k8s.io/yaml (#…
Browse files Browse the repository at this point in the history
…7127)

At the time of making this commit, the package `github.com/ghodss/yaml`
is no longer actively maintained.

`sigs.k8s.io/yaml` is a permanent fork of `ghodss/yaml` and is actively
maintained by Kubernetes SIG.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
  • Loading branch information
Juneezee authored Mar 6, 2023
1 parent 9e75d26 commit 7a79a08
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion development/tools/jobs/tester/tester.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"os"
"testing"

"github.com/ghodss/yaml"
"github.com/kyma-project/test-infra/development/tools/jobs/releases"
"github.com/kyma-project/test-infra/development/tools/jobs/tester/preset"
"github.com/pkg/errors"
Expand All @@ -15,6 +14,7 @@ import (
v1 "k8s.io/api/core/v1"
prowapi "k8s.io/test-infra/prow/apis/prowjobs/v1"
"k8s.io/test-infra/prow/config"
"sigs.k8s.io/yaml"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion development/tools/jobs/testinfra/branchprotector_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"os"
"testing"

"github.com/ghodss/yaml"
"github.com/kyma-project/test-infra/development/tools/jobs/releases"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"k8s.io/test-infra/prow/config"
"sigs.k8s.io/yaml"
)

func TestBranchProtection(t *testing.T) {
Expand Down
1 change: 0 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ require (
github.com/containerd/typeurl v1.0.2
github.com/forestgiant/sliceutil v0.0.0-20160425183142-94783f95db6c
github.com/fsouza/go-dockerclient v1.9.5
github.com/ghodss/yaml v1.0.0
github.com/go-playground/validator/v10 v10.11.2
github.com/go-yaml/yaml v2.1.0+incompatible
github.com/google/go-containerregistry v0.13.0
Expand Down
1 change: 0 additions & 1 deletion go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,6 @@ github.com/fvbommel/sortorder v1.0.1/go.mod h1:uk88iVf1ovNn1iLfgUVU2F9o5eO30ui72
github.com/garyburd/redigo v0.0.0-20150301180006-535138d7bcd7/go.mod h1:NR3MbYisc3/PwhQ00EMzDiPmrwpPxAn5GI05/YaO1SY=
github.com/getkin/kin-openapi v0.76.0/go.mod h1:660oXbgy5JFMKreazJaQTw7o+X00qeSyhcnluiMv+Xg=
github.com/ghodss/yaml v0.0.0-20150909031657-73d445a93680/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=
github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
github.com/gitleaks/go-gitdiff v0.8.0 h1:7aExTZm+K/M/EQKOyYcub8rIAdWK6ONxPGuRzxmWW+0=
github.com/gitleaks/go-gitdiff v0.8.0/go.mod h1:pKz0X4YzCKZs30BL+weqBIG7mx0jl4tF1uXV9ZyNvrA=
Expand Down

0 comments on commit 7a79a08

Please sign in to comment.