Skip to content

lijunchen/mvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mvm

Easily switch between stable, pre-release, and bleeding versions of MoonBit while sharing the same credentials.json, index, and cache directories.

$ tree $MOON_HOME
├── bin -> $MOON_HOME/mvm/bleeding/bin
├── include -> $MOON_HOME/mvm/bleeding/include
├── lib -> $MOON_HOME/mvm/bleeding/lib
├── credentials.json
├── mvm
│   ├── bleeding
│   ├── pre-release
│   └── stable
└── registry
    ├── cache
    └── index

Installation

Install mvm using pipx:

pipx install git+https://github.com/lijunchen/mvm.git

Usage

Install and switch between different versions of MoonBit:

# Install specific versions
mvm install stable
mvm install pre-release
mvm install bleeding

# Switch to a specific version
mvm use stable       # Use the stable version
mvm use pre-release  # Use the pre-release version
mvm use bleeding     # Use the bleeding-edge version

Known Issues

MoonBit's installation script will add the following lines to your ~/.bashrc or ~/.zshrc automatically:

# moonbit
export PATH="$HOME/.moon/mvm/stable/bin:$PATH"

# moonbit
export PATH="$HOME/.moon/mvm/bleeding/bin:$PATH"

This will cause the mvm failed to switch version. To fix this, you need to comment them out to prevent installation scripts from modifying your PATH:

# moonbit
#export PATH="$HOME/.moon/mvm/stable/bin:$PATH"

# moonbit
#export PATH="$HOME/.moon/mvm/bleeding/bin:$PATH"

About

Simple MoonBit toolchain version manager

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages