Skip to content

Conversation

@JBallin
Copy link

@JBallin JBallin commented Jan 24, 2026

Fixes #9822

Summary

Make the Homebrew upgrade command explicit by using brew upgrade --cask codex.

Motivation

During the Codex self-update, Homebrew can emit an avoidable warning because the
name codex resolves to a cask:

Warning: Formula codex was renamed to homebrew/cask/codex.

While the upgrade succeeds, this relies on implicit name resolution and produces
unnecessary output during the update flow.

Why --cask

  • Eliminates warning/noise for users
  • Explicitly matches how Codex is distributed via Homebrew
  • Avoids reliance on name resolution behavior
  • Makes the command more robust if a codex formula is ever introduced

Context

This restores the --cask flag that was removed in #6238 after being considered
“not necessary” during review: #6238 (comment).

Use `brew upgrade --cask codex` instead of relying on implicit cask resolution.

Without `--cask`, Homebrew can emit a warning indicating that `codex` resolves
to the `homebrew/cask/codex` cask. Being explicit avoids unnecessary noise and
keeps the update command deterministic if a `codex` formula is ever introduced.
@github-actions
Copy link
Contributor

github-actions bot commented Jan 24, 2026

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@JBallin
Copy link
Author

JBallin commented Jan 24, 2026

I have read the CLA Document and I hereby sign the CLA

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.

Codex self-update emits Homebrew rename warning (brew upgrade codex)

1 participant