2720 Commits

Author SHA1 Message Date
BrewTestBot
493c07372b
Update manpage and completions.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2025-03-13 10:53:02 +00:00
BrewTestBot
8f2317f908
Update manpage and completions.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2025-03-11 10:09:23 +00:00
BrewTestBot
3e7a583a93
Update manpage and completions.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.

Signed-off-by: Patrick Linnane <patrick@linnane.io>
2025-03-07 08:17:59 -08:00
BrewTestBot
9bde3e18a6
Update manpage and completions.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2025-03-05 00:08:18 +00:00
botantony
bf7514f328
docs: add a bit more information about std_*_args to Formula Cookbook 2025-03-04 13:04:10 +01:00
Heath Stewart
222e8d129a
Document pwsh shell completion
Based on discussion in #19408, update the documentation to specify that `:pwsh` must be passed explicitly and that it will translate to a "powershell" argument, as is currently supported by Go's common `github.com/spf13/cobra` module and Rust's common `clap` (with `clap_complete`) crate.
2025-03-04 02:16:48 -08:00
Heath Stewart
42caf20fa4
Add PowerShell (pwsh) completion support
Resolves #19403
2025-03-02 18:17:38 -08:00
BrewTestBot
302d33c26e
Update manpage and completions.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2025-02-25 16:00:57 +00:00
Sam Ford
140d45f325
docs: Fix broken RubyDoc URL fragments
Some RubyDoc URL fragments in the Formula Cookbook documentation
include an equals sign (`%3D`) but the `id` attributes in the current
RubyDoc HTML don't include the equals sign, so the documentation CI
job is failing with errors like `External link
https://rubydoc.brew.sh/Formula#revision=-class_method failed:
https://rubydoc.brew.sh/Formula exists, but the hash
'revision=-class_method' does not`. This updates the URLs to remove
`%3D` accordingly.
2025-02-24 12:08:52 -05:00
Sam Ford
5e57df7287
livecheck: restrict POST hashes to symbol keys
I initially set the type for livecheck's `post_form` and `post_json`
hashes to allow either a string or symbol key. I used string keys in
the documentation, as there will inevitably be some form field names
that would pose a problem for symbols (e.g., `E-mail` uses a hyphen,
`1twothree` starts with a digit, etc.). However, I remembered that we
can simply use quote symbols like `:"E-mail"` to handle these
situations, as they have the flexibility of a string while still being
a symbol.

With that in mind, this updates related type signatures to only allow
symbol keys and updates documentation and tests accordingly. The
documentation example contains a hyphenated form field, so it
demonstrates how to handle names that don't work as a bare symbol.
2025-02-21 21:54:46 -05:00
BrewTestBot
fb04179fd8
Update manpage and completions.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2025-02-21 19:40:15 +00:00
Colin Dean
dfbc931769
Recommend abbreviated multi-platform loader
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2025-02-19 11:58:07 -05:00
Colin Dean
eab6e9f7f3
Use suggested post-installation steps
Thanks, @jvns!
2025-02-18 12:08:21 -05:00
Colin Dean
1733a78133
Prevent copying w/o reading by removing valid envvars and noting dirs
Co-authored-by: Eric Knibbe <enk3@outlook.com>
2025-02-14 10:25:32 -05:00
Colin Dean
33fde6faec
Lowercases a link fragment to satisfy checks 2025-02-13 15:12:03 -05:00
Colin Dean
1ad0f550b1 Adds post-installation steps to installation with extend version in tips
Inspired by @jvns' [post][1], I realized that I've had this problem on multiple teams, where someone missed the step at the end and didn't know how to recover. Typically, I've provided a version like what I've added to the Tips 'n' Tricks page so that I didn't have to think about what OS-arch pair my users are using.

I've tested the loader added to tips and tricks with both bash and zsh and it passes both shellcheck and shfmt in posix mode.

