mint
mint copied to clipboard
Store 'mint-packages' in one global directory
Mint downloads mint-packages per project folder.
It should store in a global directory such as:
$HOME/.mint/0.2.1/package/mint-lang/mint-core/0.2.0
We could pursue a path similar to https://pnpm.js.org and create a symbolic link from global/package/name to project/package/name.
Since we are using Git repositories as packages and don't know if it makes sense to store versions of them separately, I need to think about how and if this can be implemented.
We could also read from ENV variable MINT_PACKAGES_PATH, and tools such as asdf could create separate package's directory for every Mint version.
Example: Mint 0.10.0
- CLI Path:
.asdf/installs/mint/0.10.0/bin/mint - Packages Path:
.asdf/installs/mint/0.10.0/.mint/packagesdue toMINT_PACKAGES_PATHbeing set to.asdf/installs/mint/0.10.0/