You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# github.com/kataras/iris/sessions/sessiondb/badger
../../../../go/pkg/mod/github.com/kataras/[email protected]+incompatible/sessions/sessiondb/badger/database.go:56:6: opts.Dir undefined (type func(string) badger.Options has no field or method Dir)
../../../../go/pkg/mod/github.com/kataras/[email protected]+incompatible/sessions/sessiondb/badger/database.go:57:6: opts.ValueDir undefined (type func(string) badger.Options has no field or method ValueDir)
../../../../go/pkg/mod/github.com/kataras/[email protected]+incompatible/sessions/sessiondb/badger/database.go:59:29: cannot use opts (type func(string) badger.Options) as type badger.Options in argument to badger.Open
../../../../go/pkg/mod/github.com/kataras/[email protected]+incompatible/sessions/sessiondb/badger/database.go:81:18: too many arguments in call to txn.Commit
have (nil)
want ()
../../../../go/pkg/mod/github.com/kataras/[email protected]+incompatible/sessions/sessiondb/badger/database.go:94:13: txn.SetWithTTL undefined (type *badger.Txn has no field or method SetWithTTL)
../../../../go/pkg/mod/github.com/kataras/[email protected]+incompatible/sessions/sessiondb/badger/database.go:132:13: txn.SetWithTTL undefined (type *badger.Txn has no field or method SetWithTTL)
../../../../go/pkg/mod/github.com/kataras/[email protected]+incompatible/sessions/sessiondb/badger/database.go:154:19: assignment mismatch: 2 variables but item.Value returns 1 values
../../../../go/pkg/mod/github.com/kataras/[email protected]+incompatible/sessions/sessiondb/badger/database.go:154:32: not enough arguments in call to item.Value
have ()
want (func([]byte) error)
../../../../go/pkg/mod/github.com/kataras/[email protected]+incompatible/sessions/sessiondb/badger/database.go:195:19: assignment mismatch: 2 variables but item.Value returns 1 values
../../../../go/pkg/mod/github.com/kataras/[email protected]+incompatible/sessions/sessiondb/badger/database.go:195:32: not enough arguments in call to item.Value
have ()
want (func([]byte) error)
../../../../go/pkg/mod/github.com/kataras/[email protected]+incompatible/sessions/sessiondb/badger/database.go:195:19: too many errors
Expected behavior
Use badger as session db correctly.
Desktop (please complete the following information):
Describe the bug
go.mod like this
run
go run
orgo build
will print these errorsExpected behavior
Use badger as session db correctly.
Desktop (please complete the following information):
Additional context
go version 1.13
I see badger 1.6.0 contains break changes https://github.com/dgraph-io/badger/releases/tag/v1.6.0, it is not compatible with sessions/sessiondb/badger package.
When I change badger version to v1.5.5 in go.mod file, it works.
The text was updated successfully, but these errors were encountered: