Skip to content

fix(mise): manage config.toml instead of unused config.yaml#3

Open
posquit0 wants to merge 1 commit into
mainfrom
fix/mise-config-toml
Open

fix(mise): manage config.toml instead of unused config.yaml#3
posquit0 wants to merge 1 commit into
mainfrom
fix/mise-config-toml

Conversation

@posquit0

Copy link
Copy Markdown
Owner

Summary

mise only loads ~/.config/mise/config.toml — the chezmoi-managed ~/.config/mise/config.yaml (TOML content under a .yaml filename) was never read. Verified with mise config ls, which lists only config.toml.

  • Rename the source file to private_config.toml so chezmoi manages the file mise actually loads
  • Declare node = "26" / ruby = "4.0.5" pins, matching what the darwin install scripts currently write into the live config.toml (keeps chezmoi diff clean)
  • Drop the [_] foo = "bar" placeholder section
  • Add .chezmoiremove so the stale ~/.config/mise/config.yaml is cleaned up on apply

Verification

MISE_GLOBAL_CONFIG_FILE=<new file> mise config ls parses the config and lists node, ruby, terraform.

Note

Since the install scripts run mise use --global, they rewrite config.toml; if a future script pins a different version than declared here, chezmoi diff will show drift. A follow-up could replace the per-tool install scripts with a single run_onchange script that runs mise install against this declarative config.

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
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.

1 participant