30713 Commits

Author SHA1 Message Date
Eric Knibbe
03e743a75e
api: add using: attribute to head & stable URLs 2023-10-11 14:14:18 -04:00
Mike McQuaid
f89c7194e8
Merge pull request #16098 from reitermarkus/odebug-system-command
Improve `odebug`/`SystemCommand` debugging output.
2023-10-11 09:10:46 +01:00
Markus Reiter
00c976ce38
Fix test. 2023-10-11 09:42:22 +02:00
BrewTestBot
104983533d
Update RBI files for regexp_parser.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gems.yml) workflow.
2023-10-10 18:35:18 +00:00
BrewTestBot
254f9ec5bd
brew vendor-gems: commit updates. 2023-10-10 18:28:45 +00:00
dependabot[bot]
6319514a64
build(deps-dev): bump regexp_parser in /Library/Homebrew
Bumps [regexp_parser](https://github.com/ammar/regexp_parser) from 2.8.1 to 2.8.2.
- [Changelog](https://github.com/ammar/regexp_parser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/ammar/regexp_parser/compare/v2.8.1...v2.8.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-10 18:24:38 +00:00
Markus Reiter
4b7aed84fa
Add test for print_stdout: :debug. 2023-10-10 03:42:22 +02:00
Markus Reiter
5d87da135a
Allow printing command output when HOMEBREW_DEBUG/--debug is set. 2023-10-10 03:42:22 +02:00
Markus Reiter
16aa6372a3
Make odebug output to stderr. 2023-10-10 03:42:22 +02:00
Mike McQuaid
e57a87cfe9
Merge pull request #16085 from samford/improve-date-version-parsing-take-2
Version: Improve date version parsing
2023-10-09 13:13:59 +01:00
Carlo Cabrera
a2d56ceb2e
Merge pull request #16097 from JameelKaisar/update-actions-publish
Add missing permissions to actions publish
2023-10-09 14:50:34 +08:00
Jameel Kaisar
2779b8ea7f Add missing permissions to actions publish
This commit adds the missing permissions to the
actions publish script. The 'contents: write'
permission is required to publish releases and
the 'pull-requests: write' permission is required
to close the pull request after the changes are committed.
2023-10-08 22:13:59 +00:00
Mike McQuaid
abeab3e6c6
cli/parser: tweak style.
Co-authored-by: Kevin <apainintheneck@gmail.com>
2023-10-08 19:12:43 +01:00
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
Xuehai Pan
6f0d87aace docs: prefer placing shellenv command in rcfile rather than shell profile on Linux 2023-10-07 00:14:26 +08: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
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
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
Eric Knibbe
8646b2cf1f
api: ignore HTTPS errors if minimum curl version isn't installed 2023-10-04 22:24:57 -04: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
Francois-Xavier Coudert
748f060e1b Revert "Version: Improve date version parsing"
This reverts commit 7626bdd1fd84cc5f70c4cb9f7bdf323bb771cf59.
2023-10-04 19:56:21 +02: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
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
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
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
dependabot[bot]
db2cf5ba29
build(deps-dev): bump unicode-display_width in /Library/Homebrew
Bumps [unicode-display_width](https://github.com/janlelis/unicode-display_width) from 2.4.2 to 2.5.0.
- [Changelog](https://github.com/janlelis/unicode-display_width/blob/main/CHANGELOG.md)
- [Commits](https://github.com/janlelis/unicode-display_width/compare/v2.4.2...v2.5.0)

---
updated-dependencies:
- dependency-name: unicode-display_width
  dependency-type: indirect
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-02 18:28:38 +00:00
Mike McQuaid
b855a9eae8
Merge pull request #16071 from Homebrew/pkg_tweaks
workflows/build-pkg: tweak some variables.
2023-10-02 16:55:51 +01:00
Mike McQuaid
def7ab4103
brew.sh: improve/add comment for supported macOSs. 2023-10-02 16:41:51 +01:00
Mike McQuaid
d2f07f884d
Merge pull request #16069 from apainintheneck/handle-name-conflicts-in-to_paths
cli/named_args: better handle name conflicts in #to_paths
2023-10-02 12:45:12 +01:00
apainintheneck
23b277bbd7 cli/named_args: better handle name conflicts in #to_paths
Before we used to evaluate all named arguments as local paths
first. This means that the following could be a name conflict.

$ brew edit src

If there was a local file or directory named src, it would default
to that. Otherwise it would search for a formula/cask with the
same name and return that.

Now it will only default to the local path if the named argument
starts or ends with a slash ('/') or includes a period ('.').
This means that in the event of a name clash with a normal package
name it will default to the package instead of the local file.

It also fixes an edge case where the following would be interpreted
as a tap name.

$ brew edit /src
2023-10-01 15:51:02 -07:00
Mike McQuaid
affc4c01aa
Merge pull request #16068 from J-M0/fish-shellenv
fix `eval (brew shellenv)` from exiting with status 1 in fish
2023-10-01 18:58:57 +01:00
Mike McQuaid
c325404054
Merge pull request #16061 from MikeMcQuaid/sudo_through_sudo_user
Add HOMEBREW_SUDO_THROUGH_SUDO_USER
2023-10-01 16:04:21 +01:00
Mike McQuaid
a0805d8678
Merge pull request #16059 from MikeMcQuaid/whoami
Improve use of `whoami`
2023-10-01 16:04:00 +01:00
James Morris
793831cb93 fix eval (brew shellenv) from exiting with status 1 in fish
fish's `set` doesn't modify the exit status when assigning a variable.
This means that `set -q VAR; or set VAR ...` will return an exit status
of 1 even if the variable is suceessfully set. By switching the commands
to `! set -q VAR; and set VAR ...`, this prevents the 1 from propogating
when running `eval (brew shellenv)`.
2023-09-30 17:39:39 -04:00