[1]: https://mastodon.social/@b0rk@jvns.ca/113997565198024027
2025-02-13 19:50:10 +00:00
Bevan Kay
0f8fd5e512
docs/governance/2021-agm-minutes.md: fix broken link 2025-02-13 10:56:14 +11:00
Bevan Kay
baea0d3ec9
docs/Homebrew-Governance.md: fix broken link 2025-02-13 10:56:13 +11:00
BrewTestBot
cddc2fc615
Update manpage and completions.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2025-02-09 00:11:25 +00:00
Issy Long
f9b33d7c44
Merge pull request #19265 from Homebrew/review-some-docs
Review some docs
2025-02-08 16:04:23 +00:00
Issy Long
8f75f66d01
Review some docs
- Most of these were fine still, apart from:
  - FAQ: `hub` is less maintained than `gh`.
  - Brew-Maintainer-Guide: link to GitHub docs on commit signing via GPG or SSH.
  - Interesting-Taps-and-Forks: remove outdated information about `homebrew/core` being in `Library/Taps`.
  - New-Maintainer-Checklist: remove outdated information about the `@members` team.
2025-02-08 14:43:49 +00:00
Issy Long
00905fbd7e
Enforce that all docs have last_review_date frontmatter
- So we don't forget to add it to new docs we write.
2025-02-08 00:14:10 +00:00
BrewTestBot
769fb8739f
Update manpage and completions.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2025-02-07 19:42:46 +00:00
Mike McQuaid
5ae29d324d
Merge pull request #19258 from Homebrew/brew_alias_import
Import `brew alias` and `brew unalias` commands
2025-02-07 19:32:14 +00:00
Mike McQuaid
8adc188992
Import brew alias and brew unalias commands
Import these from the homebrew/aliases tap and deprecate that tap.

This required a little messing around with class/module/constant names
to get `brew tests` and `brew typecheck` to play nicely.

I added also added Sorbet type signatures and integration tests.
2025-02-07 14:31:50 +00:00
Sam Ford
b4757af656
livecheck: Add support for POST requests
livecheck currently doesn't support `POST` requests but it wasn't
entirely clear how best to handle that. I initially approached it as
a `Post` strategy but unfortunately that would have required us to
handle response body parsing (e.g., JSON, XML, etc.) in some fashion.
We could borrow some of the logic from related strategies but we would
still be stuck having to update `Post` whenever we add a strategy for
a new format.

Instead, this implements `POST` support by borrowing ideas from the
`using: :post` and `data` `url` options found in formulae. This uses
a `post_form` option to handle form data and `post_json` to handle
JSON data, encoding the hash argument for each into the appropriate
format. The presence of either option means that curl will use a
`POST` request.

With this approach, we can make a `POST` request using any strategy
that calls `Strategy::page_headers` or `::page_content` (directly or
indirectly) and everything else works the same as usual. The only
change needed in related strategies was to pass the options through
to the `Strategy` methods.

