2200 Commits

Author SHA1 Message Date
Sean Molenaar
11821aa74b
Update Acceptable-Formulae.md
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-08-15 18:21:17 +02:00
Sean Molenaar
2db75db7f8
Update Acceptable-Formulae.md
Co-authored-by: Patrick Linnane <patrick@linnane.io>
2023-08-15 18:16:10 +02:00
Sean Molenaar
d523cdc0ec
fix: use cannot instead of can not
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-08-15 17:27:02 +02:00
Sean Molenaar
8d537260af
chore: document the policy on static libraries 2023-08-15 17:18:33 +02:00
Mike McQuaid
98c8dd01e4
Merge pull request #15868 from MikeMcQuaid/more_install_from_api_again
brew.sh: don't set `HOMEBREW_NO_INSTALL_FROM_API` automatically.
2023-08-15 14:27:06 +01:00
Mike McQuaid
1481eac57c
brew.sh: don't set HOMEBREW_NO_INSTALL_FROM_API automatically.
My understanding is that now https://github.com/Homebrew/brew/pull/15778
has been merged this should now work fine on both older macOS versions
and non-default prefixes so let's try this again.
2023-08-15 11:42:02 +01:00
Clint Harrison
4ade9351e4
Allow HOMEBREW_CURLRC to provide a path for curl --config
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com>
2023-08-15 11:29:02 +01:00
Eric Knibbe
569c833924
Formula-Cookbook: expand terminology table 2023-08-12 21:48:16 -04:00
Mike McQuaid
597f0840a3
dev-cmd/tests: add --fail-fast.
This is useful when testing very slow test files with many tests.
2023-08-10 16:27:37 +01:00
Eric Knibbe
0f4b0028b5
Formula-Cookbook: expand environment var section 2023-08-08 08:22:59 -04:00
Eric Knibbe
2b8c37b04e
Formula-Cookbook: revise download strategy docs 2023-08-07 15:30:11 -04:00
BrewTestBot
c2160f68e7
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.
2023-08-07 16:10:53 +00:00
apainintheneck
0979f7c35f cmd/bump: add --installed flag
This allows users to only try to bump formulae and casks they
currently have installed. It copies this behavior from the
livecheck command.
2023-08-05 10:01:11 -07:00
Eric Knibbe
b3ecd91f97
dev-cmd/edit: suggest tapping core repositories 2023-08-01 13:39:28 -04:00
Mike McQuaid
8a74f83223
Merge pull request #15799 from MikeMcQuaid/deprecate_postgresql_upgrade_database
Deprecate `postgresql-upgrade-database`
2023-08-01 17:34:29 +01:00
Mike McQuaid
e3c0faf4e2
Merge pull request #15787 from MikeMcQuaid/env_file_configuration
Allow configuring Homebrew with `.env` files
2023-08-01 13:07:19 +01:00
Mike McQuaid
04e07dc0db
Deprecate postgresql-upgrade-database
This is an out-of-band deprecation but this command is broken and we're
not going to fix it so it's not really worth a deprecation cycle.

See https://github.com/orgs/Homebrew/discussions/4685
2023-08-01 12:00:30 +01:00
Mike McQuaid
375a7ee8dc
Allow configuring Homebrew with .env files
For a long time people have requested some sort of configuration files
for Homebrew. Now: here's the first version of that.

Similarly to how you can configure Git for a system, a repository or
a user: you can configure Homebrew for a system, a prefix or a user.

The system-wide configuration file is `/etc/homebrew/brew.env`, the
prefix-specific configuration file is
`$HOMEBREW_PREFIX/etc/homebrew/brew.env`
and the user-specific configuration file is `~/.homebrew/brew.env`.

As we need to read these files from Bash in `bin/brew` (so they can)
influence functionality ASAP: they are in a simple format that Bash
can read. It may be that we have more complex array or hash data in
future that's configured through JSON or YAML (most likely JSON as we
use it more) and stored in a `brew.json`/`brew.yaml` file in the same
directory.

As this is relying on `eval` in Bash which is fairly dangerous: we
filter the lines with a regex to ensure we're only permitting setting
`HOMEBREW_*` variables and nothing more.

To give a bit of power to system administrators, the
`HOMEBREW_SYSTEM_ENV_TAKES_PRIORITY` variable can be set in
`/etc/homebrew/brew.env` to ensure that the system-wide configuration
file is loaded last and overrides any prefix or user settings.

Now that we have an actual location for configuration files, let's also
change the `brew livecheck` watchlist configuration file to be in this
directory and deprecate the existing location. As this is a developer
command and the mitigation is to just move the file: we don't need to
follow the normal deprecation process here.
2023-07-28 17:17:14 +01:00
Sam Ford
e9e484ea31
docs: Fix GithubReleases strategy block example
The `strategy` block example for `GithubReleases` in the
`brew livecheck` documentation should be using `release` inside the
`#map` block instead of `json`. I accidentally overlooked one instance
of `json` when adapting the code from the `GithubLatest` example above
it.
2023-07-28 10:23:35 -04:00
Mike McQuaid
7801878c74
post_install: improvements and fixes.
- warn if running `brew postinstall` explicitly and there's no
  `post_install` defined in the formula
- add a `post_install` alias for `brew postinstall` to make life
  easier for those jumping between `postinstall` and `post_install` in
  e.g. Homebrew development
- refactor `post_install` formula path logic into a new method for
  improved readability
