fix: issue where could not have dependencies with contracts_folder
pointed at the root project path
#2048
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What I did
fixed a bug where could not compile dependencies like:
issue: it got turned to "" via a bad replace during a config manifestation.
How I did it
if the paths re equal, make the temp config value for contracts_folder be "."
NOTE: This all makes so much more sense on the project refactor for 0.8 .... just sayin! But this is a solid fix for the 0.7 range I think.
ALSO: I purposely made the test an integration test to ensure this carries over to 0.8 because any functional test would likely get erased (so I didn't add any of those).
How to verify it
Use this config:
and run:
ape pm install .
Checklist