crytic / solc-select

Manage and switch between Solidity compiler versions
GNU Affero General Public License v3.0
747 stars 99 forks source link

Accept `latest` as an argument for `install` and `use` #138

Open ardislu opened 1 year ago

ardislu commented 1 year ago

Currently, solc-select install only accepts a specific version number or the word all. solc-select use only accepts a specific version.

It would be convenient if these commands accepted latest as an alias for the latest version of Solidity. For example (assuming 0.8.17 is the latest version of Solidity):

$ solc-select install latest
Installing '0.8.17'...
Version '0.8.17' installed.

And:

$ solc-select use latest
Switched global version to 0.8.17
CJ42 commented 1 year ago

I am also looking for this feature, as I am implementing this in a CI job that needs to check that the contracts compile to multiple versions including the latest one.