Setting MISE_DATA_DIR
only works for absolute paths
#4313
-
I am not sure whether I missed something in the documentation or whether I'm doing something wrong, but it seems Steps to reproduce:
❯ mkdir -p /tmp/mise && cd /tmp/mise
❯ MISE_DATA_DIR=.foo mise use --pin go
mise ERROR failed to install core:[email protected]
mise ERROR No such file or directory (os error 2) at path "/private/tmp/mise/.foo/downloads/go/1.23.6/.foo/downloads/go/1.23.6/go1.23.6.darwin-arm64.tar.gzIaaRJz"
mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information
❯ MISE_DATA_DIR=/tmp/mise/.foo mise use --pin go
mise [email protected] ✓ installed mise /private/tmp/mise/mise.toml tools: [email protected] The same behaviour is observed by setting Is this a bug, or is there some other way to use a directory inside the current path? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I think none of the global directory environment variables supports relative paths (kinda defeats the purpose of a global store in context of cd hooks i suppose). With command/variable substitution something like |
Beta Was this translation helpful? Give feedback.
-
If we use mise for python in at least two places, then |
Beta Was this translation helpful? Give feedback.
-
For the
|
Beta Was this translation helpful? Give feedback.
For the
mise.toml
use case you could use templates but these do not work with.env
files though.