Skip to content

Commit

Permalink
Update to use yaml.v3 module
Browse files Browse the repository at this point in the history
This update replaces `yaml.v2` with `yaml.v3`. While the change does not
directly impact blackbox_exporter functionality, `yaml.v3` provides
improved features, better YAML 1.2 compliance, and security
enhancements. Upgrading ensures the project stays aligned with best
practices and benefits from the latest module improvements.

Signed-off-by: Mikel Olasagasti Uranga <[email protected]>
  • Loading branch information
mikelolasagasti committed Jan 1, 2025
1 parent 7d61fee commit 54bb996
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ require (
github.com/prometheus/exporter-toolkit v0.13.2
golang.org/x/net v0.33.0
google.golang.org/grpc v1.69.2
gopkg.in/yaml.v2 v2.4.0
gopkg.in/yaml.v3 v3.0.1
)

Expand All @@ -38,4 +37,5 @@ require (
golang.org/x/tools v0.22.0 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20241015192408-796eee8c2d53 // indirect
google.golang.org/protobuf v1.35.2 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)
2 changes: 1 addition & 1 deletion prober/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/prometheus/common/expfmt"
"github.com/prometheus/common/promslog"
"gopkg.in/yaml.v2"
"gopkg.in/yaml.v3"
)

var (
Expand Down

0 comments on commit 54bb996

Please sign in to comment.