Skip to content

brew.sh: calculate HOMEBREW_MACOS_VERSION_NUMERIC earlier.#21752

Merged
MikeMcQuaid merged 1 commit intomainfrom
shellenv_version_numeric
Mar 17, 2026
Merged

brew.sh: calculate HOMEBREW_MACOS_VERSION_NUMERIC earlier.#21752
MikeMcQuaid merged 1 commit intomainfrom
shellenv_version_numeric

Conversation

@MikeMcQuaid
Copy link
Member

This is needed by brew shellenv.

Copilot AI review requested due to automatic review settings March 17, 2026 16:05
Copy link
Contributor

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

Moves macOS version detection earlier in brew.sh so brew shellenv can rely on HOMEBREW_MACOS_VERSION_NUMERIC being set before cmd/shellenv.sh runs.

Changes:

  • Compute HOMEBREW_MACOS_VERSION and HOMEBREW_MACOS_VERSION_NUMERIC near the top of brew.sh.
  • Remove the later initialization of these variables further down in brew.sh.

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

You can also share your feedback on Copilot code review. Take the survey.

@Bo98
Copy link
Member

Bo98 commented Mar 17, 2026

Thanks!

@MikeMcQuaid MikeMcQuaid enabled auto-merge March 17, 2026 16:13
@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Mar 17, 2026
Merged via the queue into main with commit 052ec5f Mar 17, 2026
40 checks passed
@MikeMcQuaid MikeMcQuaid deleted the shellenv_version_numeric branch March 17, 2026 16:47
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