Skip to content

Commit adb92ff

Browse files
fix(deps): update module gopkg.in/yaml.v2 to v3
1 parent 94981de commit adb92ff

File tree

7 files changed

+22
-83
lines changed

7 files changed

+22
-83
lines changed

go.mod

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ require (
3434
go.uber.org/ratelimit v0.3.1
3535
golang.org/x/crypto v0.36.0
3636
golang.org/x/net v0.37.0
37-
gopkg.in/yaml.v2 v2.4.0
37+
gopkg.in/yaml.v3 v3.0.1
3838
gotest.tools v2.2.0+incompatible
3939
)
4040

@@ -99,15 +99,12 @@ require (
9999
go.opentelemetry.io/otel v1.34.0 // indirect
100100
go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.28.0 // indirect
101101
go.opentelemetry.io/otel/metric v1.34.0 // indirect
102+
go.opentelemetry.io/otel/sdk v1.28.0 // indirect
102103
go.opentelemetry.io/otel/trace v1.34.0 // indirect
103104
golang.org/x/exp v0.0.0-20240719175910-8a7402abbf56 // indirect
104-
golang.org/x/mod v0.19.0 // indirect
105-
golang.org/x/sync v0.12.0 // indirect
106105
golang.org/x/sys v0.31.0 // indirect
107106
golang.org/x/text v0.23.0 // indirect
108-
golang.org/x/tools v0.23.0 // indirect
109107
google.golang.org/protobuf v1.36.5 // indirect
110108
gopkg.in/warnings.v0 v0.1.2 // indirect
111-
gopkg.in/yaml.v3 v3.0.1 // indirect
112109
howett.net/plist v1.0.0 // indirect
113110
)

go.sum

Lines changed: 15 additions & 73 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)