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

fix(solc): do not overwrite existing cache #629

Merged
merged 1 commit into from
Nov 26, 2021
Merged

Conversation

gakonst
Copy link
Owner

@gakonst gakonst commented Nov 26, 2021

previously if 1 file changed, it'd overwrite the existing cache on disk with just
that 1 changed file. this change reads the cache from disk and merges it with the new checksums

ref: #623

@gakonst gakonst force-pushed the fix/cache-incremental branch 3 times, most recently from 119d12a to 84dcd84 Compare November 26, 2021 19:09
previously if 1 file changed, it'd overwrite the existing cache on disk with just
that 1 changed file. this change reads the cache from disk and merges it with the new checksums
@gakonst gakonst force-pushed the fix/cache-incremental branch from 84dcd84 to ff2fdff Compare November 26, 2021 19:16
@gakonst gakonst merged commit 7bb9093 into master Nov 26, 2021
@gakonst gakonst deleted the fix/cache-incremental branch November 26, 2021 19:16
@ghost
Copy link

ghost commented Nov 27, 2021

Something minor to note here is that deleted files will remain in the cache metadata file.

@gakonst
Copy link
Owner Author

gakonst commented Nov 27, 2021

Wonder what's the best way to approach this to have a robust cache file

gakonst added a commit to foundry-rs/foundry that referenced this pull request Nov 28, 2021
1. Introduces ethers-solc tracing
2. Fixes various ethers-solc caching bugs
    gakonst/ethers-rs#623
    gakonst/ethers-rs#629
    gakonst/ethers-rs#630
gakonst added a commit to foundry-rs/foundry that referenced this pull request Nov 28, 2021
1. Introduces ethers-solc tracing
2. Fixes various ethers-solc caching bugs
    gakonst/ethers-rs#623
    gakonst/ethers-rs#629
    gakonst/ethers-rs#630
meetmangukiya pushed a commit to meetmangukiya/ethers-rs that referenced this pull request Mar 21, 2022
* label cheatcode

* no direct print (construct string) and label inputs/returns
charisma98 added a commit to charisma98/foundry that referenced this pull request Mar 4, 2023
1. Introduces ethers-solc tracing
2. Fixes various ethers-solc caching bugs
    gakonst/ethers-rs#623
    gakonst/ethers-rs#629
    gakonst/ethers-rs#630
0129general added a commit to 0129general/FoundryProject that referenced this pull request May 8, 2024
1. Introduces ethers-solc tracing
2. Fixes various ethers-solc caching bugs
    gakonst/ethers-rs#623
    gakonst/ethers-rs#629
    gakonst/ethers-rs#630
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.

1 participant