Skip to content

Commit cf418f2

Browse files
fix(deps): update module gopkg.in/yaml.v2 to v3
1 parent 10fe590 commit cf418f2

File tree

7 files changed

+26
-98
lines changed

7 files changed

+26
-98
lines changed

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ require (
3232
go.uber.org/ratelimit v0.3.1
3333
golang.org/x/crypto v0.32.0
3434
golang.org/x/net v0.33.0
35-
gopkg.in/yaml.v2 v2.4.0
35+
gopkg.in/yaml.v3 v3.0.1
3636
gotest.tools v2.2.0+incompatible
3737
)
3838

@@ -96,7 +96,6 @@ require (
9696
go.opentelemetry.io/otel v1.29.0 // indirect
9797
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.28.0 // indirect
9898
go.opentelemetry.io/otel/metric v1.29.0 // indirect
99-
go.opentelemetry.io/otel/sdk v1.29.0 // indirect
10099
go.opentelemetry.io/otel/trace v1.29.0 // indirect
101100
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
102101
golang.org/x/mod v0.19.0 // indirect
@@ -106,6 +105,5 @@ require (
106105
golang.org/x/tools v0.23.0 // indirect
107106
google.golang.org/protobuf v1.36.1 // indirect
108107
gopkg.in/warnings.v0 v0.1.2 // indirect
109-
gopkg.in/yaml.v3 v3.0.1 // indirect
110108
howett.net/plist v1.0.0 // indirect
111109
)

go.sum

Lines changed: 20 additions & 90 deletions
Large diffs are not rendered by default.

internal/config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"github.com/sirupsen/logrus"
2323

2424
"go.uber.org/ratelimit"
25-
"gopkg.in/yaml.v2"
25+
"gopkg.in/yaml.v3"
2626
)
2727

2828
var (

internal/config/fetch.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"github.com/newrelic/nri-flex/internal/inputs"
1414
"github.com/newrelic/nri-flex/internal/load"
1515
"github.com/sirupsen/logrus"
16-
yaml "gopkg.in/yaml.v2"
16+
yaml "gopkg.in/yaml.v3"
1717
)
1818

1919
var lookupsRegex = regexp.MustCompile(`\${lookup\.([^:]+):([^}]+)}`)

internal/config/secrets.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"github.com/aws/aws-sdk-go/aws/session"
2222
"github.com/aws/aws-sdk-go/service/kms"
2323
"github.com/sirupsen/logrus"
24-
"gopkg.in/yaml.v2"
24+
"gopkg.in/yaml.v3"
2525

2626
"github.com/newrelic/nri-flex/internal/load"
2727
"github.com/newrelic/nri-flex/internal/utils"

internal/config/substitutions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import (
1818
"github.com/newrelic/nri-flex/internal/formatter"
1919
"github.com/newrelic/nri-flex/internal/load"
2020
"github.com/sirupsen/logrus"
21-
yaml "gopkg.in/yaml.v2"
21+
yaml "gopkg.in/yaml.v3"
2222
)
2323

2424
// SubLookupFileData substitutes data from lookup files into config

internal/discovery/fargate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import (
1616
"github.com/newrelic/nri-flex/internal/formatter"
1717
"github.com/newrelic/nri-flex/internal/load"
1818
"github.com/sirupsen/logrus"
19-
yaml "gopkg.in/yaml.v2"
19+
yaml "gopkg.in/yaml.v3"
2020
)
2121

2222
// runFargateDiscovery check aws metadata endpoint for containers

0 commit comments

Comments
 (0)