When exactly does the __MISE_WATCH or __MISE_DIFF env variable change? #2213
Unanswered
ffittschen
asked this question in
Q&A
Replies: 1 comment 3 replies
-
that is actually a very difficult question to answer—I have no idea. The code doesn't "change" it, it generates it every time the prompt is displayed. You'd have to trace the code to see. If it's a problem you could just not use |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I'm curious when exactly the
__MISE_WATCH
or__MISE_DIFF
environment variable changes.When tracking down some issues with the Swift Package Manager that appeared after installing
mise
, I discovered that SPM actually uses the environment as input for their cache key (see implementation, discussion). In Swift 5.10, they actually added a filter to remove some env variables, which change very often, which led me to debug my env variables.I ran
printenv
twice while waiting 1 minute between the invocations and observed that the__MISE_WATCH
env variable changed, without me touching anything on the system. That's why I'm asking the question.Beta Was this translation helpful? Give feedback.
All reactions