mise trust
works incorrectly with symlinked configuration file
#2175
Labels
bug
Something isn't working
mise trust
works incorrectly with symlinked configuration file
#2175
Describe the bug
My configuration file is symlinked from
~/.config/mise/config.toml
to/etc/dotfiles/config/mise/config.toml
, this worked fine in Mise prior to version 2024.5.11 but now results in an errorConfig file is not trusted.
The symlink in
~/.local/state/mise/trusted-configs
looks correct:But
mise trust
seems to use the realpath when creating the symlink, and the original path when checking:Running other commands shows this prompt, asking if the original path should be trusted:
This creates a second symlink and fixes the
Config file is not trusted.
error:To Reproduce
Use a symlink for
~/.config/mise/config.toml
Expected behavior
This should work without errors.
mise doctor
outputAdditional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: