Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: Anchor version manager (avm) #1385

Merged
merged 25 commits into from
Feb 4, 2022

Conversation

tomlinton
Copy link
Contributor

Adds the command line util avm and a wrapper anchor binary that runs the correct version of anchor-cli. Usage is explained in the docs.

Looks like book just got removed from this repo. I'll make a new PR for this documentation in the anchor-book repo. Are we deprecating the docs/ directory or should I also add it there?

I'm not sure how to version avm, we might sync it with the main anchor version, or perhaps avm should live in a separate repo since tagging will get messy.

There is other approaches apart from using the wrapper binary, e.g. asking the user to set PATH to the ~/.avm/bin directory or using symlinks. The wrapper seemed like the nicest approach to me.

Closes #586.

@tomlinton
Copy link
Contributor Author

Here is the commit with the documentation. I've pulled it out of this PR since the book/ was removed.

@armaniferrante
Copy link
Member

since

Awesome let's add that PR to the book repo.

CHANGELOG.md Outdated Show resolved Hide resolved
@armaniferrante
Copy link
Member

Should we use this in CI to install anchor? I think probably.

@paul-schaaf
Copy link
Contributor

@tomlinton we are deprecating /docs yes. you can add the documentation to the seperate anchor-book repo

@armaniferrante armaniferrante merged commit 75469f4 into coral-xyz:master Feb 4, 2022
losman0s pushed a commit to losman0s/anchor that referenced this pull request Feb 7, 2022
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.

cli: Add ability to switch between anchor CLI versions
3 participants