mint icon indicating copy to clipboard operation
mint copied to clipboard

Store 'mint-packages' in one global directory

Open s0kil opened this issue 5 years ago • 3 comments

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

s0kil avatar Aug 27 '18 11:08 s0kil

We could pursue a path similar to https://pnpm.js.org and create a symbolic link from global/package/name to project/package/name.

s0kil avatar Jan 09 '20 04:01 s0kil

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.

gdotdesign avatar Jan 09 '20 05:01 gdotdesign

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/packages due to MINT_PACKAGES_PATH being set to .asdf/installs/mint/0.10.0/

s0kil avatar Sep 21 '20 05:09 s0kil