Skip to content

Commit f034ec0

Browse files
authored
Merge pull request #264 from aojea/yaml
use our own fork of go-yaml
2 parents 15fac42 + 83ecba2 commit f034ec0

File tree

9 files changed

+11
-12
lines changed

9 files changed

+11
-12
lines changed

fieldpath/fromvalue_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ package fieldpath
1919
import (
2020
"testing"
2121

22-
"gopkg.in/yaml.v2"
2322
"sigs.k8s.io/structured-merge-diff/v4/value"
23+
yaml "sigs.k8s.io/yaml/goyaml.v2"
2424
)
2525

2626
func TestFromValue(t *testing.T) {

fieldpath/set_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import (
2222
"math/rand"
2323
"testing"
2424

25-
"gopkg.in/yaml.v2"
2625
"sigs.k8s.io/structured-merge-diff/v4/schema"
26+
yaml "sigs.k8s.io/yaml/goyaml.v2"
2727
)
2828

2929
type randomPathAlphabet []PathElement

go.mod

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
module sigs.k8s.io/structured-merge-diff/v4
22

3-
require gopkg.in/yaml.v2 v2.2.8
4-
53
require (
6-
github.com/google/go-cmp v0.5.9 // indirect
4+
github.com/google/go-cmp v0.5.9
75
github.com/google/gofuzz v1.0.0
86
github.com/json-iterator/go v1.1.12
97
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
8+
sigs.k8s.io/yaml v1.4.0
109
)
1110

1211
go 1.13

go.sum

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0
1919
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
2020
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
2121
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
22-
gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10=
23-
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
22+
sigs.k8s.io/yaml v1.4.0 h1:Mk1wCc2gy/F0THH0TAp1QYyJNzRm2KCLy3o5ASXVI5E=
23+
sigs.k8s.io/yaml v1.4.0/go.mod h1:Ejl7/uTz7PSA4eKMyQCUTnhZYNmLIl+5c2lQPGR2BPY=

merge/multiple_appliers_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ import (
2222
"strings"
2323
"testing"
2424

25-
"gopkg.in/yaml.v2"
2625
"sigs.k8s.io/structured-merge-diff/v4/fieldpath"
2726
. "sigs.k8s.io/structured-merge-diff/v4/internal/fixture"
2827
"sigs.k8s.io/structured-merge-diff/v4/merge"
2928
"sigs.k8s.io/structured-merge-diff/v4/typed"
3029
"sigs.k8s.io/structured-merge-diff/v4/value"
30+
yaml "sigs.k8s.io/yaml/goyaml.v2"
3131
)
3232

3333
func TestMultipleAppliersSet(t *testing.T) {

typed/parser.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ package typed
1919
import (
2020
"fmt"
2121

22-
yaml "gopkg.in/yaml.v2"
2322
"sigs.k8s.io/structured-merge-diff/v4/schema"
2423
"sigs.k8s.io/structured-merge-diff/v4/value"
24+
yaml "sigs.k8s.io/yaml/goyaml.v2"
2525
)
2626

2727
// YAMLObject is an object encoded in YAML.

typed/parser_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ import (
2222
"strings"
2323
"testing"
2424

25-
yaml "gopkg.in/yaml.v2"
2625
"sigs.k8s.io/structured-merge-diff/v4/typed"
26+
yaml "sigs.k8s.io/yaml/goyaml.v2"
2727
)
2828

2929
func testdata(file string) string {

value/equals_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import (
2121
"path/filepath"
2222
"testing"
2323

24-
"gopkg.in/yaml.v2"
2524
"sigs.k8s.io/structured-merge-diff/v4/value"
25+
yaml "sigs.k8s.io/yaml/goyaml.v2"
2626
)
2727

2828
func testdata(file string) string {

value/value.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"strings"
2424

2525
jsoniter "github.com/json-iterator/go"
26-
"gopkg.in/yaml.v2"
26+
yaml "sigs.k8s.io/yaml/goyaml.v2"
2727
)
2828

2929
var (

0 commit comments

Comments
 (0)