Make the dotfiles cross-platform (macOS + Linux)#10
Merged
Conversation
Dotbot's -c flag takes a single config file, so passing both the common and OS-specific configs as separate -c flags meant only the last one ran — skipping all the main symlinks and the Homebrew install. Concatenate the two YAML sequences into a temp file and pass that instead. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
coreutils moved to Brewfile.darwin, but CI skips that file entirely to avoid casks/MAS apps it can't install — so the coreutils PATH shim was never exercised. Mirror the original CI pattern: bundle just the taps and brew formulae from the macOS file when running in CI. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Homebrew's telnet formula is macOS-only, so it failed under Linuxbrew. The failure was masked because the multi-line bundle command's exit status came from the trailing macOS `if`, which is 0 on Linux. Move telnet to Brewfile.darwin, install it via apt on Linux instead, and add `|| exit 1` so a real `brew bundle` failure fails the build. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Add a Debian/Ubuntu installation section alongside the macOS one and flag the macOS-only steps (App Store, iCloud, mackup). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The runner ships a preinstalled Linuxbrew; restoring a cached Cellar on
top of it left kegs present-but-unregistered, so `brew bundle`'s upgrade
step failed ("File exists" / "No such keg"). The first run passed only
because the cache was cold. Cache just ~/.cache/Homebrew (downloads) so
bottles aren't re-fetched but install cleanly each run, and bump the
cache key to v2 to discard the poisoned archive.
Co-Authored-By: Claude Opus 4.7 (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.
No description provided.