-
Notifications
You must be signed in to change notification settings - Fork 345
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
SnapshotSource does not reuse self-generated snapshot #2802
Comments
This is not a bug, but a feature. Set regenerate to false to get the desired behaviour. I must be missing something ;-) |
Offline discussion added some new insights:
If we'd apply #2803 we will certainly get regressions, since this PR will cause A first conclusion might be that the current regenerate option is not particularly useful (we'd be better of without it), is not documented clearly and does not allow for 3rd-party snapshots to be used. We should obsolete it and introduce a more explicit setting. Basically there are only two cases:
|
…pshot fix: #2802 - let SnapshotSource reuse self-generated snapshot
Describe the bug
SnapshotSource should return the same snapshot upon multiple retrievals. Instead, it regenerates the snapshot every time.
To Reproduce
Steps to reproduce the behavior:
regenerate: true
, based on a CachedResolverExpected behavior
When the SnapshotSource has generated (by the Generator) a snapshot, it is marked as
IsCreatedBySnapshotGenerator()
, and it should not be re-generated again upon subsequent retrievals.Screenshots
n/a
Version used:
Additional context
The text was updated successfully, but these errors were encountered: