Skip to content

Commit

Permalink
Switch module with koanf dep to /v2
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Feb 8, 2023
1 parent d254efa commit df85b96
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions providers/posflag/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ module github.com/knadh/koanf-test/providers/posflag
go 1.18

replace (
github.com/knadh/koanf-test => ../../
github.com/knadh/koanf-test/maps => ../../maps
github.com/knadh/koanf-test/v2 => ../../
)

require (
github.com/knadh/koanf-test v0.0.0-00010101000000-000000000000
github.com/knadh/koanf-test/maps v0.4.0
github.com/knadh/koanf-test/v2 v2.0.0-00010101000000-000000000000
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.8.1
)
Expand Down
2 changes: 1 addition & 1 deletion providers/posflag/posflag.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package posflag
import (
"errors"

"github.com/knadh/koanf-test"
"github.com/knadh/koanf-test/maps"
"github.com/knadh/koanf-test/v2"
"github.com/spf13/pflag"
)

Expand Down
4 changes: 2 additions & 2 deletions providers/posflag/posflag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"strings"
"testing"

"github.com/knadh/koanf-test/providers/confmap"
"github.com/knadh/koanf-test/providers/posflag"
"github.com/knadh/koanf-test"
"github.com/knadh/koanf-test/v2"
"github.com/knadh/koanf-test/v2/providers/confmap"
"github.com/spf13/pflag"
"github.com/stretchr/testify/require"
)
Expand Down
2 changes: 1 addition & 1 deletion tests/fs_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"testing/fstest"
"time"

"github.com/knadh/koanf-test"
"github.com/knadh/koanf-test/parsers/json"
"github.com/knadh/koanf-test/providers/fs"
"github.com/knadh/koanf-test/v2"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
Expand Down
3 changes: 2 additions & 1 deletion tests/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ module koanf_test
go 1.18

replace (
github.com/knadh/koanf-test => ../
github.com/knadh/koanf-test/maps => ../maps
github.com/knadh/koanf-test/parsers/dotenv => ../parsers/dotenv
github.com/knadh/koanf-test/parsers/hcl => ../parsers/hcl
github.com/knadh/koanf-test/parsers/hjson => ../parsers/hjson
github.com/knadh/koanf-test/parsers/toml => ../parsers/toml
github.com/knadh/koanf-test/parsers/yaml => ../parsers/yaml
github.com/knadh/koanf-test/providers/posflag => ../providers/posflag
github.com/knadh/koanf-test/v2 => ../
)

require (
Expand All @@ -22,6 +22,7 @@ require (
github.com/knadh/koanf-test/parsers/toml v0.0.0-00010101000000-000000000000
github.com/knadh/koanf-test/parsers/yaml v0.0.0-00010101000000-000000000000
github.com/knadh/koanf-test/providers/posflag v0.0.0-00010101000000-000000000000
github.com/knadh/koanf-test/v2 v2.0.0-00010101000000-000000000000
github.com/spf13/pflag v1.0.5
github.com/stretchr/testify v1.8.1
)
Expand Down
2 changes: 2 additions & 0 deletions tests/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ github.com/hjson/hjson-go/v4 v4.3.0 h1:dyrzJdqqFGhHt+FSrs5n9s6b0fPM8oSJdWo+oS3Yn
github.com/hjson/hjson-go/v4 v4.3.0/go.mod h1:KaYt3bTw3zhBjYqnXkYywcYctk0A2nxeEFTse3rH13E=
github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0=
github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4=
github.com/knadh/koanf-test v1.8.0 h1:ZNtjpX9Gv9R2GXJQNc1mxeRd+ewZFYFakGP8K47J4CQ=
github.com/knadh/koanf-test v1.8.0/go.mod h1:ix+t8y9/dR5LJT7RFYHEICl/ZadHQSEXowZvyT98EBM=
github.com/mitchellh/copystructure v1.2.0 h1:vpKXTN4ewci03Vljg/q9QvCGUDttBOGBIa15WveJJGw=
github.com/mitchellh/copystructure v1.2.0/go.mod h1:qLl+cE2AmVv+CoeAwDPye/v+N2HKCj9FbZEVFJRxO9s=
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
Expand Down
2 changes: 1 addition & 1 deletion tests/koanf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (
"github.com/knadh/koanf-test/providers/file"
"github.com/knadh/koanf-test/providers/posflag"
"github.com/knadh/koanf-test/providers/rawbytes"
"github.com/knadh/koanf-test"
"github.com/knadh/koanf-test/v2"
"github.com/spf13/pflag"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down

0 comments on commit df85b96

Please sign in to comment.