chezmoi から mise bootstrap へ全面移行#22
Open
ry-itto wants to merge 4 commits into
Open
Conversation
dotfiles 管理を chezmoi から mise bootstrap (experimental) に置き換え。 - mise.toml に [tools]/[dotfiles]/[bootstrap.macos.defaults]/[bootstrap.hooks]/[tasks] を集約 - dot_*/private_* を home/ 配下の $HOME ミラーツリーへ移動し symlink 配置に変更 - dot_Brewfile -> Brewfile。casks は mise [bootstrap.packages] 非対応のため brew-bundle タスク (post-packages hook) で brew bundle を実行 - run_* スクリプトを hooks/tasks へ移植 (macos defaults / xcode / dein / zplug) - env.zsh の mise activate を Homebrew mise 解決に変更 (~/.local/bin ハードコード解消) - config.toml に experimental = true を追加 - CI を chezmoi verify から mise dotfiles apply + bootstrap --dry-run + 冪等性検証へ刷新 - README / CLAUDE.md を新フローへ更新 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…ap mise) macos-latest ships mise 2026.6.1 which predates `mise bootstrap` (2026.6.6); `brew install mise` saw it satisfied and did not upgrade. Use jdx/mise-action pinned to a version that has bootstrap/dotfiles. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
inline run='''...''' は TOML 内で読みづらいため、mise の file task
(mise-tasks/ 配下の実行可能スクリプト、自動検出) へ移動。
- mise-tasks/{brew-bundle,macos-extra,bootstrap} を新設 (#MISE description= 付き)
- mise.toml から [tasks.*] を削除 (hooks は mise run <task> のまま)
- {{config_root}} -> $MISE_PROJECT_ROOT に変更 (file task で利用可能)
- CI lint に shellcheck + bash -n (mise-tasks/*) を追加
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
apt shellcheck exits 1 on info-level SC2016 (intentional literal backticks in echo messages). Threshold at warning+ so info notes don't fail the build. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
概要
dotfiles 管理を chezmoi から
mise bootstrap(experimental) へ全面移行する。主な変更
mise.tomlに[tools]/[dotfiles]/[bootstrap.macos.defaults]/[bootstrap.hooks]/[tasks]を集約dot_*/private_*をhome/配下の$HOMEミラーツリーへ移動し、symlink 配置に変更dot_Brewfile→Brewfile。casks は mise の[bootstrap.packages]が非対応のため、brew-bundleタスク(post-packageshook)でbrew bundleを実行run_*スクリプトを hooks / tasks へ移植(macOS defaults / Xcode / dein / zplug)env.zshのmise activateを Homebrew mise 解決に変更(~/.local/bin/miseハードコード解消)config.tomlにexperimental = trueを追加mise dotfiles apply+bootstrap --dry-run+ 冪等性検証へ刷新挙動の変化
~/.zshrc編集が repo に直反映される一方、repo を消すと symlink が壊れるMISE_EXPERIMENTAL=1 mise bootstrap --yes(既存ファイルがある場合は--force-dotfiles)miseは Homebrew 版に一本化(自前~/.local/bin/miseは撤去推奨)検証 (ローカル, mise 2026.6.11)
mise dotfiles applyで 11 symlink 生成(スペース込みパスの VSCode settings 含む)mise bootstrap --dry-runクリーン /mise fmt --check/mise tasks ls/zsh -n全て通過🤖 Generated with Claude Code