Mike McQuaid
ec539147a7
Merge pull request #20089 from Homebrew/revert-20079-fix-tests-only-files
...
Revert "Filter `brew tests` spec files appropriately for each OS"
2025-06-12 16:40:34 +00:00
Mike McQuaid
f234423913
dev-cmd/tests: fix require ordering.
...
This needs to happen after `setup_environment!` so that
`HOMEBREW_TEST_GENERIC_OS` is set and `OS.linux?` and `OS.mac?` both
`return false`.
2025-06-12 16:43:50 +01:00
Bo Anderson
bf6f813492
dev-cmd/bump-formula-pr: handle null body
2025-06-12 04:48:15 +01:00
Rylan Polster
ce72e34b19
Filter brew tests
spec files appropriately for each OS
2025-06-11 15:59:21 -04:00
Mike McQuaid
8d4395118c
dev-cmd/contributions: improve CSV output.
...
Output messages to stderr when CSV output is enabled.
This allows doing `brew contributions --csv > contributions.csv` to
save the output to a file.
2025-06-10 17:28:21 +01:00
Mike McQuaid
e9f55a8f71
tests: default to API mode enabled.
...
While we're here, also add `brew tests --no-parallel` which I relied
on during testing.
Pretty much anywhere we rely on a stubbed formula on disk to work: we
need to disable the API.
2025-06-10 15:53:27 +01:00
Mike McQuaid
dc71b7c8f6
Cleanup extend/
directory usage.
...
- move some things out of `extend` that don't really fit there e.g.
`Module`s that are included but not doing any
overriding/monkeypatching
- move some code into `extend/os` to fix all remaining
`rubocop:todo Homebrew/MoveToExtendOS`s
- remove some unneeded `bundle` skipper code that doesn't really make
sense given our current bottling strategy
- extract some `Pathname` extensions to `extend/pathname` for separate
files
- move a `ENV` `Kernel` extension into `kernel.rb`
- `odeprecate` a seemingly unused backwards compatibility method
- move `readline_nonblock` from a monkeypatch to a
`ReadlineNonblock.read` method as its only used in one place
- fix up a link in documentation
2025-06-09 19:06:16 +01:00
Mike McQuaid
cc03340af3
Reduce Homebrew/brew CI warnings
...
- Remove a bunch of non-actionable/unnecessary noise in GitHub Actions
CI.
- Limit number of threads used to generate analytics API data to avoid
reproducible failures producing errors and requiring retries.
- Move to Debian Old Stable for testing non-system `glibc`.
- Remove unneeded core taps/updates.
- Improve naming of CI jobs to clarify purpose i.e. we're testing
things work on Linux, not Ubuntu specifically.
- Remove dedicated non-online/non-generic Linux `brew tests` jobs from
3 to 1.
Co-authored-by: Rylan Polster <rslpolster@gmail.com>
2025-06-09 12:47:22 +01:00
Rylan Polster
73b64390b3
Use existing Utils::Bottles::Collector#specification_for
method
2025-06-05 12:38:15 -04:00
Rylan Polster
e83dc1cb3c
Fallback to older bottle hashes when viable
2025-06-05 11:32:47 -04:00
Rylan Polster
e47bc2fb86
Use hashes of arrays instead
2025-06-05 03:15:44 -04:00
Rylan Polster
b44ec56267
Reduce the internal formula API to contain the bare minimum data
2025-06-05 02:08:29 -04:00
Mike McQuaid
68ef29fb5c
Merge pull request #20045 from Homebrew/fix-sharded-api
...
Fix sharded API structure to match existing API
2025-06-04 07:58:26 +00:00
Rylan Polster
fa45209f09
Fix sharded API structure to match existing API
2025-06-03 16:58:47 -04:00
Eric Knibbe
3dc9e88542
parser: show related env var in switch description
2025-06-03 13:57:42 -04:00
Rylan Polster
c03f70f1dc
Refactor OnSystem
and SimulateSystem
bottle tag handling
2025-06-03 11:57:17 -04:00
Rylan Polster
0f03757e8f
Shard JSON API by OS/Arch combination
2025-06-02 23:06:02 -04:00
Bevan Kay
6278ac1801
Merge branch 'master' into cabal
2025-05-29 22:44:20 +10:00
Mike McQuaid
3f15e0eef0
dev-cmd/bump-formula-pr: fix style.
2025-05-26 08:40:14 +01:00
Gibson Fahnestock
97acfb94ce
bump-pr: respect --write-only flag and skip git operations
...
The flag used to work well, but at some point started to run more and
more git actions. We use this to update formula and casks in other
homebrew taps, and it works well except for this issue.
2025-05-24 13:14:00 +01:00
Mike McQuaid
4aa7f83954
dev-cmd/bump-formula-pr: use Formatter.truncate
.
...
Add new `Formatter.truncate` method, tests and use it.
2025-05-21 17:02:18 +01:00
Issy Long
63cdd0723c
Truncate long release notes in formula PR descriptions
...
- Some formula bumps have really long release notes which causes their
bump PRs to exceed GitHub's 65k character limit for issue bodies.
2025-05-21 13:20:48 +00:00
Mike McQuaid
8b32d019d4
Merge pull request #19986 from Homebrew/fix_update_maintainers
...
dev-cmd/update-maintainers: various fixes.
2025-05-21 12:42:38 +00:00
Issy Long
ee15435a90
Fix multiline hash key/value indentation
2025-05-21 14:31:58 +02:00
Mike McQuaid
c1a2f94e01
dev-cmd/tap-new: fix root_url warning.
...
Ruby couldn't detect the `root_url` usage inside the ERB template.
Instead, use interpolation so it can for a fixed warning and more concise
syntax.
2025-05-21 13:19:11 +01:00
Mike McQuaid
a94037a6ff
dev-cmd/update-maintainers: various fixes.
...
- install the `man` gem group for `kramdown` so
`Manpages.regenerate_man_pages` can run successfully
- hardcode the non-organisation PLC members so that they aren't
missing from the GitHub team
- correctly populate the PLC members again
2025-05-21 13:08:37 +01:00
Douglas Eichelberger
38bad25a86
Include annotations in typecheck updates
2025-05-20 20:56:53 -07:00
Bevan Kay
effb07ee76
bump-formula-pr: fix case when only url
is provided
2025-05-20 21:23:52 +10:00
botantony
92832c258c
dev-cmd/create: add --cabal
switch
...
Signed-off-by: botantony <antonsm21@gmail.com>
2025-05-18 20:18:34 +02:00
Eric Knibbe
2b8d104281
dev-cmd/generate-*-api: simulate latest macOS
2025-05-15 11:06:24 -04:00
Steve Peters
3dd87e6d17
dev-cmd/prof: require fileutils
...
Fixes error when running `brew prof`:
uninitialized constant Homebrew::DevCmd::Prof::FileUtils
2025-05-08 13:41:11 -07:00
botantony
18296808a2
dev-cmd/bump-*-pr: change autobump package message
...
Signed-off-by: botantony <antonsm21@gmail.com>
2025-04-29 18:04:59 +02:00
botantony
562c104b7e
dev-cmd/bump: replace --no-auto
with --no-autobump
...
Signed-off-by: botantony <antonsm21@gmail.com>
2025-04-29 18:04:59 +02:00
botantony
ad66e0c418
tap: get autobump list from formula/cask API
...
Signed-off-by: botantony <antonsm21@gmail.com>
2025-04-29 18:04:59 +02:00
Alexander Bayandin
d60e72a055
dev-cmd/tap-new: use ERB templates instead of string interpolation
2025-04-28 23:57:44 +01:00
Alexander Bayandin
875702d51a
dev-cmd/tap-new: support private repos
2025-04-28 18:07:19 +01:00
Bevan Kay
b255a670c0
bump-formula-pr: restore pr message
2025-04-23 14:45:15 +10:00
Patrick Linnane
5d8d453a90
Portable Ruby 3.4.3
2025-04-22 11:50:08 -07:00
Bevan Kay
2b132c0802
dev-cmd/bump-formula-pr: fix reference
2025-04-22 22:03:18 +10:00
Bevan Kay
c5a3879fdb
bump: bump synced formula together
2025-04-22 22:03:06 +10:00
Mike McQuaid
7873f0200f
Revert "bump: bump synced formula together"
2025-04-22 12:33:59 +01:00
Bevan Kay
7ccdc340a3
bump: bump synced formula together
2025-04-16 22:49:14 +10:00
Mike McQuaid
e98a052896
dev-cmd/edit: remove unneeded variable.
2025-04-11 16:07:29 +01:00
Anatoli Babenia
fff2c3ea79
edit: move no_env and no_install checks out of the loop
2025-04-11 17:21:17 +03:00
Anatoli Babenia
ccf506f7f9
brew style --fix
2025-04-11 17:15:55 +03:00
Anatoli Babenia
7523daaf33
edit: review fixes
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2025-04-11 17:15:55 +03:00
Anatoli Babenia
a0e68613f5
Fix false/Boolean type check
...
https://sorbet.org/docs/error-reference#7001
2025-04-11 17:15:55 +03:00
Anatoli Babenia
9bf4e620e0
edit: show --build-from-source only for formulas
2025-04-11 17:15:55 +03:00
Anatoli Babenia
fb5438bfd1
Update Library/Homebrew/dev-cmd/edit.rb
...
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2025-04-11 17:15:54 +03:00
Anatoli Babenia
fc0d7ac21d
dev-cmd/edit: Actionable message about no API install
2025-04-11 17:15:54 +03:00