25938 Commits

Author SHA1 Message Date
apainintheneck
cb64bc4df3 Move pkg type logic into search_name
Now the search_name method takes the command line
args and only returns package types that line up
with those args.

That means it will only return casks if casks are valid
and same with formulae.
2022-12-13 22:50:00 -08:00
Kevin
0afc41ceef
Explain edge case in install/cmd
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2022-12-13 20:31:33 -08:00
apainintheneck
daa87fa10f Add specific examples to install cmd
- provide specific install instructions
  when a cask/formula doesn't exist
  and we search for similar ones
- print and exit early if a named formula that
  was removed recently has the same name
- exit early if the tap is specified because
  we don't get good search results
2022-12-12 21:04:59 -08:00
apainintheneck
a481729ade Show casks in install not found output
- Move `search_names` and `print_missing_formula_help` out of `cmd/search.rb` to `search.rb`
- Change to using those functions in `cmd/install.rb` when a formula or cask doesn't exist
2022-12-10 13:02:38 -08:00
Mike McQuaid
11cdffb4fe
Merge pull request #14235 from Homebrew/dependabot/bundler/Library/Homebrew/json_schemer-0.2.24
build(deps): bump json_schemer from 0.2.23 to 0.2.24 in /Library/Homebrew
2022-12-09 08:59:24 +00:00
Mike McQuaid
d90196b470
Merge pull request #14150 from cho-m/click-shell-completions
formula: add support for generating click shell completions
2022-12-09 08:59:08 +00:00
Michael Cho
776d6b934d
language/python: optionally link manpages 2022-12-08 17:03:59 -08:00
BrewTestBot
f623a44061
Update RBI files for json_schemer.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow.
2022-12-08 18:13:09 +00:00
BrewTestBot
74568c77f4
brew vendor-gems: commit updates. 2022-12-08 18:07:02 +00:00
dependabot[bot]
97f0fc17fa
build(deps): bump json_schemer in /Library/Homebrew
Bumps [json_schemer](https://github.com/davishmcclurg/json_schemer) from 0.2.23 to 0.2.24.
- [Release notes](https://github.com/davishmcclurg/json_schemer/releases)
- [Commits](https://github.com/davishmcclurg/json_schemer/compare/v0.2.23...v0.2.24)

---
updated-dependencies:
- dependency-name: json_schemer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-08 18:03:12 +00:00
Michael Cho
5c7d53476e
formula: add support for generating click shell completions 2022-12-08 09:31:04 -08:00
Mike McQuaid
b93a90f5af
Merge pull request #14227 from Homebrew/dependabot/bundler/Library/Homebrew/public_suffix-5.0.1
build(deps): bump public_suffix from 5.0.0 to 5.0.1 in /Library/Homebrew
2022-12-08 14:31:38 +00:00
Mike McQuaid
2fb9f9ca13
Merge pull request #14232 from MikeMcQuaid/brew_search_args
description*: fix argument handling of eval_all.
2022-12-08 10:29:27 +00:00
Mike McQuaid
69ef011985
Merge pull request #14221 from MikeMcQuaid/api_formula_handle_corruption
api/formula: handle JSON file corruption.
2022-12-08 10:06:50 +00:00
Mike McQuaid
639cb25c60
description*: fix argument handling of eval_all.
Fixes #14231.
2022-12-08 09:57:12 +00:00
Mike McQuaid
aa7e1304fb
Merge pull request #14229 from Homebrew/dependabot/bundler/Library/Homebrew/nokogiri-1.13.10
build(deps): bump nokogiri from 1.13.9 to 1.13.10 in /Library/Homebrew
2022-12-08 09:50:43 +00:00
Mike McQuaid
b8c4326aa8
Merge pull request #14223 from MikeMcQuaid/brew_install_output_fetches
formula_installer: output fetching headers.
2022-12-08 09:42:08 +00:00
Mike McQuaid
e67901f236
api/formula: handle JSON file corruption.
If we can't parse the file: it's corrupt. Try again up to 3 times before
bailing.
2022-12-08 09:34:05 +00:00
BrewTestBot
21500ece76
Update RBI files for nokogiri.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow.
2022-12-08 04:31:38 +00:00
BrewTestBot
0de580d9e9
brew vendor-gems: commit updates. 2022-12-08 04:26:55 +00:00
dependabot[bot]
f978056e2c
build(deps): bump nokogiri from 1.13.9 to 1.13.10 in /Library/Homebrew
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.13.9 to 1.13.10.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/main/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.13.9...v1.13.10)

---
updated-dependencies:
- dependency-name: nokogiri
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-08 04:23:06 +00:00
BrewTestBot
6989e3681e
Update RBI files for public_suffix.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow.
2022-12-07 18:11:01 +00:00
BrewTestBot
67c4992d09
brew vendor-gems: commit updates. 2022-12-07 18:05:16 +00:00
dependabot[bot]
7a582fde6b
build(deps): bump public_suffix from 5.0.0 to 5.0.1 in /Library/Homebrew
Bumps [public_suffix](https://github.com/weppos/publicsuffix-ruby) from 5.0.0 to 5.0.1.
- [Release notes](https://github.com/weppos/publicsuffix-ruby/releases)
- [Changelog](https://github.com/weppos/publicsuffix-ruby/blob/main/CHANGELOG.md)
- [Commits](https://github.com/weppos/publicsuffix-ruby/compare/v5.0.0...v5.0.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-07 18:01:09 +00:00
Mike McQuaid
781ffdab8e
Merge pull request #14225 from Homebrew/sorbet-files-update
sorbet: Update RBI files.
2022-12-07 15:25:22 +00:00
Kevin
fd8aaa49fd
Merge pull request #14207 from apainintheneck/cleanup-brew-prof
Cleanup `brew prof`
2022-12-06 19:07:17 -08:00
BrewTestBot
04f61a940e
sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
2022-12-07 00:27:14 +00:00
Eric Knibbe
4fe0d085bc
Merge pull request #14218 from EricFromCanada/create-prompt-name
dev-cmd/create: also prompt for name when run with `--cask`
2022-12-06 19:06:05 -05:00
Dawid Dziurla
a4d2aa8fa0
Merge pull request #14210 from dawidd6/bump-check-is-a-version
dev-cmd/bump: check if Repology output is a version first
2022-12-06 21:24:56 +01:00
EricFromCanada
8f445de261
dev-cmd/create: also prompt for name with --cask 2022-12-06 13:04:51 -05:00
Mike McQuaid
7ecc079cc2
Merge pull request #14222 from MikeMcQuaid/brew_desc_eval_all_formula_search_fix
cmd/desc: fix searching.
2022-12-06 14:26:43 +00:00
Mike McQuaid
5e7c19c8cb
formula_installer: output fetching headers.
This outputs headers for fetching to be consistent with those for
installation.
2022-12-06 14:09:49 +00:00
Mike McQuaid
28719f7fdc
cmd/desc: fix searching.
Ensure that the cache store is populated if we pass `--eval-all`.
2022-12-06 13:56:54 +00:00
Sean Molenaar
855a2b8096
Merge pull request #14209 from SMillerDev/feature/caveats/respect_require_root
caveats: print sudo in caveats if service requires it
2022-12-06 13:06:03 +01:00
Mike McQuaid
3070fd7fef
Merge pull request #14206 from apainintheneck/make-formula-default-on-linux
Make :formula? the default on Linux
2022-12-06 11:29:16 +00:00
Mike McQuaid
f656f816bf
Merge pull request #14219 from bevanjkay/cask-audit-enable-signing-flag
dev-cmd/audit: enable --[no-]signing flag for audits
2022-12-06 10:20:48 +00:00
Bevan Kay
74092bc40d
Update Library/Homebrew/dev-cmd/audit.rb
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com>
2022-12-06 20:50:00 +11:00
BrewTestBot
674f8dbd56
Update RBI files for racc.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow.
2022-12-06 09:46:02 +00:00
BrewTestBot
1d1b325693
brew vendor-gems: commit updates. 2022-12-06 09:40:23 +00:00
dependabot[bot]
65b3ee647f
build(deps): bump racc from 1.6.0 to 1.6.1 in /Library/Homebrew
Bumps [racc](https://github.com/tenderlove/racc) from 1.6.0 to 1.6.1.
- [Release notes](https://github.com/tenderlove/racc/releases)
- [Changelog](https://github.com/ruby/racc/blob/master/ChangeLog)
- [Commits](https://github.com/tenderlove/racc/compare/v1.6.0...v1.6.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-06 09:36:12 +00:00
Mike McQuaid
31538f3dd4
Merge pull request #14214 from Homebrew/dependabot/bundler/Library/Homebrew/json-2.6.3
build(deps): bump json from 2.6.2 to 2.6.3 in /Library/Homebrew
2022-12-06 09:35:29 +00:00
Mike McQuaid
0300c4aefa
Merge pull request #14213 from Homebrew/dependabot/bundler/Library/Homebrew/rack-3.0.2
build(deps): bump rack from 3.0.1 to 3.0.2 in /Library/Homebrew
2022-12-06 09:30:17 +00:00
Mike McQuaid
3a89d0cd51
Merge pull request #14216 from Homebrew/dependabot/bundler/Library/Homebrew/did_you_mean-1.6.2
build(deps): bump did_you_mean from 1.6.1 to 1.6.2 in /Library/Homebrew
2022-12-06 09:30:05 +00:00
Sam Ford
e56735a171
ElectronBuilder: Allow Date/Time deserialization
The `ElectronBuilder` strategy uses `YAML#safe_load` to parse YAML
content and this limits deserialization to appropriate classes. We
recently encountered a `Tried to load unspecified class: Time` error
when using the `ElectronBuilder` strategy on a `latest-mac.yml` file
containing `releaseDate: 2022-12-01T02:02:46.419Z`.

The electron-builder YAML files we usually encounter use single
quotes around the `releaseDate` value to ensure it's treated as a
string (e.g., `releaseDate: '2022-10-12T17:55:26.718Z'`) and this is
what we do in `electron_builder_spec.rb`. The aforementioned YAML
file doesn't use single quotes around the value, so it's treated as
a timestamp and apparently this makes Psych use `Time` (which
`#safe_load` doesn't allow by default).

Seeing as we can't control the YAML content and there's a chance we
may encounter other files like this in the future, this commit
modifies the related `#safe_load` call to allow `Time` (and `Date`
for good measure). This will resolve the aforementioned error and
allow the `ElectronBuilder` strategy to work as expected in this
scenario.
2022-12-05 21:45:18 -05:00
Bevan Kay
839746cf99
dev-cmd/audit: enable --[no]-signing flag for audits 2022-12-06 11:00:59 +11:00
BrewTestBot
d14e5e0899
Update RBI files for rack.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow.
2022-12-05 18:13:52 +00:00
BrewTestBot
66a7a230b2
Update RBI files for json.
Autogenerated by the [vendor-gems](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/vendor-gemss.yml) workflow.
2022-12-05 18:11:59 +00:00
BrewTestBot
2f74401433
brew vendor-gems: commit updates. 2022-12-05 18:09:00 +00:00
BrewTestBot
a63ab9372a
brew vendor-gems: commit updates. 2022-12-05 18:07:03 +00:00
BrewTestBot
de47bb678a
brew vendor-gems: commit updates. 2022-12-05 18:06:34 +00:00