Markus Reiter
759fc12089
Merge pull request #10304 from reitermarkus/cask-config-keys
...
Ignore invalid keys when reading existing `Cask::Config`.
2021-01-13 11:31:57 +01:00
Markus Reiter
9922ad382f
Ignore invalid keys when reading existing Cask::Config
.
2021-01-13 08:30:50 +01:00
Markus Reiter
92b58666ef
Improve audit for livecheck
in casks.
2021-01-13 08:12:11 +01:00
Seeker
f476bcafcb
upgrade: show formula caveats after casks have been updated
2021-01-11 11:43:11 -08:00
Seeker
b9854bd4cf
rubocops: add unless_multiple_conditions
2021-01-08 10:33:54 -08:00
Mike McQuaid
50ffa38213
Merge pull request #10247 from iMichka/sha256
...
checksum: simplify, use only sha256
2021-01-08 09:43:23 +00:00
Michka Popoff
5e91802470
checksum: simplify, use only sha256
...
We use only one sha type right now.
Needed for https://github.com/Homebrew/brew/pull/10186
2021-01-07 20:46:13 +01:00
Mike McQuaid
d8a5e467e8
audit: quieten down and make casks audit consistent with formulae.
...
The current casks audit is very noisy in the no-op case (i.e. no errors)
https://github.com/Homebrew/brew/pull/10234/checks?check_run_id=1655630568#step:15:7
This means when there are errors and you're querying all casks it's
pretty hard to quickly identify the problems.
This commit silences the `passing`, `warning` and header/summary output
when you're querying all casks (rather than a specific cask or tap).
This is more consistent with `brew audit` for formulae which is silent
unless there are audit failures.
2021-01-07 13:31:14 +00:00
Seeker
924d42e4cb
cask: add DSL methods to RBI file
2021-01-05 09:11:31 -08:00
Markus Reiter
a01deaaf52
Handle running apps in application.<bundle_id>.<number>.<number>
format.
2020-12-26 14:02:49 +01:00
Mike McQuaid
4135c0abca
Merge pull request #10083 from xu-cheng/cask-conflict-check-tap
...
cask/installer: do not install tap during conflict checking
2020-12-24 12:44:23 +00:00
Rylan Polster
cb8e9a695f
Merge pull request #10087 from Rylan12/migrate-shared-audit-exceptions
...
audit: migrate shared audits to taps
2020-12-23 16:36:42 -05:00
Cheng XU
72a346e6c8
cask/installer: do not install tap during conflict checking
...
If the tap of the conflicted cask is not installed, we should just skip it.
This matches the behavior of formula installation.
Without this, running `brew install dropbox` would result to install
the `homebrew/cask-versions` tap.
Fixes #9125 .
2020-12-22 15:32:11 -08:00
Rylan Polster
ec4fe89a94
audit: migrate shared audits to taps
2020-12-21 14:45:02 -05:00
Markus Reiter
8b17017108
Improve error message for missing PKG source.
2020-12-21 15:54:32 +01:00
Markus Reiter
82c1e6fb0e
Fix basename for extracting cask downloads.
2020-12-21 15:43:25 +01:00
Markus Reiter
8fa5a8e832
Don't suggest adding appcast if livecheck exists.
2020-12-19 19:34:24 -05:00
Mike McQuaid
74fb058c7e
More deprecations
...
More deprecations, disabling and removal for Homebrew 2.7.0.
2020-12-18 14:17:37 +00:00
Mike McQuaid
010ae37420
Merge pull request #9403 from MikeMcQuaid/deprecate-cask-requirements
...
Deprecate cask requirements.
2020-12-18 12:15:35 +00:00
Markus Reiter
0ae8f0edc8
Merge pull request #9493 from reitermarkus/url-unversioned
...
Add audit for unversioned URLs with checksum.
2020-12-16 10:19:48 +01:00
Markus Reiter
44cf1041ac
Fix tests.
2020-12-16 09:45:58 +01:00
Markus Reiter
1064678d3d
Add audit for unversioned URLs with checksum.
2020-12-16 09:36:21 +01:00
Markus Reiter
e194c86a2b
Fix audit for verified
parameter.
2020-12-16 09:29:45 +01:00
Markus Reiter
d81e9009e1
Merge pull request #9541 from reitermarkus/audit-livecheck
...
Add audit for `livecheck` in casks.
2020-12-15 16:19:06 +01:00
Mike McQuaid
87dd13aea6
Deprecate cask requirements.
...
This probably has to wait until 2.7.0 now and will require a bunch of
formula changes/deprecations but we should probably start moving in this
direction given we're not installing any of these on our CI any more.
2020-12-15 14:19:45 +00:00
Markus Reiter
f711352cfd
Add audit for livecheck
in casks.
2020-12-14 15:44:35 +01:00
Markus Reiter
287dfee35f
Properly handle ~
artifact targets.
2020-12-13 03:31:34 +01:00
Markus Reiter
3b366d05b9
Fix code style.
2020-12-12 17:43:23 -05:00
Seeker
6794a78087
livecheck: add support for casks
2020-12-12 17:43:21 -05:00
Markus Reiter
6e5cf565e3
Ignore verified
for url do
blocks.
2020-12-12 06:01:26 +01:00
Markus Reiter
9e0a54fd37
Reuse curl_http_content_headers_and_checksum
for appcast audit.
2020-12-08 23:29:01 +01:00
Markus Reiter
fa52eab58e
Merge pull request #9450 from reitermarkus/url-unversioned
...
Add `unversioned?` method to `Cask::URL`.
2020-12-08 19:48:37 +01:00
Markus Reiter
c6876ba65c
Add UnversionedCaskChecker
helper class.
2020-12-07 23:03:47 +01:00
Markus Reiter
ef1ea75c08
Add support for single-package casks.
2020-12-07 23:03:47 +01:00
Markus Reiter
b57a448f2a
Add bump-unversioned-casks
command.
2020-12-07 23:03:47 +01:00
Markus Reiter
76a3c0338b
Add unversioned?
method to Cask::URL
.
2020-12-07 21:40:47 +01:00
Markus Reiter
9649ef975c
Only install default cask tap automatically on macOS.
2020-12-05 03:39:01 +01:00
Markus Reiter
e0aa934219
Ensure default cask tap is installed on CaskUnavailableError
.
2020-12-05 03:25:58 +01:00
Mike McQuaid
9216d8abe6
rubocop-rails: make fixes.
2020-12-02 10:43:04 +00:00
linzichao
058a1c3645
add verified parameter in url
2020-12-01 01:17:21 +01:00
Markus Reiter
6750448d95
Fix some auto-correctable type errors.
2020-11-29 21:23:54 +01:00
Markus Reiter
79d6c059fc
Merge pull request #9297 from reitermarkus/brew-typecheck
...
Refactor `brew typecheck` and upgrade `typed` sigils.
2020-11-27 00:01:47 +01:00
Mike McQuaid
6936f56b13
Merge pull request #9298 from MikeMcQuaid/deprecation-fixes
...
Deprecation fixes
2020-11-25 17:04:09 +00:00
Markus Reiter
e354a4f2d6
Merge pull request #9274 from carlossg/nil
...
fix: launchctl list can return empty id
2020-11-25 17:58:31 +01:00
Mike McQuaid
311c10636b
Deprecation fixes
...
- `brew uninstall --zap` replaces `brew cask zap`
- clarify how `--json` should behave
Fixes https://github.com/Homebrew/brew/issues/9296
2020-11-25 16:33:16 +00:00
Markus Reiter
5be4c9b5e0
Upgrade typed
sigils.
2020-11-25 17:04:19 +01:00
Mike McQuaid
b484f70572
Remove cask
from man brew
.
2020-11-25 09:37:21 +00:00
Carlos Sanchez
278bc77f2d
fix: launchctl list can return empty id
...
causing
Error: undefined method `match?' for nil:NilClass
Seen in macOS Big Sur
2020-11-24 18:12:10 +01:00
Markus Reiter
3c2ec1c60f
Deprecate remaining cask commands.
2020-11-21 19:56:12 +01:00
Markus Reiter
b6492094d0
Allow creating casks with brew create --cask
.
2020-11-21 18:52:26 +01:00