Skip to content

avm: Ask whether to install if the version is not installed with the use command#3230

Merged
acheroncrypto merged 2 commits into
otter-sec:masterfrom
acheroncrypto:avm-ask-whether-to-install-if-the-version-is-not-installed-with-the-use-command
Sep 6, 2024
Merged

avm: Ask whether to install if the version is not installed with the use command#3230
acheroncrypto merged 2 commits into
otter-sec:masterfrom
acheroncrypto:avm-ask-whether-to-install-if-the-version-is-not-installed-with-the-use-command

Conversation

@acheroncrypto

Copy link
Copy Markdown
Collaborator

Problem

Using avm use <VERSION> results in an error if the version is not already installed:

Version 0.30.0 is not installed, staying on version 0.30.1.
Error: You need to run 'avm install 0.30.0' to install it before using it.

Summary of changes

Ask the user whether to install the given version if the version is not already installed:

Version 0.30.0 is not installed. Would you like to install? [y/n]

Resolves #3229

@vercel

vercel Bot commented Sep 6, 2024

Copy link
Copy Markdown

@acheroncrypto is attempting to deploy a commit to the coral-xyz Team on Vercel.

A member of the Team first needs to authorize it.

@acheroncrypto acheroncrypto merged commit 1c0b213 into otter-sec:master Sep 6, 2024
Otter-0x4ka5h pushed a commit to Otter-0x4ka5h/anchor that referenced this pull request Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[feature request] avm use should auto install the version if not already installed

1 participant