foundry icon indicating copy to clipboard operation
foundry copied to clipboard

feat(forge): get-solc command

Open kamuik16 opened this issue 1 year ago • 1 comments

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.

kamuik16 avatar Apr 17 '24 09:04 kamuik16

@mattsse leave your review when you're free. ref https://github.com/foundry-rs/foundry/pull/7696#discussion_r1569968048. Thanks!

kamuik16 avatar Apr 19 '24 15:04 kamuik16