Open izcoser opened 4 months ago
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.
@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
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