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

Delete the cache folder when an exception bubbles up #234

Open
daveaglick opened this issue Mar 10, 2022 · 0 comments
Open

Delete the cache folder when an exception bubbles up #234

daveaglick opened this issue Mar 10, 2022 · 0 comments
Labels
General Enhancement New feature or request

Comments

@daveaglick
Copy link
Member

If the engine gets an exception during execution, the cache is sometimes to blame. At issue is that invalidating the cache on things like dependency changes is really hard. In lieu of trying to figure that out (which may be impossible given things like non-deterministic builds and no way to get a reliable hash of an assembly), one simpler plan may be to just delete the cache whenever an exception is raised and output a note to try running again - something like "The errors above may have been the result of caching. The cache folder has been cleared so try execution again.". We'd want to only show that error if there actually was a cache folder.

@daveaglick daveaglick added the General Enhancement New feature or request label Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
General Enhancement New feature or request
Development

No branches or pull requests

1 participant