-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Update remappings and install instructions for Foundry on docs site #4498
Conversation
|
A quick input as I see you're concerned about people pulling the latest |
The only issue is if you're in 4.6 but the latest is 4.9 you will not get any 4.x patches, because those are only released for the latest minor. That said running What's the process for setting it up like you show there? Is there a |
Yeah, manually, unfortunately. I mean, it's more like a recommendation for the case where someone invokes |
Does |
That's from the docs: So I did a local test:
After that, I added the following to [submodule "lib/openzeppelin-contracts"]
path = lib/openzeppelin-contracts
url = https://github.com/openzeppelin/openzeppelin-contracts.git
branch = release-v4.6 and ran TL;DR: I would like to loop in @Evalir from the Foundry team to confirm this behaviour. |
Just to clarify what you mean here, when you added |
But the checked out commits didn't update as expected. I might need to run another test to confirm. What is your understanding of |
Oh maybe I misunderstood. Does the
I'm not sure what forge's expected behavior is here, I'd suggest opening an issue in the forge repo with actual vs. expected behavior. Respecting what's in |
There is only one version for
@frangio what would be your expected behaviour? Before opening a new issue I want to first understand the exact current behaviour of [submodule "lib/openzeppelin-contracts"]
path = lib/openzeppelin-contracts
url = https://github.com/openzeppelin/openzeppelin-contracts.git
branch = release-v4.6 Thereafter, I ran |
Fixes #4491.
Simply syncs
README.md
withindex.adoc
.Rendered
I've also changed our
remappings.txt
because they are used byforge remappings
when the user runs their code and we want imports to look the same as with the npm package.We can't remove the remappings part from the installation instructions yet because for v4.9.3 it still has to be manually added.