Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not run the example code #779

Open
3 of 5 tasks
liuyangc3 opened this issue Nov 30, 2023 · 0 comments
Open
3 of 5 tasks

Can not run the example code #779

liuyangc3 opened this issue Nov 30, 2023 · 0 comments
Labels
bug Something is not working.

Comments

@liuyangc3
Copy link

liuyangc3 commented Nov 30, 2023

Preflight checklist

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
@liuyangc3 liuyangc3 added the bug Something is not working. label Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

No branches or pull requests

1 participant