Skip to content

Commit 08d7f66

Browse files
authored
Move to supported version of yaml parser (#834)
Signed-off-by: Davanum Srinivas <[email protected]>
1 parent 80e275e commit 08d7f66

File tree

9 files changed

+10
-10
lines changed

9 files changed

+10
-10
lines changed

config/config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"testing"
2222

2323
"github.com/stretchr/testify/require"
24-
"gopkg.in/yaml.v2"
24+
"go.yaml.in/yaml/v2"
2525
)
2626

2727
func TestJSONMarshalSecret(t *testing.T) {

config/http_config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ import (
3232
"time"
3333

3434
conntrack "github.com/mwitkow/go-conntrack"
35+
"go.yaml.in/yaml/v2"
3536
"golang.org/x/net/http/httpproxy"
3637
"golang.org/x/net/http2"
3738
"golang.org/x/oauth2"
3839
"golang.org/x/oauth2/clientcredentials"
39-
"gopkg.in/yaml.v2"
4040
)
4141

4242
var (

config/http_config_test.go

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

3737
"github.com/stretchr/testify/require"
3838
"go.uber.org/atomic"
39-
"gopkg.in/yaml.v2"
39+
"go.yaml.in/yaml/v2"
4040
)
4141

4242
const (

config/tls_config_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
"testing"
2727

2828
"github.com/stretchr/testify/require"
29-
"gopkg.in/yaml.v2"
29+
"go.yaml.in/yaml/v2"
3030
)
3131

3232
// LoadTLSConfig parses the given file into a tls.Config.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ require (
1313
github.com/prometheus/client_model v0.6.2
1414
github.com/stretchr/testify v1.11.1
1515
go.uber.org/atomic v1.11.0
16+
go.yaml.in/yaml/v2 v2.4.2
1617
golang.org/x/net v0.43.0
1718
golang.org/x/oauth2 v0.30.0
1819
google.golang.org/protobuf v1.36.8
19-
gopkg.in/yaml.v2 v2.4.0
2020
)
2121

2222
require (

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ github.com/xhit/go-str2duration/v2 v2.1.0 h1:lxklc02Drh6ynqX+DdPyp5pCKLUQpRT8bp8
4545
github.com/xhit/go-str2duration/v2 v2.1.0/go.mod h1:ohY8p+0f07DiV6Em5LKB0s2YpLtXVyJfNt1+BlmyAsU=
4646
go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE=
4747
go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0=
48+
go.yaml.in/yaml/v2 v2.4.2 h1:DzmwEr2rDGHl7lsFgAHxmNz/1NlQ7xLIrlN2h5d1eGI=
49+
go.yaml.in/yaml/v2 v2.4.2/go.mod h1:081UH+NErpNdqlCXm3TtEran0rJZGxAYx9hb/ELlsPU=
4850
golang.org/x/net v0.43.0 h1:lat02VYK2j4aLzMzecihNvTlJNQUq316m2Mr9rnM6YE=
4951
golang.org/x/net v0.43.0/go.mod h1:vhO1fvI4dGsIjh73sWfUVjj3N7CA9WkKJNQm2svM6Jg=
5052
golang.org/x/oauth2 v0.30.0 h1:dnDm7JmhM45NNpd8FDDeLhK6FwqbOf4MLCM9zb1BOHI=
@@ -59,7 +61,5 @@ gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8
5961
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
6062
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
6163
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
62-
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
63-
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
6464
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
6565
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

model/metric.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import (
2424
"unicode/utf8"
2525

2626
dto "github.com/prometheus/client_model/go"
27+
"go.yaml.in/yaml/v2"
2728
"google.golang.org/protobuf/proto"
28-
"gopkg.in/yaml.v2"
2929
)
3030

3131
var (

model/metric_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import (
2424
"github.com/google/go-cmp/cmp/cmpopts"
2525
dto "github.com/prometheus/client_model/go"
2626
"github.com/stretchr/testify/require"
27+
"go.yaml.in/yaml/v2"
2728
"google.golang.org/protobuf/proto"
28-
"gopkg.in/yaml.v2"
2929
)
3030

3131
func testMetric(t testing.TB) {

promslog/slog_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
"time"
2525

2626
"github.com/stretchr/testify/require"
27-
"gopkg.in/yaml.v2"
27+
"go.yaml.in/yaml/v2"
2828
)
2929

3030
var (

0 commit comments

Comments
 (0)