Open HaleTom opened 5 months ago
This may be related to #1501.
I noted this:
ravi@svelte:~/.local/state/mise% tree -a
.
├── tracked-configs
│ ├── 2a1a40a1fbd377d4 -> /home/ravi/.dotfiles/misc/.config/mise/config.toml
│ ├── 7d332f57fb657a9e -> /home/ravi/.config/mise/config.toml
└── trusted-configs
├── mise-config.hash
├── mise-config.toml-2a1a40a1fbd377d4 -> /home/ravi/.dotfiles/misc/.config/mise/config.toml
├── mise-config.toml-7d332f57fb657a9e -> /home/ravi/.config/mise/config.toml
Both of the 2 distinct files listed here are the same config file, where /home/ravi/.config/mise/config.toml
is a symlink to the other.
But no, trusting both doesn't help:
% mise trust --verbose ~/.config/mise/config.toml
[DEBUG] ARGS: mise trust --verbose /home/ravi/.config/mise/config.toml
[INFO] mise trusted /home/ravi/.dotfiles/misc/.config/mise/config.toml
[DEBUG] ARGS: mise hook-env -s zsh
Error:
0: error parsing config file: ~/.config/mise/config.toml
1: Config file is not trusted.
Trust it with `mise trust`.
Location:
src/config/config_file/mod.rs:214
Version:
2024.1.24 linux-x64 (e5a9d6b 2024-01-22)
Suggestion: Run with --verbose or MISE_VERBOSE=1 for more information.
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
%
%
%
% mise trust --verbose "$(realpath ~/.config/mise/config.toml)"
[DEBUG] ARGS: mise trust --verbose /home/ravi/.dotfiles/misc/.config/mise/config.toml
[INFO] mise trusted /home/ravi/.dotfiles/misc/.config/mise/config.toml
[DEBUG] ARGS: mise hook-env -s zsh
Error:
0: error parsing config file: ~/.config/mise/config.toml
1: Config file is not trusted.
Trust it with `mise trust`.
Location:
src/config/config_file/mod.rs:214
Version:
2024.1.24 linux-x64 (e5a9d6b 2024-01-22)
Suggestion: Run with --verbose or MISE_VERBOSE=1 for more information.
Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
Cancel the possible relation to #1501 --
In the example above, /home/var/ravi/stow/tmp/node-env-test/.mise.toml
was not a symlink.
Describe the bug
To Reproduce
Expected behavior
I expect to be able to do
mise trust
followed bymise trust --untrust
which would reverse the first command.mise doctor
outputAdditional context Note the weird doubling above:
mise doctor
keeps on asking me to trust the local and global.toml
files, each and every time, even if I always say 'Yes'.