diff --git a/go.mod b/go.mod index 7f65af5..abde0ff 100644 --- a/go.mod +++ b/go.mod @@ -3,13 +3,13 @@ module git.internal/re/viper go 1.17 require ( + git.internal/re/afero v1.9.3 git.internal/re/cast v1.5.1 github.com/fsnotify/fsnotify v1.6.0 github.com/magiconair/properties v1.8.7 github.com/mitchellh/mapstructure v1.5.0 github.com/pelletier/go-toml v1.9.5 github.com/pelletier/go-toml/v2 v2.0.5 - github.com/spf13/afero v1.9.3 github.com/spf13/jwalterweatherman v1.1.0 github.com/spf13/pflag v1.0.5 github.com/stretchr/testify v1.8.1 diff --git a/go.sum b/go.sum index 971bb0e..fa9927c 100644 --- a/go.sum +++ b/go.sum @@ -36,6 +36,8 @@ cloud.google.com/go/storage v1.8.0/go.mod h1:Wv1Oy7z6Yz3DshWRJFhqM/UCfaWIRTdp0RX cloud.google.com/go/storage v1.10.0/go.mod h1:FLPqc6j+Ki4BU591ie1oL6qBQGu2Bl/tZ9ullr3+Kg0= cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3fOKtUw0Xmo= dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU= +git.internal/re/afero v1.9.3 h1:3E6gTxdfID9str9lOLWuOQu+QILArbRLUBWi8MywP18= +git.internal/re/afero v1.9.3/go.mod h1:uyj2gu0urns+v+G7KIkNO49qShF4zekJMCflZVvB84M= git.internal/re/cast v1.5.1 h1:lmg2A9oeAp9CZjvC70Bcv2hOuQO5RB027bIbixTbok4= git.internal/re/cast v1.5.1/go.mod h1:ydbf5sDush+h+PruReXSzPmL7F0nRL1ogRYehzUSHnE= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= @@ -153,8 +155,6 @@ github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1: github.com/rogpeppe/go-internal v1.3.0/go.mod h1:M8bDsm7K2OlrFYOpmOWEs/qY81heoFRclV5y23lUDJ4= github.com/rogpeppe/go-internal v1.6.1 h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k= github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc= -github.com/spf13/afero v1.9.3 h1:41FoI0fD7OR7mGcKE/aOiLkGreyf8ifIOQmJANWogMk= -github.com/spf13/afero v1.9.3/go.mod h1:iUV7ddyEEZPO5gA3zD4fJt6iStLlL+Lg4m2cihcDf8Y= github.com/spf13/jwalterweatherman v1.1.0 h1:ue6voC5bR5F8YxI5S67j9i582FU4Qvo2bmqnqMYADFk= github.com/spf13/jwalterweatherman v1.1.0/go.mod h1:aNWZUN0dPAAO/Ljvb5BEdw96iTZ0EXowPYD95IqWIGo= github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA= diff --git a/viper.go b/viper.go index 99284c9..8bd6621 100644 --- a/viper.go +++ b/viper.go @@ -34,10 +34,10 @@ import ( "sync" "time" + "git.internal/re/afero" "git.internal/re/cast" "github.com/fsnotify/fsnotify" "github.com/mitchellh/mapstructure" - "github.com/spf13/afero" "github.com/spf13/pflag" "git.internal/re/viper/internal/encoding" diff --git a/viper_go1_15.go b/viper_go1_15.go index 19a771c..a811919 100644 --- a/viper_go1_15.go +++ b/viper_go1_15.go @@ -8,7 +8,7 @@ import ( "os" "path/filepath" - "github.com/spf13/afero" + "git.internal/re/afero" ) // Search all configPaths for any config file. diff --git a/viper_go1_16.go b/viper_go1_16.go index e10172f..2ea4d3a 100644 --- a/viper_go1_16.go +++ b/viper_go1_16.go @@ -6,7 +6,7 @@ package viper import ( "fmt" - "github.com/spf13/afero" + "git.internal/re/afero" ) // Search all configPaths for any config file. diff --git a/viper_test.go b/viper_test.go index 678d601..3693e1e 100644 --- a/viper_test.go +++ b/viper_test.go @@ -22,10 +22,10 @@ import ( "testing" "time" + "git.internal/re/afero" "git.internal/re/cast" "github.com/fsnotify/fsnotify" "github.com/mitchellh/mapstructure" - "github.com/spf13/afero" "github.com/spf13/pflag" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require"