-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
feat: use shared checks for URL cop #17521
feat: use shared checks for URL cop #17521
Conversation
7e3a99c
to
50c21b4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work, thanks @SMillerDev!
Just wondering, does this one make sense for casks?
|
50c21b4
to
cfab6d6
Compare
While versioned tarballs are ideal, there's |
After my last changes in cask there are just 3 errors remaining that I need some help with: This gets matched as a github repo, not sure how to override that and allow this. Or how to get this to download as a tarball. Casks/g/github.rb:9:3: C: Cask/Url: Use GitHub tarballs rather than zipballs (url is url "https://desktop.githubusercontent.com/github-desktop/releases/#{version}/GitHubDesktop-#{arch}.zip",
verified: "desktop.githubusercontent.com/github-desktop/").
url "https://desktop.githubusercontent.com/github-desktop/releases/#{version}/GitHubDesktop-#{arch}.zip", ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Casks/g/github@beta.rb:9:3: C: Cask/Url: Use GitHub tarballs rather than zipballs (url is url "https://desktop.githubusercontent.com/github-desktop/releases/#{version}/GitHubDesktop-#{arch}.zip",
verified: "desktop.githubusercontent.com/github-desktop/releases/").
url "https://desktop.githubusercontent.com/github-desktop/releases/#{version}/GitHubDesktop-#{arch}.zip", ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ This repo contains zip files for distribution. Preferably I'd also override this one to allow it. Casks/s/sol.rb:5:3: C: Cask/Url: Use GitHub tarballs rather than zipballs (url is url "https://raw.githubusercontent.com/ospfranco/sol/main/releases/#{version}.zip",
verified: "raw.githubusercontent.com/ospfranco/sol/").
url "https://raw.githubusercontent.com/ospfranco/sol/main/releases/#{version}.zip", ...
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
https://github.com/Homebrew/brew/blob/master/Library/Homebrew/rubocops/urls.rb#L225 Add
https://github.com/ospfranco/sol/releases/tag/2.1.41 Looks like just default generated archives from here so this cask should be fixed to use a tarball. |
cfab6d6
to
bbe16d9
Compare
No, it's actually https://github.com/ospfranco/sol/blob/main/releases/2.1.58.zip. The folder in the repo is called |
Oh, weird. Yeh, in that case I guess: add another exception here (probably for |
bbe16d9
to
77f1f9e
Compare
Dropped the releases part, now we allow all zip files when they are part of the repo |
77f1f9e
to
48134ab
Compare
Thanks @SMillerDev, great work again! |
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?This continues what I did for
homepage
to make sure rules are consistent between cask and formula urls.