-
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
feat(forge): add command to check solc autodetected version #7656
Comments
hey @mattsse! I would like to try this and have done the setup, but I need help with how to get the solc version if I have the root or path of the project you want to check for? |
@kamuik16 Just to clarify, this feature is already built in, just not exposed as a command. So ideally you'd just find where this happens in the code. I have no Rust experience and would take a while to learn this project's structure, which is why I didn't come up with a PR straight away. |
I was asking for some refs or what to use, the project is pretty large. |
it's likely we need some helpers for this type the way this is used during the compilation step is: but for this command we'd need to do this ourselves: resolve the project's graph, then the versions and print them |
I am applying to this issue via OnlyDust platform. My background and how it can be leveragedI have experience with JavaScript and Python, along with a solid understanding of Solidity. My background in open-source projects equips me to effectively implement features and contribute to documentation. I can leverage my skills to enhance the Foundry toolset, ensuring clear communication and functionality for developers. How I plan on tackling this issueI would start by reviewing the existing Foundry codebase to understand how the solc version detection is implemented. Then, I would create a new command, forge detect-sol, that retrieves and displays the detected solc version. After implementing the feature, I would write tests to ensure its functionality and verify that it works seamlessly with the existing command structure. |
Component
Forge
Describe the feature you would like
Foundry has a config which is auto detect solc version. It defaults to true and when you type forge build, it detects the appropriate newest allowed version and uses that.
I propose you add a "forge detect-sol" command which spits out the detected version.
Additional context
No response
The text was updated successfully, but these errors were encountered: