Skip to content

Commit 2e6b44b

Browse files
author
Thomas Delbende
committed
chore: replace mapstructure with its blessed fork
1 parent b719bdc commit 2e6b44b

File tree

5 files changed

+4
-5
lines changed

5 files changed

+4
-5
lines changed

agent/state/state.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ import (
3030

3131
"github.com/bleemeo/glouton/logger"
3232

33+
"github.com/go-viper/mapstructure/v2"
3334
"github.com/google/uuid"
34-
"github.com/mitchellh/mapstructure"
3535
)
3636

3737
const stateVersion = 1

config/hooks.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"strings"
2424
"time"
2525

26-
"github.com/mitchellh/mapstructure"
26+
"github.com/go-viper/mapstructure/v2"
2727
bbConf "github.com/prometheus/blackbox_exporter/config"
2828
"gopkg.in/yaml.v3"
2929
)

discovery/dynamic.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import (
3535
"github.com/bleemeo/glouton/version"
3636

3737
"dario.cat/mergo"
38-
"github.com/mitchellh/mapstructure"
38+
"github.com/go-viper/mapstructure/v2"
3939
"gopkg.in/ini.v1"
4040
)
4141

go.mod

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ require (
3535
github.com/knadh/koanf v1.5.0
3636
github.com/knadh/koanf/v2 v2.1.2
3737
github.com/mitchellh/copystructure v1.2.0
38-
github.com/mitchellh/mapstructure v1.5.1-0.20220423185008-bf980b35cac4
3938
github.com/ncabatoff/process-exporter v0.8.5
4039
github.com/opencontainers/go-digest v1.0.0
4140
github.com/opencontainers/image-spec v1.1.0

inputs/vsphere/properties.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"sync"
2323
"time"
2424

25-
"github.com/mitchellh/mapstructure"
25+
"github.com/go-viper/mapstructure/v2"
2626
"github.com/vmware/govmomi/object"
2727
"github.com/vmware/govmomi/property"
2828
"github.com/vmware/govmomi/vim25"

0 commit comments

Comments
 (0)