38785 Commits

Author SHA1 Message Date
Jameel Kaisar
61c030b08f Add close pr to actions publish
This commit enhances the publish actions script by
including a step to close the pull request after
committing the changes. The existing script deletes
the branch after pushing the commits, but lacks
the functionality to close the associated PR.
2023-10-08 18:08:56 +00:00
Eric Knibbe
d3959727d6
cli/parser: depopulate commands' args lists 2023-10-07 23:52:34 -04:00
Eric Knibbe
eef9f84a80
Merge pull request #16095 from EricFromCanada/fix-fetch-head
cmd/fetch: restore --HEAD functionality
2023-10-07 19:54:04 -04:00
Kevin
1c9caf96b7
Merge pull request #16063 from Homebrew/revert-16054-revert-16026-support-multiple-sockets-in-service-dsl
service: support multiple sockets in DSL
2023-10-07 14:42:26 -07:00
apainintheneck
215419daa5 service: provide backwards compatibility for socket strings
The previous PR changed how sockets were represented in the JSON
API for formulae and that would cause problems when trying to install
packages with service sockets. This provides backwards compatibility
until all users have upgraded to versions of homebrew that can deserialize
sockets hashes (maybe a couple weeks). Essentially, we store the
socket string when serializing sockets that were originally defined with
only the string parameter otherwise we serialize it to a hash.
2023-10-07 14:22:38 -07:00
Sam Ford
2298b74fed
Version: Improve date version parsing
The existing date version parsing regex only matches file names that
have a prefix (e.g., `ltopers-v2017-04-14.tar.gz`), so it doesn't
match files like `2023-09-28.tar.gz`. There are a handful of formulae
that have to manually specify the version as a result (e.g.,
`marksman`, `sqtop`, etc.). `bootloadhid` is also affected but that's
because the filename uses a dot as the prefix delimiter (e.g.,
`bootloadHID.2012-12-08.tar.gz`) and the regex only matches a hyphen.

This addresses these shortcomings by using `[._-]` as the prefix
delimiter and making it optional.

