.disable-self-update not working #4468
-
Related #4077 Lines 115 to 122 in fe5a71d Suppose mise is located at /usr/bin/mise , the function will look at /usr/lib/.disable-self-update rather than /usr/lib/mise/.disable-self-update . This is a problem that affects almost every distribution's packaging.
mise doctor (I believe it's not needed)
|
Beta Was this translation helpful? Give feedback.
Answered by
ZeroAurora
Feb 21, 2025
Replies: 1 comment 1 reply
-
I implemented a quick fix in #4476 . Personally, I would like to put forward the following points:
pub fn is_available() -> bool {
!std::fs::canonicalize(&*env::MISE_BIN)
.ok()
.as_ref()
.and_then(|p| p.parent())
.and_then(|p| p.parent())
.map(|p| {
p.join("lib")
.join("mise")
.join(".disable-self-update")
.exists()
})
.unwrap_or_default()
}
Never mind if you are not interested :) A quick ping at @jdx to look at it |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
solved in #4476