Skip to content

cmd/check-bottle-modification: fix handling of removed files#230832

Merged
carlocab merged 1 commit intomainfrom
fix-formula-renames
Jul 22, 2025
Merged

cmd/check-bottle-modification: fix handling of removed files#230832
carlocab merged 1 commit intomainfrom
fix-formula-renames

Conversation

@carlocab
Copy link
Member

@carlocab carlocab commented Jul 22, 2025

We don't need to error out here if a formula is removed. This is also
fixes handling of formula renames. See, for example, #230744 or #230831.

@carlocab carlocab added ready to merge PR can be merged once CI is green CI-syntax-only Change only affects brew syntax, not the install. Only run syntax CI. labels Jul 22, 2025
@github-actions github-actions bot added automerge-skip `brew pr-automerge` will skip this pull request new formula PR adds a new formula to Homebrew/homebrew-core labels Jul 22, 2025
@carlocab carlocab enabled auto-merge July 22, 2025 05:53
@github-actions

This comment was marked as resolved.

We don't need to error out here if a formula is removed. This is also
fixes handling of formula renames. See, for example, #230744 or #230831.
@carlocab carlocab changed the title fix formula renames cmd/check-bottle-modification: fix handling of removed files Jul 22, 2025
@carlocab carlocab force-pushed the fix-formula-renames branch from 4b40e68 to 58987bd Compare July 22, 2025 05:54
@github-actions github-actions bot removed the new formula PR adds a new formula to Homebrew/homebrew-core label Jul 22, 2025
@carlocab carlocab requested review from a team and Copilot July 22, 2025 16:08
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

This pull request fixes the handling of removed files in the check-bottle-modification command and addresses issues with formula renames. The changes prevent errors when formulas are removed and improve the logic for filtering relevant files.

  • Skip processing of removed files to prevent errors during formula removal/rename operations
  • Fix the formula path filtering to use correct "Formula/" prefix instead of "Formula"

@carlocab carlocab added this pull request to the merge queue Jul 22, 2025
Merged via the queue into main with commit ed922ec Jul 22, 2025
25 checks passed
@carlocab carlocab deleted the fix-formula-renames branch July 22, 2025 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge-skip `brew pr-automerge` will skip this pull request CI-syntax-only Change only affects brew syntax, not the install. Only run syntax CI. ready to merge PR can be merged once CI is green

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants