Repository navigation
fix(install): clear blockers before brew cask install and surface daemon errors - #12
Merged
Merged
Conversation
…mon errors
On macOS the Homebrew path could fail and silently fall back to the
manual install, leaving the daemon service on an older binary:
- Run `brew update` so a reinstall sees the newest cask.
- Remove regular (non-symlink) shelltime/shelltime-daemon files in
brew's bin dir; the cask refuses to link over them ("It seems there is
already a Binary") and they shadow the cask.
- Uninstall a leftover pre-cask `shelltime` formula keg, which Homebrew
can't migrate to the same-named cask in the same tap.
- Install with `--cask` explicitly.
- Print `shelltime daemon reinstall` output when it fails instead of
discarding it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Review Clear, well-commented fix that targets the three failure modes described. Looks good
Suggestions
Tests
No security concerns beyond the 🤖 Generated with Claude Code |
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.
Problem
On macOS,
curl -sSL https://shelltime.xyz/i | bashcould fail the Homebrew install and quietly fall back to the manual install, leaving the daemon service on the previous release:$(brew --prefix)/bin/shelltime-daemon(written by oldershelltime updateruns) makes the cask's binary link fail with "It seems there is already a Binary at …".shelltimeformula keg.tap_migrations.jsonmapsshelltimeto the same tap and name, which Homebrew treats as a no-op, so these users are never migrated.shelltime daemon reinstalloutput went to/dev/null, which hid failures.Changes (macOS Homebrew branch of
install.bash)brew update --quietso a reinstall sees the newest cask despite brew's auto-update throttle.shelltime/shelltime-daemonfiles from brew's bin dir before installing.$(brew --cellar)/shelltimeexists,brew uninstall --formula shelltime.brew install --cask shelltime/tap/shelltime.shelltime daemon reinstalloutput and print it to stderr when the command fails.Companion CLI fix: shelltime/cli
fix/daemon-binary-resolution. It makes a curl-installed CLI always use its own daemon and stopsshelltime updatefrom writing into the Homebrew prefix.Testing
bash -n install.bashpasses./opt/homebrew/bin/shelltime-daemonregular file and the old formula keg installed, and should end withshelltime daemon statusreporting the latest version.🤖 Generated with Claude Code