- handle the JSON API `post_install` formula path case
2023-07-28 11:26:09 +01:00
Mike McQuaid
bb67181b50
Merge pull request #15755 from MikeMcQuaid/document_pkg_installer
docs/Installation: document macOS .pkg installer.
2023-07-27 12:03:51 +01:00
Carlo Cabrera
5b8e2cd48f
docs: add documentation for staging branches
Let's get this written down now before I forget how to do this.
2023-07-27 16:32:19 +08:00
Carlo Cabrera
e576fe0062
Revert "brew.sh: don't set HOMEBREW_NO_INSTALL_FROM_API automatically."
https://github.com/Homebrew/brew/pull/15765#issuecomment-1652856355

This reverts commit d9bc51f8171b49486a871a8bb12a2629df28a519.
2023-07-27 11:35:37 +08:00
Mike McQuaid
a6d12c69d2
docs/Installation: document macOS .pkg installer.
While we're here, also make the ARM prefix first.
2023-07-26 15:59:49 +01:00
Mike McQuaid
d9bc51f817
brew.sh: don't set HOMEBREW_NO_INSTALL_FROM_API automatically.
My understanding from conversations with Bo98 is that this should now
work fine on both older macOS versions and non-default prefixes.

Similarly, it's super confusing when this is set automatically and you
can't figure out why...
2023-07-26 15:36:04 +01:00
Mike McQuaid
4b9c031e1b
Merge pull request #15725 from razvanazamfirei/bump-cask-pr-arch
`bump-cask-pr`: add arch-specific version support
2023-07-25 15:52:36 +01:00
Mike McQuaid
13c67e2703
docs/vale-styles: fix configuration.
Use new scope syntax and fix errors.
2023-07-25 15:28:29 +01:00
BrewTestBot
e2f49149dc
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.
2023-07-25 07:22:54 +00:00
Eric Knibbe
b6c49b7a2d
docs: assume core repositories are untapped 2023-07-24 09:55:56 -04:00
Razvan Azamfirei
c64c834d05
bump-cask-pr: add arch-specific version support 2023-07-21 11:45:34 -04:00
Mike McQuaid
3a290b21b1
Merge pull request #15705 from Homebrew/revert-15385-revert-sorbet-again
Enable HOMEBREW_SORBET_RUNTIME (sometimes)
2023-07-21 13:24:14 +01:00
Bo Anderson
67ecc2452a
Merge pull request #15602 from donaldducky/cask-support-multiple-headers
Cask support multiple headers
2023-07-20 21:19:55 +01:00
Caleb Xu
892128304c
docs: add documentation about reproducible builds 2023-07-18 13:03:12 -04:00
Patrick Linnane
c56669e9cd
various: fix miscellaneous typos 2023-07-18 08:52:49 -07:00
Steve Matsumoto
fa3bfc796d docs/FAQ: tap homebrew/core before editing formula
New installs don't tap `homebrew/core`, so `brew edit foo` fails with
`Error: Invalid usage: foo doesn't exist on disk.` for any package.
Add an instruction to run `brew tap homebrew/core` first, which fixes
this issue.
2023-07-18 10:32:18 -04:00
Mike McQuaid
0ae98a8a09
Enable HOMEBREW_SORBET_RUNTIME (sometimes)
Reverts #15385 with some tweaks.
2023-07-18 13:17:54 +01:00
Mike McQuaid
1ec7f0acaa
Merge pull request #15700 from MikeMcQuaid/macosx
docs/Installation: fix Mac OS X reference.
2023-07-18 10:53:40 +01:00
Mike McQuaid
347934d452
docs/Installation: fix Mac OS X reference.
I shouldn't care but: the only versions where this is required are
Mac OS X versions.
2023-07-18 10:40:55 +01:00
Mike McQuaid
a1c9a21548
cmd/tap: remove --list-pinned option.
Not deprecating as it's broken and has been for several major versions.
2023-07-18 10:23:52 +01:00
Osama Albahrani
cefa2d197b
docs: Requirements: add Arch Linux
Note: I'm not entirely sure if these are sufficient. I mimicked what's [in `install.sh`](https://github.com/Homebrew/install/blob/master/install.sh#L1052) and what's already listed for the remaining distros.
2023-07-17 14:39:52 -04:00
Bevan Kay
6a78d5833b
docs/cask: replace single-quoted with double-quoted 2023-07-17 12:52:15 +10:00
Gabriel Gerlero
c68e060dd4
docs/Installation: Mac OS X -> macOS 2023-07-12 00:13:06 -03:00
Gabriel Gerlero
0e60c80fbf
docs/Installation: fix Apple Developer account link 2023-07-11 18:08:19 -03:00
Nanda H Krishna
b0d38633c9
Merge pull request #15658 from Homebrew/sponsors-maintainers-man-completions
Update manpage and completions.
2023-07-10 14:39:57 -04:00
BrewTestBot
9ba1e5e26a
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.
2023-07-10 17:53:39 +00:00
Andrej Valek
f350c9ded0 docs: Add info about tap creation
Tap directories for furmulae/casks have to be created manually.

Signed-off-by: Andrej Valek <andy@skyrain.eu>
2023-07-10 13:38:08 +02:00
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
8d1aabba81
tap: warn if tapping core taps under API mode 2023-07-05 21:57:00 +01:00
BrewTestBot
b9dfaae1fd
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.
2023-06-29 20:40:32 +00:00
Don Chea
0e9a8418fc Update Cask cookbook to mention header array support 2023-06-28 11:36:12 -04:00