Skip to content

Commit

Permalink
refactor: check with installed versions when compiling before install…
Browse files Browse the repository at this point in the history
…ing during no-pragma fallback
  • Loading branch information
mikeshultz committed Mar 19, 2024
1 parent 93f82e2 commit 4af831e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ape_vyper/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ def first_full_release(versions: Iterable[Version]) -> Optional[Version]:
return None

if version_spec is None:
if version := first_full_release(self.available_versions):
if version := first_full_release(self.installed_versions + self.available_versions):
return version
raise VyperInstallError("No available version.")

Expand Down

0 comments on commit 4af831e

Please sign in to comment.