Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

fix: don't evict cache entries with no artifacts #1035

Merged
merged 1 commit into from
Mar 15, 2022

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Mar 15, 2022

Motivation

Closes foundry-rs/foundry#941

Solution

The way the Cache::retain function was implemented didn't account for entries without any artifacts such as a errors.sol file, which lead to them being evicted from the cache entry set.

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

@gakonst gakonst merged commit fac944b into gakonst:master Mar 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Recompiling on every forge test run
2 participants