For example, if we need to parse a JSON response from a `POST`
request, we add a `post_data` or `post_json` hash to the `livecheck`
block `url` and use `strategy :json` with a `strategy` block. This
leans on existing patterns that we're already familiar with and
shouldn't require any notable maintenance burden when adding new
strategies, so it seems like a better approach than a `Post` strategy.
2025-02-07 08:53:47 -05:00
BrewTestBot
59597035a0
Update manpage and completions.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2025-02-06 17:03:07 +00:00
Patrick Linnane
4c1f2b65bc
docs: run brew generate-man-completions
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2025-02-05 13:39:45 +01:00
Eric Knibbe
99de228fc2
docs: various manpage grammar fixes 2025-02-05 13:38:39 +01:00
BrewTestBot
3caa98efb7
Update manpage and completions.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2025-02-04 15:38:49 +00:00
Bo Anderson
c5e2aa63e5
Merge pull request #19222 from Homebrew/pr-upload-keep-old
dev-cmd/pr-upload: allow --keep-old with --upload-only
2025-02-03 20:23:59 +00:00
Mike McQuaid
4b55ebf894
Merge pull request #19212 from Moisan/patch-1
Add rebottling documentation in BrewTestBot-For-Maintainers.md
2025-02-03 17:18:39 +00:00
Bo Anderson
627c4a714c
dev-cmd/pr-upload: allow --keep-old with --upload-only 2025-02-03 18:15:31 +01:00
Thierry Moisan
ecc7832498
fixup! Update docs/BrewTestBot-For-Maintainers.md 2025-02-03 17:42:50 +01:00
Thierry Moisan
9311e45aa1
Update docs/BrewTestBot-For-Maintainers.md
Co-authored-by: Carlo Cabrera <github@carlo.cab>
2025-02-03 17:40:13 +01:00
Eric Knibbe
29b2f35ce8
docs: prefer /opt/homebrew in examples 2025-02-03 15:30:03 +01:00
Thierry Moisan
32ef99e612
Add rebottling documentation in BrewTestBot-For-Maintainers.md 2025-02-03 15:13:31 +01:00
Issy Long
235082549d
Merge pull request #19200 from Homebrew/docs-last-reviewed-date
Add a `last_reviewed_date` to docs metadata
2025-02-03 13:33:52 +00:00
Issy Long
5dfdfe387f
Unlink localhost:4000 - it doesn't need to be a link 2025-02-03 13:23:20 +00:00
Mike McQuaid
791194865f
Merge pull request #19188 from Homebrew/arm64_linux-tag
Rename aarch64_linux tag to arm64_linux
2025-02-03 13:21:59 +00:00
Issy Long
31d7bcc583
Add a last_reviewed_date to docs metadata
- At the AGM we formed an ad-hoc documentation working group.
- One of our ideas was that we should have a last reviewed date for
  documentation, so that we can periodically implement a review
  mechanism (GitHub Actions posts to Slack for a regular documentation
  outdatedness check?) to track how old docs are and ensure they're
  still relevant.
- This is a first step towards that goal, by adding a `last_review_date`
  to the metadata of all docs with a date of earlier than Homebrew's
  inception because everything needs reviewing so that we start from a
  good base!
2025-02-03 11:56:07 +00:00
BrewTestBot
55e7b9031d
Update maintainers.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2025-02-03 10:20:35 +00:00
BrewTestBot
693216bc49
Update manpage and completions.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2025-02-01 12:26:33 +00:00
Bo Anderson
fed5321969
Rename aarch64_linux tag to arm64_linux 2025-02-01 13:03:58 +01:00
Paul Bissex
a014e75cff
Update How-To-Open-a-Homebrew-Pull-Request.md
One-character correction
2025-01-29 22:18:25 -05:00
Mike McQuaid
7ff99e2353
Use ~ instead of ${HOME}
Partial revert of Homebrew/brew#19153
See https://github.com/Homebrew/brew/pull/19153#discussion_r1930678587
2025-01-27 15:19:59 +00:00
Mike McQuaid
bbf5a9f479
env_config: use environment variables consistently
- use e.g. `$HOMEBREW_*` for cases where only the environment variable
  is the entire backtick-quoted string
- use e.g. `${HOMEBREW_*}` for cases where the environment variable is
  part of a backtick-quoted string to make clear what parts are variable
  and what parts are not
- use `export HOMEBREW_*=...` for cases where we're talking about
  setting the environment variable (because it likely needs to be
  exported to work how they want)

Inspired by https://github.com/Homebrew/homebrew-bundle/pull/1579 making
similar changes for Homebrew/homebrew-bundle.
2025-01-27 14:21:27 +00:00
BrewTestBot
b7ec021ffe
Update manpage and completions.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2025-01-27 08:59:49 +00:00
BrewTestBot
9704a74037
Update manpage and completions.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2025-01-24 09:16:00 +00:00
BrewTestBot
b7a92f4cac
Update manpage and completions.
Autogenerated by the [sponsors-maintainers-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/sponsors-maintainers-man-completions.yml) workflow.
2025-01-24 00:07:49 +00:00