Skip to content

Commit ed327ae

Browse files
committed
Migrate to go.yaml.in/yaml/v3
1 parent a40d93b commit ed327ae

18 files changed

Lines changed: 20 additions & 18 deletions

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ require (
1313
github.com/gowebpki/jcs v1.0.1
1414
github.com/lestrrat-go/jwx/v2 v2.1.6
1515
github.com/oleiade/reflections v1.1.0
16-
gopkg.in/yaml.v3 v3.0.1
16+
go.yaml.in/yaml/v3 v3.0.4
1717
gotest.tools/v3 v3.5.2
1818
)
1919

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/
4343
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
4444
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
4545
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
46+
go.yaml.in/yaml/v3 v3.0.4 h1:tfq32ie2Jv2UxXFdLJdh3jXuOzWiL1fo0bu/FbuKpbc=
47+
go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
4648
golang.org/x/crypto v0.35.0 h1:b15kiHdrGCHrP6LvwaQ3c03kgNhhiMgvlhxHQhmg2Xs=
4749
golang.org/x/crypto v0.35.0/go.mod h1:dy7dXNW32cAb/6/PRuTNsix8T+vJAqvuIy5Bli/x0YQ=
4850
golang.org/x/sys v0.31.0 h1:ioabZlmFYtWhL+TRYpcnNlLwhyxaM9kWTDEmfnprqik=

ordered/map.go

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

99
"github.com/google/go-cmp/cmp"
10-
"gopkg.in/yaml.v3"
10+
"go.yaml.in/yaml/v3"
1111
)
1212

1313
var _ interface {

ordered/map_test.go

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

77
"github.com/google/go-cmp/cmp"
8-
"gopkg.in/yaml.v3"
8+
"go.yaml.in/yaml/v3"
99
)
1010

1111
func TestMapGet(t *testing.T) {

ordered/unmarshal.go

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

99
"github.com/buildkite/go-pipeline/warning"
1010

11-
"gopkg.in/yaml.v3"
11+
"go.yaml.in/yaml/v3"
1212
)
1313

1414
// Errors that can be returned by Unmarshal

ordered/unmarshal_test.go

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

77
"github.com/buildkite/go-pipeline/warning"
88
"github.com/google/go-cmp/cmp"
9-
"gopkg.in/yaml.v3"
9+
"go.yaml.in/yaml/v3"
1010
)
1111

1212
var (

ordered/yaml.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package ordered
33
import (
44
"fmt"
55

6-
"gopkg.in/yaml.v3"
6+
"go.yaml.in/yaml/v3"
77
)
88

99
// DecodeYAML recursively unmarshals n into a generic type (any, []any, or
@@ -135,7 +135,7 @@ func rangeYAMLMapImpl(merged map[*yaml.Node]bool, n *yaml.Node, f func(key strin
135135

136136
switch n.Kind {
137137
case yaml.MappingNode:
138-
// gopkg.in/yaml.v3 parses mapping node contents as a flat list:
138+
// go.yaml.in/yaml/v3 parses mapping node contents as a flat list:
139139
// key, value, key, value...
140140
if len(n.Content)%2 != 0 {
141141
return fmt.Errorf("line %d, col %d: mapping node has odd content length %d", n.Line, n.Column, len(n.Content))

parser.go

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

99
"github.com/buildkite/go-pipeline/ordered"
10-
"gopkg.in/yaml.v3"
10+
"go.yaml.in/yaml/v3"
1111
)
1212

1313
// Options are functional options for creating a new Env.

parser_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import (
1212
"github.com/buildkite/go-pipeline/ordered"
1313
"github.com/buildkite/go-pipeline/warning"
1414
"github.com/google/go-cmp/cmp"
15-
"gopkg.in/yaml.v3"
15+
"go.yaml.in/yaml/v3"
1616
)
1717

1818
func ptr[T any](x T) *T { return &x }

pipeline_secrets_test.go

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

66
"github.com/buildkite/go-pipeline/ordered"
77
"github.com/google/go-cmp/cmp"
8-
"gopkg.in/yaml.v3"
8+
"go.yaml.in/yaml/v3"
99
)
1010

1111
func TestPipelineSecretsUnmarshal(t *testing.T) {

0 commit comments

Comments
 (0)