Skip to content

Conversation

@0xicingdeath
Copy link

$ solc-select use 0.8.9
'0.8.9' must be installed prior to use. Would you like to install? [y/n] n

$ solc-select use 0.8.9
'0.8.9' must be installed prior to use. Would you like to install? [y/n] y
Installing '0.8.9'...
Version '0.8.9' installed.
Switched global version to 0.8.9

@0xicingdeath
Copy link
Author

Replaced the above with an --always-install flag that will install and change the version, if applicable. Closes #73.

$ solc-select use 0.8.9 --always-install
Installing '0.8.9'...
Version '0.8.9' installed.
Switched global version to 0.8.9

$ solc-select use 0.8.9
Traceback (most recent call last):
  File "/Users/nataliechin/.virtualenvs/ss/bin/solc-select", line 33, in <module>
    sys.exit(load_entry_point('solc-select', 'console_scripts', 'solc-select')())
  File "/Users/nataliechin/GitHub/solc-select/solc_select/__main__.py", line 60, in solc_select
    switch_global_version(args.get(USE_VERSION), args.get("always_install"))
  File "/Users/nataliechin/GitHub/solc-select/solc_select/solc_select.py", line 122, in switch_global_version
    raise argparse.ArgumentTypeError(f"'{version}' must be installed prior to use.")
argparse.ArgumentTypeError: '0.8.9' must be installed prior to use.

@0xicingdeath 0xicingdeath changed the title Prompts user to download solc version that's not installed Adds --always-install flag to solc-select use Nov 30, 2021
@0xicingdeath 0xicingdeath requested a review from dev1644 November 30, 2021 19:49
@0xicingdeath 0xicingdeath self-assigned this Nov 30, 2021
@0xicingdeath 0xicingdeath linked an issue Nov 30, 2021 that may be closed by this pull request
@0xicingdeath 0xicingdeath merged commit 9787fd0 into dev Dec 1, 2021
@0xicingdeath 0xicingdeath deleted the feature/prompt-switch-version branch December 1, 2021 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add flag to solc-select use to install and change version

3 participants