Mike McQuaid
7da934f7e2
Deprecate/disable/delete code.
...
The next release after this is merged will be 4.1.0.
Co-authored-by: Markus Reiter <me@reitermark.us>
2023-07-06 16:56:20 +01:00
Bo Anderson
d1b923f314
Introduce UsesFromMacOSDependency
...
Add Formula#declared_deps and SoftwareSpec#declared_deps
2023-07-04 13:40:55 +01:00
Markus Reiter
8274920217
Rename OS::Mac::Version
to MacOSVersion
.
2023-05-09 05:08:38 +02:00
Bo Anderson
44f058edb5
Refactor formula, cask and Ruby source downloads to use shared code
2023-04-27 23:23:07 +01:00
Douglas Eichelberger
08af78a2a5
brew style --fix
2023-04-25 09:26:24 -07:00
Douglas Eichelberger
24cf6076e8
brew style --fix
2023-04-24 20:42:39 -07:00
Mike McQuaid
63d8de3600
brew style --fix
2023-04-07 19:10:22 +01:00
Issy Long
6d822d9a62
rubocop: Drop "fn" from Naming/MethodParameterName
allowlist
...
- I originally thought this was short for "function", but upon closer
inspection all its usages are to do with filenames. So, use "filename",
it's clearer.
2023-03-08 14:40:56 +00:00
Bo Anderson
9b99594753
Preliminary compatibility fixes for Ruby 3
2022-10-11 02:53:27 +01:00
Bo Anderson
6c4245e298
software_spec: fix bottle resource version type
2022-09-01 18:47:38 +01:00
Bo Anderson
abfbb46678
Freeze formula definition once first instance is created
2022-08-31 20:40:42 +01:00
Michka Popoff
d271614872
install glibc/gcc automatically if too old.
...
Right now this is done through the gcc@5 formula.
See 9692318ca6/Formula/gcc%405.rb (L33)
This is fragile because when we will migrate to gcc@11
we have to think about migrating the installation from one gcc formula to another..
Also, not having the right glibc version results in a non-functional brew
installation on an older Linux: the glibc installation needs
to be done by brew, and not by a workaround in a specific formula
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
Co-Authored-By: Bo Anderson <mail@boanderson.me>
Co-Authored-By: Shaun Jackman <sjackman@gmail.com>
2022-08-25 11:04:37 +01:00
Mike McQuaid
6b697470fd
brew style --fix
...
For https://github.com/Homebrew/brew/pull/13671
2022-08-10 14:19:33 +01:00
Rylan Polster
ea1f2098ac
Move HOMEBREW_SIMULATE_MACOS_ON_LINUX
handling to SimulateSystem
2022-07-28 15:04:25 -04:00
Rylan Polster
4cc0e854ce
Rename treat_as_*?
to simulating_or_running_on_*?
2022-07-28 09:18:16 -04:00
Rylan Polster
91cf9f2ad8
Use SimulateSystem
for uses_from_macos
deps
2022-07-23 03:09:29 +02:00
Rylan Polster
94138c0848
Ignore empty patch
blocks
2022-07-18 22:51:30 +02:00
Rylan Polster
99447bb1c0
OnSystem
: provide ::MacOSAndLinux
and ::MacOSOnly
2022-06-30 12:57:35 -04:00
Mike McQuaid
2d5eab2e1c
brew style --fix
2022-06-30 08:56:21 +01:00
Rylan Polster
a9e62b9e38
include OnSystem
to define DSL methods
2022-06-29 11:38:55 -04:00
Rylan Polster
b538ce7361
Add OnSystem
module to generate on_*
methods for formulae and casks
2022-06-24 14:37:50 -04:00
Bo Anderson
40bbdc659e
Fix some Style/FetchEnvVar offences
2022-06-17 19:47:57 +01:00
Mike McQuaid
195e4d0f89
software_spec: handle nil manifests_annotations.
...
Fixes #13372
2022-06-03 14:50:01 +01:00
Mike McQuaid
1bb44979ee
Disable and delete code for 3.5.0
...
The next planned release will be 3.5.0 so let's fix things up for there.
2022-05-30 14:59:14 +01:00
danielnachun
ae1c5c8054
software_spec.rb: change compatible_location
2022-04-12 15:53:04 -07:00
Bo Anderson
ebda92f908
Revert "Binary patching of build prefixes "
2022-03-21 18:22:36 +00:00
danielnachun
70bc181029
software_spec.rb: change compatible_location
2022-03-12 17:46:09 -08:00
danielnachun
17005b93ab
software_spec.rb: add tag_to_cellar method
2022-03-10 10:31:33 -08:00
Mike McQuaid
a37f24f439
Revert "Binary patching of build prefixes"
2022-02-14 10:55:08 +00:00
danielnachun
40e49fa0d8
software_spec.rb: change compatible_location
2022-02-10 22:48:45 -08:00
Mike McQuaid
f781f28d6d
Retry GitHub Packages manifest download if invalid.
2021-10-22 10:41:35 +01:00
Mike McQuaid
f65d525693
Deprecations/disables for 3.3.0/4.0.0.
...
Deprecate, disable and remove code for Homebrew 3.3.0 or 4.0.0
(whichever the next release ends up being).
2021-10-19 16:36:42 +01:00
Bo Anderson
5dc46a9e12
Use --insecure to download ca-certificates
source where necessary
2021-10-04 16:37:44 +01:00
Bo Anderson
b55498269f
Revamp APIs around bottle specifications
2021-09-20 15:02:05 +01:00
Mike McQuaid
b622c36be6
Add, use uses_from_macos_names.
...
This strips e.g. `:build` tags.
2021-09-14 09:48:19 +01:00
Bo Anderson
8dd11e4e4c
Set uses_from_macos_elements in all cases
2021-09-14 04:06:40 +01:00
Bo Anderson
861dea9ada
Bump various type strictnesses
2021-09-11 01:00:23 +01:00
FnControlOption
b9fc4e36f0
fetch: fix --bottle-tag when unbottled on host system
2021-08-26 14:44:53 -07:00
Mike McQuaid
29ed4d216a
Revert "Remove HOMEBREW_BOTTLE_DOMAIN"
2021-07-29 21:15:40 +01:00
Mike McQuaid
5d8b5ceb22
Remove HOMEBREW_BOTTLE_DOMAIN
...
It no longer works under GitHub Packages and `HOMEBREW_ARTIFACT_DOMAIN`
must be used instead.
2021-07-27 14:12:17 +01:00
Dawid Dziurla
793371a348
fetch: add --bottle-tag flag
2021-07-13 18:03:04 +02:00
Mike McQuaid
30a65342e8
Deprecate, disable, delete code for Homebrew 3.2.0
...
Do the usual deprecation, disable, delete dance for Homebrew 3.2.0.
2021-06-17 11:34:32 +01:00
Bo Anderson
9380729dbf
software_spec: fix wrong tab being fetched when bottle isn't unique
2021-05-31 16:20:10 +01:00
Mike McQuaid
60ab6b86e9
software_spec: improve bad manifest error message.
...
Let's complain immediately after fetching if there's something wrong
and improve the error message to make it clearer what's going on.
Inspired by #76336 .
2021-05-19 13:15:33 +01:00
Mike McQuaid
b914411ac8
Delete Bintray code
...
Remove all code related to Bintray. It no longer works so there's no
point keeping it around.
Some of this could arguably be deprecated/disabled first/instead but:
I'm not sure I see the sense in keeping stuff around that's known to be
broken.
2021-05-12 13:37:18 +01:00
Bo Anderson
635e58e9aa
software_spec: fix bottle domain fallback handling
2021-04-15 19:24:25 +01:00
Mike McQuaid
f866bab2a0
software_spec: GitHub Packages/Bintray fixes.
...
- assign the `version` for the `resource` before the `downloader` is
created
- fix the reference to `Bintray`
2021-04-12 16:07:19 +01:00
Mike McQuaid
1bdb8c7a33
More Bintray cleanup
...
Cleanup more files and names related to Bintray to ease their future
deletion (when Bintray is shutdown).
2021-04-12 15:07:46 +01:00
Nanda H Krishna
e574f320fc
software_spec: remove debug statement
2021-04-09 21:34:00 +05:30
Mike McQuaid
bd3f1d28e7
Fix GitHub Packages filenames.
...
They don't need escaped like the Bintray ones did.
Fixes https://github.com/Homebrew/brew/issues/11090 (but note this may
require the cache entry to be cleared and the package to be
redownloaded).
2021-04-09 16:31:04 +01:00