Skip to content

fix: detect homebrew cask installs#42

Merged
lusu007 merged 1 commit intomainfrom
codex/fix-homebrew-cask-install-method
May 6, 2026
Merged

fix: detect homebrew cask installs#42
lusu007 merged 1 commit intomainfrom
codex/fix-homebrew-cask-install-method

Conversation

@lusu007
Copy link
Copy Markdown
Contributor

@lusu007 lusu007 commented May 6, 2026

Pull Request

Description

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • ♻️ Refactoring
  • 📚 Documentation
  • 🔧 Chore

Related Issues

  • Fixes #

Testing

  • Unit tests pass
  • Manual testing completed
  • New tests added for new functionality

Checklist

  • I have performed a self-review of my own code
  • Tests have been added/updated and pass (if needed)
  • Documentation has been updated (if needed)

Copilot AI review requested due to automatic review settings May 6, 2026 14:21
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the CLI’s install-method detection (used by grounds version --check update hints) to better recognize Homebrew Cask installations and recommend an appropriate brew upgrade command.

Changes:

  • Added separate update-command constants for Homebrew formula vs Homebrew cask upgrades.
  • Extended Homebrew detection logic to identify cask installs and return a cask-specific upgrade command.
  • Added unit tests for Homebrew cask install paths on Linux.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
internal/version/install_method.go Adds Homebrew cask detection and separates formula vs cask upgrade commands.
internal/version/install_method_test.go Adds test cases covering Linux Homebrew cask install paths.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread internal/version/install_method.go Outdated
Comment thread internal/version/install_method_test.go Outdated
@lusu007 lusu007 force-pushed the codex/fix-homebrew-cask-install-method branch from d2cd0e4 to efcc0d8 Compare May 6, 2026 14:27
@lusu007 lusu007 merged commit a2ec0a1 into main May 6, 2026
5 checks passed
@lusu007 lusu007 deleted the codex/fix-homebrew-cask-install-method branch May 6, 2026 14:36
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.

2 participants