foundry
foundry copied to clipboard
feat(forge): get-solc command
Closes #7656
Motivation
Introduces forge get-solc <path> to get the solc version for that particular path.
This command can be useful to check compatible solc for different folders in a large project.
Solc 0.8.22
In case of multiple solcs:
Solcs 0.8.21, 0.8.22, 0.8.24
It works even if you give a file path like src/test/Test.sol.
@mattsse leave your review when you're free. ref https://github.com/foundry-rs/foundry/pull/7696#discussion_r1569968048. Thanks!