Skip to content

Commit

Permalink
update koanf major (#3441)
Browse files Browse the repository at this point in the history
* update koanf major

* fix broken test

---------

Co-authored-by: Gerard Snaauw <[email protected]>
  • Loading branch information
woutslakhorst and gerardsn authored Oct 2, 2024
1 parent f4a2a14 commit f8ebb6c
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 266 deletions.
2 changes: 1 addition & 1 deletion core/client_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ package core

import (
"fmt"
"github.com/knadh/koanf/v2"
"github.com/spf13/cobra"
"os"
"path"
"strings"
"time"

"github.com/knadh/koanf"
"github.com/spf13/pflag"
)

Expand Down
2 changes: 1 addition & 1 deletion core/client_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
package core

import (
"github.com/knadh/koanf"
"github.com/knadh/koanf/v2"
"github.com/nuts-foundation/nuts-node/test/io"
"github.com/spf13/cobra"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion core/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ package core
import (
"errors"
"fmt"
"github.com/knadh/koanf"
"github.com/knadh/koanf/parsers/yaml"
"github.com/knadh/koanf/providers/env"
"github.com/knadh/koanf/providers/file"
"github.com/knadh/koanf/providers/posflag"
"github.com/knadh/koanf/v2"
"github.com/spf13/pflag"
"os"
"strings"
Expand Down
2 changes: 1 addition & 1 deletion core/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
package core

import (
"github.com/knadh/koanf"
"github.com/knadh/koanf/v2"
"github.com/spf13/cobra"
"github.com/spf13/pflag"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion core/server_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ import (
"crypto/x509"
"errors"
"fmt"
"github.com/knadh/koanf"
"github.com/knadh/koanf/providers/env"
"github.com/knadh/koanf/providers/posflag"
"github.com/knadh/koanf/v2"
"github.com/sirupsen/logrus"
"github.com/spf13/pflag"
"net/url"
Expand Down
2 changes: 1 addition & 1 deletion e2e-tests/browser/rfc019_selfsigned/config/node/nuts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ http:
address: :8081
auth:
contractvalidators:
- selfsigned
- employeeid
3 changes: 1 addition & 2 deletions e2e-tests/browser/rfc019_selfsigned/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@ source ../../util.sh
set -e # make script fail if any of the tests returns a non-zero exit code

# Shut down existing containers
docker compose stop
docker compose down

# Start new stack
docker compose up --wait


go test -v --tags=e2e_tests .

docker compose stop
15 changes: 12 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ require (
github.com/goodsign/monday v1.0.2
github.com/google/uuid v1.6.0
github.com/hashicorp/vault/api v1.15.0
github.com/knadh/koanf v1.5.0
github.com/knadh/koanf/parsers/yaml v0.1.0
github.com/knadh/koanf/providers/env v1.0.0
github.com/knadh/koanf/providers/file v1.1.0
github.com/knadh/koanf/providers/posflag v0.1.0
github.com/knadh/koanf/providers/structs v0.1.0
github.com/labstack/echo/v4 v4.12.0
github.com/lestrrat-go/jwx/v2 v2.1.1
github.com/magiconair/properties v1.8.7
Expand Down Expand Up @@ -87,7 +91,7 @@ require (
github.com/edsrzf/mmap-go v1.1.0 // indirect
github.com/eknkc/basex v1.0.1 // indirect
github.com/fatih/structs v1.1.0 // indirect
github.com/fsnotify/fsnotify v1.5.4 // indirect
github.com/fsnotify/fsnotify v1.7.0 // indirect
github.com/fxamacker/cbor v1.5.1 // indirect
github.com/glebarez/go-sqlite v1.21.2 // indirect
github.com/go-chi/chi/v5 v5.0.10 // indirect
Expand Down Expand Up @@ -124,9 +128,9 @@ require (
github.com/jackc/puddle/v2 v2.2.1 // indirect
github.com/jinzhu/inflection v1.0.0 // indirect
github.com/jinzhu/now v1.1.5 // indirect
github.com/joho/godotenv v1.5.1 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/klauspost/compress v1.17.9 // indirect
github.com/knadh/koanf/maps v0.1.1 // indirect
github.com/kylelemons/godebug v1.1.0 // indirect
github.com/labstack/gommon v0.4.2 // indirect
github.com/lestrrat-go/blackmagic v1.0.2 // indirect
Expand Down Expand Up @@ -199,3 +203,8 @@ require (
modernc.org/sqlite v1.32.0 // indirect
rsc.io/qr v0.2.0 // indirect
)

require (
github.com/go-viper/mapstructure/v2 v2.0.0-alpha.1 // indirect
github.com/knadh/koanf/v2 v2.1.1 // indirect
)
272 changes: 18 additions & 254 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ import (
"context"
"errors"
"fmt"
"github.com/knadh/koanf"
"github.com/knadh/koanf/parsers/yaml"
"github.com/knadh/koanf/providers/structs"
"github.com/knadh/koanf/v2"
"github.com/nuts-foundation/nuts-node/auth"
"github.com/nuts-foundation/nuts-node/cmd"
"github.com/nuts-foundation/nuts-node/core"
Expand Down

0 comments on commit f8ebb6c

Please sign in to comment.