-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(forge
): pre-emptively create lib
dir if it doesn't exist for updating submodules
#6521
Conversation
204198c
to
39934ca
Compare
39934ca
to
ebf275c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the failing test look related
the issue here is that we want to update a folder that does not exist.
I think we should instead only perform the update if the folder already exists.
Yeah so what's happening here is an edge case for I think the fix here is to check if the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add a sanity test for this:
empty project + call forge install
Thanks for the quick turnaround 🙏 |
There's still a problem left, though .. running libs = ["node_modules", "lib"] Would it be possible to have Forge not do this? |
please do not do this, some people may use git submodules for non-foundry reasons. This issue also closes my issue #2649 |
Motivation
Closes #6519
Solution
Check if there are any submodules at all in the repo, and only update if so.