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

fix: Skip compile cache if first candidate doesn't exist #2074

Merged
merged 1 commit into from Mar 28, 2024

Conversation

charithe
Copy link
Contributor

When lenient scope search is enabled and we have a set of candidates to
search for, we incorrectly search the cache for all of those and return
the first one found. If we don't find the first candidate in the cache,
we should just hit the store because it could have been added to the
repo since we last looked for it.

Fixes #1846

Signed-off-by: Charith Ellawala charith@cerbos.dev

When lenient scope search is enabled and we have a set of candidates to
search for, we incorrectly search the cache for all of those and return
the first one found. If we don't find the first candidate in the cache,
we should just hit the store because it could have been added to the
repo since we last looked for it.

Fixes cerbos#1846

Signed-off-by: Charith Ellawala <charith@cerbos.dev>
@charithe charithe merged commit 87a3305 into cerbos:main Mar 28, 2024
21 checks passed
@charithe charithe deleted the fix-lenient-cache branch March 28, 2024 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with multiple replicas and git backend
2 participants