Skip to content

feat: Support Homebrew managed installations of Topo#266

Merged
muchzill4 merged 11 commits into
arm:mainfrom
muchzill4:homebrew-upgrade-guidance
May 20, 2026
Merged

feat: Support Homebrew managed installations of Topo#266
muchzill4 merged 11 commits into
arm:mainfrom
muchzill4:homebrew-upgrade-guidance

Conversation

@muchzill4

Copy link
Copy Markdown
Contributor

Changes

topo upgrade changes

  • Hide upgrade sub-command when we detect topo is managed by brew
    • It is still invokable, so that muscle memory (if any) doesn't error with "unknown sub-command"
  • If upgrade is invoked, refuse to upgrade homebrew if it's managed by brew

scripts/install.sh changes

  • Refuse to install if --path looks homebrew-like

@muchzill4 muchzill4 requested a review from a team as a code owner May 18, 2026 12:52

@awphi awphi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

One other missing piece is that the version check that exists on topo health (dependencies.go) will currently suggest users run topo upgrade when out of date which is now not always accurate.

Comment thread cmd/topo/upgrade.go
Comment thread internal/upgrade/upgrade.go Outdated
Comment thread scripts/install.sh
@muchzill4 muchzill4 force-pushed the homebrew-upgrade-guidance branch from ec8f05b to c1afbc6 Compare May 18, 2026 14:35
Comment thread scripts/install.sh Outdated
return 0 ;;
esac

case "$(uname -s)" in

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Note to self: this is a bit weird. Should we not allow installing to /usr/local/bin if user desires to do so?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah, it feels like we shouldn't do this?

Comment thread internal/upgrade/command.go
Comment thread scripts/install.sh Outdated
return 0 ;;
esac

case "$(uname -s)" in

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yeah, it feels like we shouldn't do this?

muchzill4 added 11 commits May 20, 2026 11:02
Signed-off-by: Bartek Mucha <bartosz.mucha@arm.com>
Signed-off-by: Bartek Mucha <bartosz.mucha@arm.com>
Signed-off-by: Bartek Mucha <bartosz.mucha@arm.com>
Signed-off-by: Bartek Mucha <bartosz.mucha@arm.com>
Signed-off-by: Bartek Mucha <bartosz.mucha@arm.com>
Signed-off-by: Bartek Mucha <bartosz.mucha@arm.com>
Signed-off-by: Bartek Mucha <bartosz.mucha@arm.com>
Signed-off-by: Bartek Mucha <bartosz.mucha@arm.com>
Signed-off-by: Bartek Mucha <bartosz.mucha@arm.com>
Signed-off-by: Bartek Mucha <bartosz.mucha@arm.com>
Signed-off-by: Bartek Mucha <bartosz.mucha@arm.com>
@muchzill4 muchzill4 force-pushed the homebrew-upgrade-guidance branch from ad4dfc7 to 8835e26 Compare May 20, 2026 10:09
@muchzill4 muchzill4 requested a review from awphi May 20, 2026 10:10
@muchzill4 muchzill4 merged commit db9952a into arm:main May 20, 2026
5 checks passed
@muchzill4 muchzill4 deleted the homebrew-upgrade-guidance branch May 20, 2026 10:25
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.

3 participants