Co-authored-by: Markus Reiter <me@reitermark.us>
2023-10-07 16:37:23 -04:00
Eric Knibbe
075ee81ab7
cmd/fetch: restore --HEAD functionality 2023-10-07 10:50:03 -04:00
Mike McQuaid
8f7e06ab6f
Merge pull request #16040 from XuehaiPan/rcfile-shellenv
docs: prefer placing `shellenv` command in rcfile rather than shell profile on Linux
2023-10-06 17:33:15 +01:00
Xuehai Pan
e12a56fbac docs: update manpage 2023-10-07 00:18:21 +08:00
Xuehai Pan
6f0d87aace docs: prefer placing shellenv command in rcfile rather than shell profile on Linux 2023-10-07 00:14:26 +08:00
Mike McQuaid
7a2425f5a1
Merge pull request #16094 from Homebrew/mac_enterprise_pkg
Improve Mac package for enterprise install scenarios
2023-10-06 12:14:00 +01:00
nstrauss
e0ac5459b3
Improve Mac package for enterprise install scenarios
- Allow specifying user through `/var/tmp/.homebrew_pkg_user.plist`
- Improve permission handling
- Correctly write API cache
- Add `preinstall` script to fail if we can't get a valid user

Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2023-10-06 11:53:00 +01:00
Carlo Cabrera
7456789fb8
Merge pull request #16093 from Homebrew/spdx-update 2023-10-06 09:41:44 +08:00
Bo Anderson
39f2f1d8ca
Merge pull request #16091 from Homebrew/hub-to-gh
workflows: replace `hub` with `gh`
2023-10-06 02:30:58 +01:00
BrewTestBot
798bacaa40
spdx: update license data.
Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/spdx.yml).
2023-10-06 01:00:21 +00:00
Bo Anderson
6932c6568f
workflows: replace hub with gh 2023-10-06 01:52:58 +01:00
Mike McQuaid
fac3e99503
Merge pull request #16090 from Homebrew/revert-16088-revert-16062-bootsnap-relax
standalone/bootsnap: relax restrictions
2023-10-05 17:22:34 +01:00
Mike McQuaid
f6bfb8d757
Revert "Revert "standalone/bootsnap: relax restrictions"" 2023-10-05 17:08:55 +01:00
Mike McQuaid
8c91152eb6
Merge pull request #16078 from EricFromCanada/curl-insecure
api: ignore HTTPS errors if minimum curl version isn't installed
2023-10-05 16:30:28 +01:00
Mike McQuaid
0c35bc7e0e
Merge pull request #16089 from Bo98/gem-cache-fix
workflows/tests: split gem cache per OS version
2023-10-05 16:30:12 +01:00
Bo Anderson
e91dc6f6dc
workflows/tests: split gem cache per OS version 2023-10-05 12:35:21 +01:00
Mike McQuaid
de575da014
Merge pull request #16088 from Homebrew/revert-16062-bootsnap-relax
Revert "standalone/bootsnap: relax restrictions"
2023-10-05 08:43:31 +01:00
Mike McQuaid
2ad5491098
Revert "standalone/bootsnap: relax restrictions" 2023-10-05 08:30:25 +01:00
Mike McQuaid
a8494ba0bb
Merge pull request #16062 from Bo98/bootsnap-relax 2023-10-05 07:33:40 +01:00
Mike McQuaid
1085afcda5
Merge pull request #16086 from issyl0/revision-0-not-allowed-in-text 2023-10-05 07:17:37 +01:00
Mike McQuaid
561c12215e
Merge pull request #16087 from Homebrew/sponsors-maintainers-man-completions 2023-10-05 07:16:35 +01:00
Mike McQuaid
b9756be352
Merge pull request #16084 from Homebrew/dependabot/bundler/Library/Homebrew/parser-3.2.2.4 2023-10-05 07:14:15 +01:00
Mike McQuaid
c5c9d2659f
Merge pull request #16082 from Homebrew/pkg_tweaks 2023-10-05 07:12:09 +01:00
Eric Knibbe
8646b2cf1f
api: ignore HTTPS errors if minimum curl version isn't installed 2023-10-04 22:24:57 -04:00
BrewTestBot
9c03b9ec66
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-10-05 00:05:49 +00:00
Issy Long
5ddebe1640
rubocops/text: Declare "revision 0" in formulae as unnecessary
- This came up in a user contribution recently so here's a RuboCop for it.
2023-10-04 23:28:30 +01:00
BrewTestBot
564fec1579
Update RBI files for parser.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-10-04 18:44:13 +00:00
BrewTestBot
8dca1dd1f1
brew vendor-gems: commit updates. 2023-10-04 18:38:10 +00:00
dependabot[bot]
4b7948bccd
build(deps-dev): bump parser in /Library/Homebrew
Bumps [parser](https://github.com/whitequark/parser) from 3.2.2.3 to 3.2.2.4.
- [Changelog](https://github.com/whitequark/parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/whitequark/parser/compare/v3.2.2.3...v3.2.2.4)

---
updated-dependencies:
- dependency-name: parser
  dependency-type: indirect
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-04 18:34:33 +00:00
Mike McQuaid
ec5ad356a3
Merge pull request #16083 from fxcoudert/revert
Revert "Version: Improve date version parsing"
2023-10-04 19:12:36 +01:00
Francois-Xavier Coudert
748f060e1b Revert "Version: Improve date version parsing"
This reverts commit 7626bdd1fd84cc5f70c4cb9f7bdf323bb771cf59.
2023-10-04 19:56:21 +02:00
Mike McQuaid
5c5ac49a39
More Homebrew .pkg improvements
- test on more macOS versions and improve the test names
- add a more resilient and less disruptive version of changing `git`'s
 `safe.directory` configuration
2023-10-04 18:32:08 +01:00
Mike McQuaid
bb39727de6
Merge pull request #16081 from samford/improve-date-version-parsing
Version: Improve date version parsing
2023-10-04 17:44:12 +01:00
Sam Ford
7626bdd1fd
Version: Improve date version parsing
The existing date version parsing regex only matches file names that
have a prefix (e.g., `ltopers-v2017-04-14.tar.gz`), so it doesn't
match files like `2023-09-28.tar.gz`. There are a handful of formulae
that have to manually specify the version as a result (e.g.,
`marksman`, `sqtop`, etc.). `bootloadhid` is also affected but that's
because the filename uses a dot as the prefix delimiter (e.g.,
`bootloadHID.2012-12-08.tar.gz`) and the regex only matches a hyphen.

This addresses these shortcomings by using `[._-]` as the prefix
delimiter and making it optional.
2023-10-04 11:58:25 -04:00
Mike McQuaid
13b01a67da
Merge pull request #16079 from Bo98/mirror-fix
download_strategy: fix mirrors not working
2023-10-04 16:48:06 +01:00
Mike McQuaid
75b18b5afe
Merge pull request #16080 from MikeMcQuaid/pkg_installer_fix_filename
workflows/pkg-installer: fix filename.
2023-10-04 15:50:19 +01:00
Mike McQuaid
9ee15e02a3
workflows/pkg-installer: fix filename.
This intermediate state got missed during a previous refactoring PR.
2023-10-04 15:34:04 +01:00
Bo Anderson
9c16089e95
download_strategy: fix mirrors not working 2023-10-04 14:28:52 +01:00
Mike McQuaid
f61e4ee872
Merge pull request #16077 from Homebrew/build_pkg_improvements
Improve building Homebrew*.pkg
2023-10-04 10:34:50 +01:00
Mike McQuaid
c95a26b917
Improve building Homebrew*.pkg
- split jobs into build/test/deploy
- test package on both macOS Intel and Apple Silicon
- cleanup some argument handling
- use `HOMEBREW_MACOS_OLDEST_SUPPORTED` naming to be consistent with
  `brew.sh`
- note in `brew.sh` that `Distribution.xml` also needs updated (and do
  so)
- various other little bits of style cleanup
2023-10-04 10:18:27 +01:00
Mike McQuaid
d0eef12ea4
Merge pull request #16076 from apainintheneck/fix-md-linter-errors
Fix markdown linter errors
2023-10-03 12:52:17 +01:00
apainintheneck
2030f07132 Fix markdown linter errors
v0.13 of the `markdownlint` gem just got released and it has
a few new rules which are docs ended up failing. This fixes
those linter errors so that CI is no longer red.

Rules:
MD055 - Tables: Each row must start and end with a '|'
MD057 - Tables: In the second row every column must have at least '---',
        possibly surrounded with alignment ':' chars
2023-10-02 22:42:39 -07:00
Bo Anderson
c502eb3ca9
Merge pull request #16072 from Homebrew/dependabot/bundler/Library/Homebrew/unicode-display_width-2.5.0
build(deps-dev): bump unicode-display_width from 2.4.2 to 2.5.0 in /Library/Homebrew
2023-10-03 02:15:32 +01:00
BrewTestBot
a91289428a
Update RBI files for unicode-display_width.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-10-02 18:41:26 +00:00
BrewTestBot
62edabf7e2
brew vendor-gems: commit updates. 2023-10-02 18:33:42 +00:00