Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cask: add mirror stanza #16828

Closed
wants to merge 1 commit into from
Closed

Conversation

cho-m
Copy link
Member

@cho-m cho-m commented Mar 5, 2024

  • 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?

Mainly looking into this due to Calibre, which has a long history of URL problems: Homebrew/homebrew-cask#168001 (comment)

Draft to allow input in advance while I continue to work on it.

Comment on lines +60 to +66
@urls_index += 1
if @urls_index < @urls.length
@downloader = nil
puts "Trying a mirror..."
retry
end
@urls_index = 0
Copy link
Member Author

Choose a reason for hiding this comment

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

Some oddness to try to allow mirrors have their own specs.

Downloadable has mirrors-support for URL strings which will use the same specs as main URL. I guess the simpler option would be to only support verified: and then set @mirrors = ...

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.

Seems like a good idea!

Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale No recent activity label Mar 28, 2024
@github-actions github-actions bot closed this Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale No recent activity
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants