Skip to content

Commit 1ff6fe7

Browse files
Use yaml.v3 to drop yaml.v2 direct dependency
Signed-off-by: Mikel Olasagasti Uranga <[email protected]>
1 parent 1bed786 commit 1ff6fe7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ require (
1414
github.com/prometheus/exporter-toolkit v0.11.0
1515
golang.org/x/net v0.27.0
1616
google.golang.org/grpc v1.65.0
17-
gopkg.in/yaml.v2 v2.4.0
1817
gopkg.in/yaml.v3 v3.0.1
1918
)
2019

@@ -37,4 +36,5 @@ require (
3736
golang.org/x/tools v0.22.0 // indirect
3837
google.golang.org/genproto/googleapis/rpc v0.0.0-20240528184218-531527333157 // indirect
3938
google.golang.org/protobuf v1.34.2 // indirect
39+
gopkg.in/yaml.v2 v2.4.0 // indirect
4040
)

prober/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
"github.com/prometheus/client_golang/prometheus"
3030
"github.com/prometheus/client_golang/prometheus/promhttp"
3131
"github.com/prometheus/common/expfmt"
32-
"gopkg.in/yaml.v2"
32+
"gopkg.in/yaml.v3"
3333
)
3434

3535
var (

0 commit comments

Comments
 (0)