Trusted configs don't stay trusted when mise trust is run on another config
#4499
-
|
All my formerly trusted configs are now untrusted. Steps:
Might be helpful info?: I use
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
For me this seems like Output of |
Beta Was this translation helpful? Give feedback.
-
|
I think I tracked down the root cause of this issue. It's a bug in paranoid mode's hash file naming. The bug is in let trust_hash_path = hashed_path.with_extension("hash");The trust symlink filename is unique per config file — e.g., This means all config files whose parent directory shares the same leaf name collide on a single hash file. For example, given a monorepo with multiple subdirectories named The trust symlinks are correctly unique: But there's only one Suggested fix: append // Before (broken):
let trust_hash_path = hashed_path.with_extension("hash");
// After (fixed):
let mut hash_name = hashed_path.file_name().unwrap().to_os_string();
hash_name.push(".hash");
let trust_hash_path = hashed_path.with_file_name(hash_name);This would produce The Repro: enable |
Beta Was this translation helpful? Give feedback.
there is a PR with proposed fix: #8628