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

fix(solc): invalidate cache on unresolve error #1337

Merged

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Jun 2, 2022

Motivation

Previously, unresolved imports were ignored and we relied on solc to handle them. However, this led to a side effect, as we instead found that the project was unchanged and never recompiled.

Solution

invalidate the cache if the graph isn't able to resolve all the imports so we always invoke solc which will then fail, since the graph uses the same VFS as solc.

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

@gakonst gakonst merged commit 030488e into gakonst:master Jun 2, 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.

2 participants