Skip to content

Enable mbx Cargo wrapper on Linux and Windows as well as Apple Silicon macOS - #71

Merged
kelchm merged 1 commit into
masterfrom
feat/mbx-cross-platform
Nov 22, 2026
Merged

kelchm merged 1 commit into
masterfrom
feat/mbx-cross-platform

Conversation

@kelchm

@kelchm kelchm commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Extends the global mbx (mr-boxington) mise Cargo wrapper from Apple Silicon macOS to Linux and Windows as well, leaving only Intel macOS (darwin/amd64, which has no prebuilt mr-boxington binary) excluded.

Changes

  • Cross-platform mbx.toml (home/dot_config/mise/conf.d/mbx.toml.tmpl, home/.chezmoidata.toml, home/.chezmoiignore):
    • Removed .config/mise/conf.d/mbx.toml from platformPaths.darwin, keeping the darwin + non-arm64 exclusion in .chezmoiignore and the template guard.
    • Dropped explicit MBX_CACHE_DIR so mbx uses each OS's native cache path (~/Library/Caches/mbx on macOS, ~/.cache/mbx on Linux, %LOCALAPPDATA%\mbx on Windows) while keeping MBX_GC_MAX_TOTAL_SIZE = "100GiB" and [wrappers.cargo].
  • Linux & Windows bootstrap + PATH:
    • run_onchange_after_02-install-mise-tools.sh.tmpl: includes # mbx: fingerprint on Linux as well as Apple Silicon macOS.
    • run_onchange_after_02-install-mise-tools.ps1.tmpl: tracks # mbx: fingerprint, runs mise reshim, and ensures %LOCALAPPDATA%\mise\command-wrappers\bin sits ahead of %LOCALAPPDATA%\mise\shims on persistent User Path.
    • home/Documents/WindowsPowerShell/profile.ps1: prepends mise\command-wrappers\bin ahead of mise\shims (below ~/.local/bin).
  • CI, docs, and tests:
    • .github/workflows/validate.yml: verifies mise exec -- mbx --version on both macos-latest and windows-latest, and checks Windows command-wrappers/bin/cargo.{exe,cmd}.
    • tests/test_profiles.py: verifies mbx.toml and bootstrap templates across darwin/arm64, darwin/amd64, linux/amd64, and windows/amd64.
    • docs/profiles.md: documents cross-platform mbx setup and per-OS filesystem behavior.

Environment checks

  • Motile (Linux): $HOME and $HOME/.cache share a single Btrfs filesystem (native reflinks), mise is 2026.11.9, and Omarchy's bootstrap already prepends command-wrappers ahead of shims.
  • Talaria (Windows): mise is 2026.10.12 and Developer Mode is enabled (so managed target symlinks work).
  • Local tests: test_mbx_and_hidden_display_scoping, test_standalone_platforms_and_bootstrap_render, test_omarchy_preserves_system_owned_files_and_tools, and test_bootstrap_scripts_run_after_their_configuration_is_written all pass.

@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 24 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9e13da9b-910a-4791-b056-c8609d204a73
Commits

Reviewing files that changed from the base of the PR and between af7eb5e and b0e4a75.

Files selected for processing: 10

  • .github/workflows/validate.yml
  • docs/profiles.md
  • home/.chezmoidata.toml
  • home/.chezmoiscripts/run_onchange_after_02-install-mise-tools.ps1.tmpl
  • home/.chezmoiscripts/run_onchange_after_02-install-mise-tools.sh.tmpl
  • home/Documents/WindowsPowerShell/profile.ps1
  • home/dot_config/fish/config.fish
  • home/dot_config/mise/conf.d/mbx.toml.tmpl
  • home/dot_config/shell/env.sh
  • tests/test_profiles.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@kelchm
kelchm merged commit b888917 into master Nov 22, 2026
7 checks passed
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