fix(mise): manage config.toml instead of unused config.yaml#3
Open
posquit0 wants to merge 1 commit into
Open
Conversation
mise only loads ~/.config/mise/config.toml; the previously managed config.yaml (TOML content under a .yaml name) was never read, so the chezmoi-managed mise config had no effect. - Rename source to private_config.toml so chezmoi manages the file mise actually loads - Declare node/ruby pins matching what the install scripts write - Drop the placeholder [_] section - Add .chezmoiremove to clean up the stale ~/.config/mise/config.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
mise only loads
~/.config/mise/config.toml— the chezmoi-managed~/.config/mise/config.yaml(TOML content under a.yamlfilename) was never read. Verified withmise config ls, which lists onlyconfig.toml.private_config.tomlso chezmoi manages the file mise actually loadsnode = "26"/ruby = "4.0.5"pins, matching what the darwin install scripts currently write into the liveconfig.toml(keepschezmoi diffclean)[_] foo = "bar"placeholder section.chezmoiremoveso the stale~/.config/mise/config.yamlis cleaned up on applyVerification
MISE_GLOBAL_CONFIG_FILE=<new file> mise config lsparses the config and lists node, ruby, terraform.Note
Since the install scripts run
mise use --global, they rewriteconfig.toml; if a future script pins a different version than declared here,chezmoi diffwill show drift. A follow-up could replace the per-tool install scripts with a singlerun_onchangescript that runsmise installagainst this declarative config.