chore: switch to go.yaml.in/yaml/v3 (#2196)

This commit is contained in:
Jan-Otto Kröpke
2025-09-04 23:50:27 +02:00
committed by GitHub
parent 6289499dee
commit 4171ec17a5
6 changed files with 8 additions and 5 deletions

View File

@@ -32,7 +32,7 @@ import (
"github.com/prometheus-community/windows_exporter/internal/pdh"
"github.com/prometheus-community/windows_exporter/internal/types"
"github.com/prometheus/client_golang/prometheus"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v3"
)
const Name = "performancecounter"

View File

@@ -19,7 +19,7 @@ package performancecounter
import (
"github.com/prometheus-community/windows_exporter/internal/pdh"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v3"
)
type Object struct {

View File

@@ -26,7 +26,7 @@ import (
"github.com/alecthomas/kingpin/v2"
"github.com/prometheus-community/windows_exporter/pkg/collector"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v3"
)
// configFile represents the structure of the windows_exporter configuration file,

View File

@@ -21,7 +21,7 @@ import (
"reflect"
"testing"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v3"
)
// Unmarshal good configuration file and confirm data is flattened correctly.