Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: sort keys in __MISE_DIFF to make the serialised value deterministic #3640

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

joshbode
Copy link
Contributor

__MISE_DIFF changes value randomly when updating if any environment variables
are set by .mise.toml since the keys (of new and old) are not being sorted
when serialised.

(I use the value of __MISE_DIFF to determine if mise has updated the
environment to colour my prompt)

src/env_diff.rs Outdated Show resolved Hide resolved
@jdx jdx enabled auto-merge (squash) December 17, 2024 13:35
@jdx jdx merged commit 2aabb5c into jdx:main Dec 17, 2024
18 checks passed
@joshbode joshbode deleted the sort-diff-keys branch December 17, 2024 13:43
miguelmig pushed a commit to miguelmig/mise that referenced this pull request Dec 21, 2024
…istic (jdx#3640)

Co-authored-by: jdx <216188+jdx@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants