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

Improve library/import resolution #739

Closed
2 tasks
mattsse opened this issue Dec 25, 2021 · 0 comments · Fixed by #750
Closed
2 tasks

Improve library/import resolution #739

mattsse opened this issue Dec 25, 2021 · 0 comments · Fixed by #750

Comments

@mattsse
Copy link
Collaborator

mattsse commented Dec 25, 2021

Is your feature request related to a problem? Please describe.
Currently, resolving libraries is very primitive and basically only supports lookups in the configured lib folder without applying remappings.

Essentially all imports outside of the src directory rely on remappings so solc can apply them.
This means, they're not part of the cache since we don't discover them properly. Therefor changes in lib contracts can be skipped if caching is enabled

Likely the case here foundry-rs/foundry#299
also definitely related #727

Describe the solution you'd like
Short term:

  • resolve remappings in resolve_libraries.
  • check all imports contracts for changes when checking a CacheEntry

Long term, add a proper dependency graph implementation.

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 a pull request may close this issue.

1 participant