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

cannot use generic type ristretto.Cache[K, V any] without instantiation ../../github.com/dgraph-io/badger/v4/table/table.go:80:14: cannot use generic type ristretto.Cache[K, V any] without instantiation #2005

Open
simokogice opened this issue Sep 11, 2023 · 2 comments
Labels
kind/bug Something is broken.

Comments

@simokogice
Copy link

What version of Badger are you using?

the latest

What version of Go are you using?

1.21

Have you tried reproducing the issue with the latest release?

Yes

What is the hardware spec (RAM, CPU, OS)?

32Go, 3,2; Apple M1

What steps will reproduce the bug?

when i try to build my project i got the error below:

github.com/dgraph-io/badger/v4/table

../../github.com/dgraph-io/badger/v4/table/table.go:79:14: cannot use generic type ristretto.Cache[K, V any] without instantiation
../../github.com/dgraph-io/badger/v4/table/table.go:80:14: cannot use generic type ristretto.Cache[K, V any] without instantiation

Expected behavior and actual result.

No response

Additional information

No response

@simokogice simokogice added the kind/bug Something is broken. label Sep 11, 2023
@mangalaman93
Copy link
Contributor

I am not sure why one would get this error. Ristretto supports generics on the newer version but badger still uses the older version of ristretto.

@sebastopol-g
Copy link

I've just got the same bug on my project

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something is broken.
Development

No branches or pull requests

3 participants