Skip to content

Fix wildcard copy in cask updates.#15407

Merged
reitermarkus merged 11 commits intoHomebrew:masterfrom
JBYoshi:cask-upgrade/wildcards
May 12, 2023
Merged

Fix wildcard copy in cask updates.#15407
reitermarkus merged 11 commits intoHomebrew:masterfrom
JBYoshi:cask-upgrade/wildcards

Conversation

@JBYoshi
Copy link
Contributor

@JBYoshi JBYoshi commented May 11, 2023

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew style with your changes locally?
  • Have you successfully run brew typecheck with your changes locally?
  • Have you successfully run brew tests with your changes locally?

This fixes a regression in #15138 where the copying step may fail with a "cp: [...].app/*: No such file or directory" error. (This is one of the errors documented in https://github.com/orgs/Homebrew/discussions/4498.) This PR also adds a unit test to cover the relevant portion of the code.

Fixes one of the errors in https://github.com/orgs/Homebrew/discussions/4498 (specifically "cp: [...].app/*:
No such file or directory").
Copy link
Member

@carlocab carlocab left a comment

Choose a reason for hiding this comment

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

Thanks!

@reitermarkus reitermarkus changed the title Replace wildcard copy in cask updates with a loop over children. Fix wildcard copy in cask updates. May 12, 2023
@reitermarkus reitermarkus merged commit 8ea287c into Homebrew:master May 12, 2023
@reitermarkus
Copy link
Member

Thanks, @JBYoshi!

@JBYoshi JBYoshi deleted the cask-upgrade/wildcards branch May 12, 2023 17:30
@github-actions github-actions bot added the outdated PR was locked due to age label Jun 12, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

outdated PR was locked due to age

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants