Merge pull request #20599 from Homebrew/download_strategy-handle-tangled.sh-git

DownloadStrategyDetector: handle tangled.sh Git URLs
This commit is contained in:
Mike McQuaid 2025-09-01 12:41:37 +00:00 committed by GitHub
commit 15f093c32b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -1616,6 +1616,7 @@ class DownloadStrategyDetector
when %r{^https?://.+\.git$},
%r{^git://},
%r{^https?://git\.sr\.ht/[^/]+/[^/]+$},
%r{^https?://tangled\.sh/[^/]+/[^/]+$},
%r{^ssh://git}
GitDownloadStrategy
when %r{^https?://www\.apache\.org/dyn/closer\.cgi},

View File

@ -85,6 +85,9 @@ module Homebrew
end
end
# TODO: Remove this exception for `lsr` after support for tangled.sh
# Git URLs is available in a brew release.
return if name == "lsr"
return if url_strategy != DownloadStrategyDetector.detect("", using)
problem "Redundant `using:` value in URL"