Skip to content

current_version doesn't check that global version is installed #139

@0xalpharush

Description

@0xalpharush

if version not in installed_versions():
raise argparse.ArgumentTypeError(
f"Version '{version}' not installed (set by {source}). Run `solc-select install {version}`."
)
else:
source = SOLC_SELECT_DIR.joinpath("global-version")
if Path.is_file(source):
with open(source, encoding="utf-8") as f:
version = f.read()
else:
raise argparse.ArgumentTypeError(
"No solc version set. Run `solc-select use VERSION` or set SOLC_VERSION environment variable."
)

This is an issue if you delete the artifact but leave the version set

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions