Skip to content

Conversation

@cho-m
Copy link
Member

@cho-m cho-m commented Dec 12, 2025

  • 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 lgtm (style, typechecking and tests) with your changes locally?

For now, just add a quick fix to support concurrent installs using JSON API for casks with language specific URLs.

Leaving a FIXME comment as this blocks the main process while downloading Cask source which doesn't align with our usage of download queue.

Ideally should be handled asynchronously.


Fixes #21094

Copilot AI review requested due to automatic review settings December 12, 2025 00:40
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 PR adds a workaround to support concurrent installs for casks with language-specific URLs when using the JSON API. The change modifies the download enqueueing logic to handle casks that require the full caskfile to be loaded.

Key changes:

  • Added conditional logic to detect casks with language-specific URLs
  • Synchronously loads cask source for language-specific casks before enqueueing downloads
  • Maintains async behavior for casks without language specifications

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

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Thanks @cho-m! Could you open an issue to track this FIXME at some point?

The relevant logic should be porting the load_cask_from_source_api! logic to use the download queue.

@MikeMcQuaid MikeMcQuaid added this pull request to the merge queue Dec 12, 2025
Merged via the queue into main with commit a63ee14 Dec 12, 2025
43 checks passed
@MikeMcQuaid MikeMcQuaid deleted the cask-language-workaround branch December 12, 2025 15:48
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.

Concurrent download + API: cask reinstall downloads the wrong language

3 participants