3989 Commits

Author SHA1 Message Date
Markus Reiter
b1b4518998 Fix sudo prompt. 2020-12-19 19:41:24 +01:00
Markus Reiter
2dd40720f0 Add test for SystemCommand with SIGINT handler. 2020-12-18 16:48:49 +01:00
Markus Reiter
3db55d13d6 Improve handling of SIGINT. 2020-12-18 16:48:49 +01: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
0bbf965807
More bottling HOMEBREW_LIBRARY changes
- Refuse to create bottles which have non-relocatable references to
  `HOMEBREW_LIBRARY`. This allows us to make all bottles ignore where
  `HOMEBREW_REPOSITORY` is (even those that aren't `cellar :any`).
  I cannot see any circumstances in which any bottle should link to
  anything within `HOMEBREW_REPOSITORY`.
- Remove audit that becomes unnecessary given the above change.
- Relocate references to `@HOMEBREW_LIBRARY@` but don't actually write
  any references yet. This will allow us to move to using
  `@HOMEBREW_LIBRARY` and remove all relocation of `HOMEBREW_REPOSITORY`
  in a future release (2.7.1, most likely).
2020-12-18 13:50:10 +00:00
Mike McQuaid
4dfcf74fb2
Merge pull request #9478 from MikeMcQuaid/deprecate-disable-date
formula: deprecate!/disable!: deprecate missing or non-ISO 8601 dates.
2020-12-18 12:15:51 +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
Mike McQuaid
315b7a1c13
Merge pull request #9503 from sjackman/sj/keg-relocate-library
Relocate @@HOMEBREW_REPOSITORY@@/Library
2020-12-17 08:43:52 +00:00
Shaun Jackman
c56681a227 Comment needed changes if HOMEBREW_LIBRARY changes 2020-12-16 14:03:10 -08: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
e194c86a2b Fix audit for verified parameter. 2020-12-16 09:29:45 +01:00
Shaun Jackman
58fe675d97 Test HOMEBREW_LIBRARY=HOMEBREW_REPOSITORY/Library 2020-12-15 12:47:08 -08:00
Markus Reiter
1ed31206bc
Merge pull request #10029 from reitermarkus/bundle-version
Add `BundleVersion` class.
2020-12-15 16:39:31 +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
91d6009891 Remove special case for XQuartz. 2020-12-15 14:24:17 +01:00
Markus Reiter
7b9556db06 Remove trailing version from short_version. 2020-12-15 14:24:17 +01:00
Markus Reiter
d2ff879496 Add BundleVersion class. 2020-12-15 14:24:17 +01:00
Markus Reiter
d49f31cdea
Merge pull request #9531 from reitermarkus/tilde-artifact-targets
Properly handle `~` artifact targets.
2020-12-15 09:29:58 +01:00
Markus Reiter
f711352cfd Add audit for livecheck in casks. 2020-12-14 15:44:35 +01:00
Mike McQuaid
03cdf5c28a
Merge pull request #9512 from MikeMcQuaid/unbottled_error
Fix unbottled dependency handling
2020-12-14 12:17:37 +00:00
Markus Reiter
287dfee35f Properly handle ~ artifact targets. 2020-12-13 03:31:34 +01:00
Markus Reiter
3bde9d34a9
Remove version from Livecheck. 2020-12-12 17:43:25 -05:00
Seeker
0e8cebbb5b
Store Livecheck#version as symbol or string 2020-12-12 17:43:22 -05:00
Seeker
4b87da4da9
Initial small fixes
- Skip blank lines in watchlist
- Initialize Livecheck#version as nil
- Simplify livecheck_version logic
- Make test a bit more understandable
2020-12-12 17:43:22 -05:00
Seeker
6794a78087
livecheck: add support for casks 2020-12-12 17:43:21 -05:00
Sam Ford
5b770e9965
Cpan: Reimplement strategy and improve tests
Co-authored-by: Dario Vladovic <d.vladimyr@gmail.com>
2020-12-11 17:45:03 -05:00
Dario Vladovic
1f30f27c2d
livecheck: CPAN strategy 2020-12-11 17:43:09 -05:00
Seeker
85373df30e
Merge pull request #9095 from SeekingMeaning/bottle-ast
bottle: add bottle stanza by traversing AST
2020-12-11 09:05:14 -08:00
Mike McQuaid
eb74717a9e
Fix unbottled dependency handling
- Rename `BuildToolsError` to `UnbottledError` to better reflect what it
  does (particularly now)
- Improve the `UnbottledError` messaging
- Raise the `UnbottledError` for dependencies also when building bottles
  (so that we don't try and build bottles against things that have been
  built from source).
2020-12-11 16:57:47 +00:00
Mike McQuaid
f87ce3fffb
formula: deprecate!/disable!: deprecate missing or non-ISO 8601 dates.
As requested in https://github.com/Homebrew/homebrew-core/issues/66360
2020-12-11 14:03:21 +00:00
Seeker
b8aa67be5b bottle: add bottle stanza by traversing AST 2020-12-10 13:38:57 -08:00
Seeker
c4da302303 on_macos/on_linux block: improve rubocop message
Co-authored-by: Markus Reiter <me@reitermark.us>
2020-12-10 11:47:25 -08:00
FX Coudert
c7ef48ac66
Merge pull request #9499 from fxcoudert/dmg
fixtures: add test.dmg
2020-12-10 14:57:11 +01:00
Francois-Xavier Coudert
35b27cf997 fixtures: add test.dmg.gz 2020-12-10 14:19:56 +01:00
Mike McQuaid
96218ec284
Merge pull request #9471 from bayandin/check-checksum
dev-cmd/audit: add audit for checksum
2020-12-10 13:18:46 +00:00
Mike McQuaid
2c77a540b5
Merge pull request #9481 from MikeMcQuaid/bottle_prefix_repository_handling
Fix bottle prefix and repository handling
2020-12-09 14:45:47 +00:00
Mike McQuaid
0f9bad0052
Fix bottle prefix and repository handling
We were previously only looking at the `cellar` value when pouring
bottles and ignoring the `prefix` and (implicit) `repository`.

Actually look at these values and set the defaults for each platform.

Also, when we're relocating to create or pour bottles when `prefix`
and `repository` are equal then skip relocating the `repository` and
always use references to the `prefix` instead.

Fixes #9453
2020-12-09 13:53:10 +00:00
Mike McQuaid
6467fbadee
MacOS::Version: add (and use) architecture. 2020-12-09 11:55:27 +00:00
Alexander Bayandin
8717f82b9d dev-cmd/audit: add audit for checksum 2020-12-08 23:42:46 +00:00
Markus Reiter
05b496194a Fix version mapping. 2020-12-08 01:03:33 +01:00
Markus Reiter
c6876ba65c Add UnversionedCaskChecker helper class. 2020-12-07 23:03:47 +01:00
Markus Reiter
d6f30a4bc1 Handle formatted versions ending with build version. 2020-12-07 23:03:47 +01:00
Markus Reiter
4f3bfd1d58 Improve handling of short_version starting with version. 2020-12-07 23:03:47 +01:00
Markus Reiter
933499089c Add test for decide_between_versions. 2020-12-07 23:03:47 +01:00
Michka Popoff
d768b6649a bottle: add tests for json merging
- Extract the json reading from the json merging: it makes the code hard to understand.
This helps for the separation of concerns: the jsons are read in one method;
and merged in a second one
- Added a first test to check the merge function

No change in behaviour was done, this change is just there to increase code coverage
and to prepare for #9315
2020-12-07 19:58:49 +01:00
Mike McQuaid
ed7df8f99d
Merge pull request #9381 from nandahkrishna/github-latest
livecheck: add GithubLatest strategy
2020-12-07 12:14:49 +00:00
Jonathan Chang
8b206dfa33 git_extensions: move commit_message from utils/git 2020-12-06 14:33:23 +11:00
Jonathan Chang
5bda84b594 dev-cmd/pr-pull: use git_extensions 2020-12-06 14:33:23 +11:00