Can not run the example code
liuyangc3 opened this issue · comments
Yang Liu commented
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
Ory Network Project
No response
Describe the bug
I imported fosite latest release v0.44.0 when I run the example code
oauth2 := compose.ComposeAllEnabled(foconfig, store, privateKey)
I got error
../go/pkg/mod/github.com/ory/fosite@v0.44.0/client_authentication_jwks_strategy.go:134:10: s.cache.Wait undefined (type *ristretto.Cache has no field or method Wait)
in client_authentication_jwks_strategy.go:134
func (s *DefaultJWKSFetcherStrategy) WaitForCache() {
s.cache.Wait()
}
seems version v0.44.0 uses github.com/dgraph-io/ristretto v0.0.3
and in this version they don't have Wait
method
Reproducing the bug
use release v0.44.0 and run example
Relevant log output
No response
Relevant configuration
No response
Version
v0.44.0
On which operating system are you observing this issue?
None
In which environment are you deploying?
None
Additional Context
I added below into go.mod file and fixed the issue
replace github.com/dgraph-io/ristretto v0.0.3 => github.com/dgraph-io/ristretto v0.1.1