language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | Homebrew | brew | d6bba1c4938ea9c9a9d58ba2f209775dd71a8537.json | java: fix java_home on macOS | Library/Homebrew/language/java.rb | @@ -45,3 +45,5 @@ def self.overridable_java_home_env(version = nil)
end
end
end
+
+require "extend/os/language/java" | true |
Other | Homebrew | brew | c6785c7281f36c9b2e7f3a9ec69826dd7723f096.json | Update RBI files for mechanize. | Library/Homebrew/sorbet/rbi/gems/mechanize@2.7.7.rbi | @@ -1,6 +1,6 @@
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `mechanize` gem.
-# Please instead update this file by running `tapioca generate --exclude json`.
+# Please instead update this file by running `tapioca sync`.
# typed: true
@@ -57,7 +57,7 @@ class Mechanize
def... | true |
Other | Homebrew | brew | c6785c7281f36c9b2e7f3a9ec69826dd7723f096.json | Update RBI files for mechanize. | Library/Homebrew/sorbet/rbi/gems/net-http-persistent@4.0.0.rbi | @@ -1,7 +0,0 @@
-# DO NOT EDIT MANUALLY
-# This is an autogenerated file for types exported from the `net-http-persistent` gem.
-# Please instead update this file by running `tapioca generate --exclude json`.
-
-# typed: true
-
- | true |
Other | Homebrew | brew | c6785c7281f36c9b2e7f3a9ec69826dd7723f096.json | Update RBI files for mechanize. | Library/Homebrew/sorbet/rbi/gems/net-http-persistent@4.0.1.rbi | @@ -0,0 +1,147 @@
+# DO NOT EDIT MANUALLY
+# This is an autogenerated file for types exported from the `net-http-persistent` gem.
+# Please instead update this file by running `tapioca sync`.
+
+# typed: true
+
+class Net::HTTP::Persistent
+ def initialize(name: T.unsafe(nil), proxy: T.unsafe(nil), pool_size: T.unsafe... | true |
Other | Homebrew | brew | c6785c7281f36c9b2e7f3a9ec69826dd7723f096.json | Update RBI files for mechanize. | Library/Homebrew/sorbet/rbi/gems/webrick@1.7.0.rbi | @@ -0,0 +1,77 @@
+# DO NOT EDIT MANUALLY
+# This is an autogenerated file for types exported from the `webrick` gem.
+# Please instead update this file by running `tapioca sync`.
+
+# typed: true
+
+module WEBrick::HTTPUtils
+
+ private
+
+ def _escape(str, regex); end
+ def _make_regex(str); end
+ def _make_regex!... | true |
Other | Homebrew | brew | c6785c7281f36c9b2e7f3a9ec69826dd7723f096.json | Update RBI files for mechanize. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -9251,14 +9251,6 @@ JSON::State = JSON::Ext::Generator::State
JSON::UnparserError = JSON::GeneratorError
-class JavaRequirement::CaskSuggestion
- extend ::T::Private::Methods::MethodHooks
- extend ::T::Private::Methods::SingletonMethodHooks
- def self.[](*_); end
-
- def self.members(); end
-end
-
module K... | true |
Other | Homebrew | brew | 8f69e63712c57ac764af8ec28a494944162467e9.json | Update RBI files for rubocop. | Library/Homebrew/sorbet/rbi/gems/rubocop@1.9.1.rbi | @@ -726,6 +726,7 @@ class RuboCop::Cop::Base
include(::RuboCop::Cop::AutocorrectLogic)
extend(::RuboCop::AST::Sexp)
extend(::RuboCop::AST::NodePattern::Macros)
+ extend(::RuboCop::ExcludeLimit)
def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end
@@ -929,8 +930,9 @@ module RuboCop::Cop:... | true |
Other | Homebrew | brew | 8f69e63712c57ac764af8ec28a494944162467e9.json | Update RBI files for rubocop. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -9251,14 +9251,6 @@ JSON::State = JSON::Ext::Generator::State
JSON::UnparserError = JSON::GeneratorError
-class JavaRequirement::CaskSuggestion
- extend ::T::Private::Methods::MethodHooks
- extend ::T::Private::Methods::SingletonMethodHooks
- def self.[](*_); end
-
- def self.members(); end
-end
-
module K... | true |
Other | Homebrew | brew | 74241750241237819abd1df1bb3790090355a15f.json | sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -9251,14 +9251,6 @@ JSON::State = JSON::Ext::Generator::State
JSON::UnparserError = JSON::GeneratorError
-class JavaRequirement::CaskSuggestion
- extend ::T::Private::Methods::MethodHooks
- extend ::T::Private::Methods::SingletonMethodHooks
- def self.[](*_); end
-
- def self.members(); end
-end
-
module K... | false |
Other | Homebrew | brew | 23b64f82c9a94b94baf64abe3c8533e1b52665f5.json | dev-cmd/prof: allow non-zero exit code.
Want to ensure that we still write profiling data even if the Homebrew
command fails. | Library/Homebrew/dev-cmd/prof.rb | @@ -32,7 +32,7 @@ def prof
if args.stackprof?
Homebrew.install_gem_setup_path! "stackprof"
with_env HOMEBREW_STACKPROF: "1" do
- safe_system ENV["HOMEBREW_RUBY_PATH"], brew_rb, *args.named
+ system ENV["HOMEBREW_RUBY_PATH"], brew_rb, *args.named
end
output_filename = "prof... | false |
Other | Homebrew | brew | 3e23db2a34041a9df17583dfa1ad776ecea0dff5.json | Use new issue templates.
These are in beta and we've been given access to them so: let's try
them out. | .github/ISSUE_TEMPLATE/bug.md | @@ -1,46 +0,0 @@
----
-name: New issue for Reproducible Bug
-about: "If you're sure it's reproducible and not just your machine: submit an issue so we can investigate."
-
----
-
-# Bug report
-
-**Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist belo... | true |
Other | Homebrew | brew | 3e23db2a34041a9df17583dfa1ad776ecea0dff5.json | Use new issue templates.
These are in beta and we've been given access to them so: let's try
them out. | .github/ISSUE_TEMPLATE/bug.yml | @@ -0,0 +1,41 @@
+name: New issue for Reproducible Bug
+about: "If you're sure it's reproducible and not just your machine: submit an issue so we can investigate."
+labels: bug
+issue_body: false
+inputs:
+ - type: description
+ attributes:
+ value: Please note we will close your issue without comment if you d... | true |
Other | Homebrew | brew | 3e23db2a34041a9df17583dfa1ad776ecea0dff5.json | Use new issue templates.
These are in beta and we've been given access to them so: let's try
them out. | .github/ISSUE_TEMPLATE/feature.md | @@ -1,29 +0,0 @@
----
-name: New issue for Feature Suggestion
-about: Request our thoughts on your suggestion for a new feature for Homebrew.
-
----
-
-# Feature suggestion
-
-**Please note we will close your issue without comment if you delete, do not read or do not fill out the issue checklist below and provide ALL t... | true |
Other | Homebrew | brew | 3e23db2a34041a9df17583dfa1ad776ecea0dff5.json | Use new issue templates.
These are in beta and we've been given access to them so: let's try
them out. | .github/ISSUE_TEMPLATE/feature.yml | @@ -0,0 +1,27 @@
+name: New issue for Feature Suggestion
+about: Request our thoughts on your suggestion for a new feature for Homebrew.
+labels: features
+issue_body: false
+inputs:
+ - type: description
+ attributes:
+ value: Please note we will close your issue without comment if do not fill out the issue c... | true |
Other | Homebrew | brew | 28a8409b6e6ecc35f739f88d7e8e309c9265818d.json | cmd/--prefix: add --installed flag
This changes the output for uninstalled formulae from Cellar prefix to empty string, so:
```sh
$ brew --prefix abcde python@3.9 tcl-tk
/usr/local/Cellar/abcde/2.9.3_1
/usr/local/opt/python@3.9
/usr/local/Cellar/tcl-tk/8.6.10
$ brew --prefix --installed abcde python@3.9 tcl-tk
/usr/l... | Library/Homebrew/cmd/--prefix.rb | @@ -23,6 +23,9 @@ def __prefix_args
EOS
switch "--unbrewed",
description: "List files in Homebrew's prefix not installed by Homebrew."
+ switch "--installed",
+ description: "Outputs nothing and returns a failing status code if <formula> is not installed."
+ conflicts "... | true |
Other | Homebrew | brew | 28a8409b6e6ecc35f739f88d7e8e309c9265818d.json | cmd/--prefix: add --installed flag
This changes the output for uninstalled formulae from Cellar prefix to empty string, so:
```sh
$ brew --prefix abcde python@3.9 tcl-tk
/usr/local/Cellar/abcde/2.9.3_1
/usr/local/opt/python@3.9
/usr/local/Cellar/tcl-tk/8.6.10
$ brew --prefix --installed abcde python@3.9 tcl-tk
/usr/l... | Library/Homebrew/test/cmd/--prefix_spec.rb | @@ -14,4 +14,18 @@
.and not_to_output.to_stderr
.and be_a_success
end
+
+ it "errors if the given Formula doesn't exist" do
+ expect { brew "--prefix", "--installed", "nonexistent" }
+ .to output(/No available formula/).to_stderr
+ .and not_to_output.to_stdout
+ .and be_a_failure
+ ... | true |
Other | Homebrew | brew | 28a8409b6e6ecc35f739f88d7e8e309c9265818d.json | cmd/--prefix: add --installed flag
This changes the output for uninstalled formulae from Cellar prefix to empty string, so:
```sh
$ brew --prefix abcde python@3.9 tcl-tk
/usr/local/Cellar/abcde/2.9.3_1
/usr/local/opt/python@3.9
/usr/local/Cellar/tcl-tk/8.6.10
$ brew --prefix --installed abcde python@3.9 tcl-tk
/usr/l... | completions/bash/brew | @@ -202,6 +202,7 @@ _brew___prefix() {
__brewcomp "
--debug
--help
+ --installed
--quiet
--unbrewed
--verbose | true |
Other | Homebrew | brew | 28a8409b6e6ecc35f739f88d7e8e309c9265818d.json | cmd/--prefix: add --installed flag
This changes the output for uninstalled formulae from Cellar prefix to empty string, so:
```sh
$ brew --prefix abcde python@3.9 tcl-tk
/usr/local/Cellar/abcde/2.9.3_1
/usr/local/opt/python@3.9
/usr/local/Cellar/tcl-tk/8.6.10
$ brew --prefix --installed abcde python@3.9 tcl-tk
/usr/l... | completions/fish/brew.fish | @@ -248,6 +248,7 @@ __fish_brew_complete_arg '--env' -a '(__fish_brew_suggest_formulae_all)'
__fish_brew_complete_cmd '--prefix' 'Display Homebrew\'s install path'
__fish_brew_complete_arg '--prefix' -l debug -d 'Display any debugging information'
__fish_brew_complete_arg '--prefix' -l help -d 'Show this message'
+_... | true |
Other | Homebrew | brew | 28a8409b6e6ecc35f739f88d7e8e309c9265818d.json | cmd/--prefix: add --installed flag
This changes the output for uninstalled formulae from Cellar prefix to empty string, so:
```sh
$ brew --prefix abcde python@3.9 tcl-tk
/usr/local/Cellar/abcde/2.9.3_1
/usr/local/opt/python@3.9
/usr/local/Cellar/tcl-tk/8.6.10
$ brew --prefix --installed abcde python@3.9 tcl-tk
/usr/l... | completions/zsh/_brew | @@ -312,8 +312,9 @@ _brew___prefix() {
_arguments \
'--debug[Display any debugging information]' \
'--help[Show this message]' \
+ '(--unbrewed)--installed[Outputs nothing and returns a failing status code if formula is not installed]' \
'--quiet[Make some output more quiet]' \
- '--unbrewed[Lis... | true |
Other | Homebrew | brew | 28a8409b6e6ecc35f739f88d7e8e309c9265818d.json | cmd/--prefix: add --installed flag
This changes the output for uninstalled formulae from Cellar prefix to empty string, so:
```sh
$ brew --prefix abcde python@3.9 tcl-tk
/usr/local/Cellar/abcde/2.9.3_1
/usr/local/opt/python@3.9
/usr/local/Cellar/tcl-tk/8.6.10
$ brew --prefix --installed abcde python@3.9 tcl-tk
/usr/l... | docs/Manpage.md | @@ -723,7 +723,7 @@ the list is formatted for export to `bash`(1) unless `--plain` is passed.
* `--plain`:
Generate plain output even when piped.
-### `--prefix` [*`--unbrewed`*] [*`formula`* ...]
+### `--prefix` [*`--unbrewed`*] [*`--installed`*] [*`formula`* ...]
Display Homebrew's install path. *Default:*
... | true |
Other | Homebrew | brew | 28a8409b6e6ecc35f739f88d7e8e309c9265818d.json | cmd/--prefix: add --installed flag
This changes the output for uninstalled formulae from Cellar prefix to empty string, so:
```sh
$ brew --prefix abcde python@3.9 tcl-tk
/usr/local/Cellar/abcde/2.9.3_1
/usr/local/opt/python@3.9
/usr/local/Cellar/tcl-tk/8.6.10
$ brew --prefix --installed abcde python@3.9 tcl-tk
/usr/l... | manpages/brew.1 | @@ -978,7 +978,7 @@ Generate a list of environment variables for the specified shell, or \fB\-\-shel
\fB\-\-plain\fR
Generate plain output even when piped\.
.
-.SS "\fB\-\-prefix\fR [\fI\-\-unbrewed\fR] [\fIformula\fR \.\.\.]"
+.SS "\fB\-\-prefix\fR [\fI\-\-unbrewed\fR] [\fI\-\-installed\fR] [\fIformula\fR \.\.\.]"
... | true |
Other | Homebrew | brew | 3c29c088314bc4355508f528fd8853a86ebf9356.json | Update RBI files for rubocop. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -12420,7 +12420,6 @@ class Object
HOMEBREW_MACOS_ARM_DEFAULT_PREFIX = ::T.let(nil, ::T.untyped)
HOMEBREW_MACOS_ARM_DEFAULT_REPOSITORY = ::T.let(nil, ::T.untyped)
HOMEBREW_OFFICIAL_REPO_PREFIXES_REGEX = ::T.let(nil, ::T.untyped)
- HOMEBREW_PATCHELF_RB_WRITE = ::T.let(nil, ::T.untyped)
HOMEBREW_PINNED_KEG... | false |
Other | Homebrew | brew | a4761ab570f2ac63e277bef0e62c5271523fc9da.json | Update RBI files for rubocop. | Library/Homebrew/sorbet/rbi/gems/rubocop@1.9.0.rbi | @@ -67,6 +67,8 @@ RuboCop::CLI::Command::AutoGenerateConfig::PHASE_1_OVERRIDDEN = T.let(T.unsafe(n
RuboCop::CLI::Command::AutoGenerateConfig::PHASE_2 = T.let(T.unsafe(nil), String)
+RuboCop::CLI::Command::AutoGenerateConfig::YAML_OPTIONAL_DOC_START = T.let(T.unsafe(nil), Regexp)
+
class RuboCop::CLI::Command::Bas... | true |
Other | Homebrew | brew | a4761ab570f2ac63e277bef0e62c5271523fc9da.json | Update RBI files for rubocop. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -26819,7 +26819,7 @@ module RuboCop::RSpec::ExpectOffense
def expect_no_offenses(source, file=T.unsafe(nil)); end
- def expect_offense(source, file=T.unsafe(nil), severity: T.unsafe(nil), **replacements); end
+ def expect_offense(source, file=T.unsafe(nil), severity: T.unsafe(nil), chomp: T.unsafe(nil), **r... | true |
Other | Homebrew | brew | fc7c2434710449088361c52046d13408c0c74729.json | version: add constants for regexes | Library/Homebrew/version.rb | @@ -379,6 +379,21 @@ def self._parse(spec, detected_from_url:)
end
private_class_method :_parse
+ DOT_OPTIONAL = /(?:\d+(?:\.\d+)*)/.source.freeze
+ private_constant :DOT_OPTIONAL
+
+ DOT_REQUIRED = /(?:\d+(?:\.\d+)+)/.source.freeze
+ private_constant :DOT_REQUIRED
+
+ MINOR_OR_PATCH = /(?:\d+(?:\.\d+){1,2... | false |
Other | Homebrew | brew | d9e8a34d3b3eb9e42bd941588273718be5ae0355.json | version: replace [.] with \. in regex | Library/Homebrew/version.rb | @@ -460,7 +460,7 @@ def self._parse(spec, detected_from_url:)
StemParser.new(/-((?:\d+\.)+\d+)-/),
# e.g. dash_0.5.5.1.orig.tar.gz (Debian style)
- StemParser.new(/_((?:\d+\.)+\d+[abc]?)[.]orig$/),
+ StemParser.new(/_((?:\d+\.)+\d+[abc]?)\.orig$/),
# e.g. https://www.openssl.org/source/openssl-... | false |
Other | Homebrew | brew | 46c5965037b96da8bfc8b514c2f37961ffc9286e.json | style: handle line too long for new bottle blocks
The " was for a previous syntax we had, but we dropped that and changed our minds.
This PR fixes the style check for the current implementation of the new bottle blocks. | Library/.rubocop.yml | @@ -353,7 +353,7 @@ Layout/LineLength:
' name "',
' pkg "',
' pkgutil: "',
- ' sha256 "',
+ ' sha256 cellar: ',
"#{language}",
"#{version.",
' "/Library/Application Support/', | false |
Other | Homebrew | brew | 84fc16c1c1846bcc768a724311c30c7bf98e2cbd.json | Apply suggestions from code review
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/cmd/update-report.rb | @@ -152,7 +152,7 @@ def update_report
puts <<~EOS
The following taps can not read their remote branches:
#{failed_fetch_taps.join("\n ")}
- This may be happening because the remote branch was renamed.
+ This is happening because the remote branch was renamed or deleted.
... | true |
Other | Homebrew | brew | 84fc16c1c1846bcc768a724311c30c7bf98e2cbd.json | Apply suggestions from code review
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/cmd/update.sh | @@ -483,9 +483,9 @@ EOS
trap '{ /usr/bin/pkill -P $$; wait; exit 130; }' SIGINT
local update_failed_file="$HOMEBREW_REPOSITORY/.git/UPDATE_FAILED"
- local failed_fetch_dirs_file="$HOMEBREW_REPOSITORY/.git/FAILED_FETCH_DIRS"
+ local missing_remote_ref_dirs_file="$HOMEBREW_REPOSITORY/.git/FAILED_FETCH_DIRS"
... | true |
Other | Homebrew | brew | 84fc16c1c1846bcc768a724311c30c7bf98e2cbd.json | Apply suggestions from code review
Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/tap.rb | @@ -375,7 +375,7 @@ def fix_remote_configuration
path.git_rename_branch old: current_upstream_head, new: new_upstream_head
path.git_branch_set_upstream local: new_upstream_head, origin: new_upstream_head
- ohai "#{name}: changed default branch name from #{current_upstream_head} to #{new_upstream_head}"
+... | true |
Other | Homebrew | brew | f508f8dc0c246669e2d746bf0ab12e8b2ca36d46.json | update: show message prompting `brew tap --repair`
This message is shown when a fetch fails due to a branch rename | Library/Homebrew/cmd/update-report.rb | @@ -144,6 +144,19 @@ def update_report
link_completions_manpages_and_docs
Tap.each(&:link_completions_and_manpages)
+ failed_fetch_dirs = ENV["HOMEBREW_FAILED_FETCH_DIRS"]&.split("\n")
+ if failed_fetch_dirs.present?
+ failed_fetch_taps = failed_fetch_dirs.map { |dir| Tap.from_path(dir) }
+
+ ... | true |
Other | Homebrew | brew | f508f8dc0c246669e2d746bf0ab12e8b2ca36d46.json | update: show message prompting `brew tap --repair`
This message is shown when a fetch fails due to a branch rename | Library/Homebrew/cmd/update-reset.sh | @@ -1,6 +1,6 @@
#: * `update-reset` [<repository> ...]
#:
-#: Fetch and reset Homebrew and all tap repositories (or any specified <repository>) using `git`(1) to their latest `origin/master`.
+#: Fetch and reset Homebrew and all tap repositories (or any specified <repository>) using `git`(1) to their latest `origi... | true |
Other | Homebrew | brew | f508f8dc0c246669e2d746bf0ab12e8b2ca36d46.json | update: show message prompting `brew tap --repair`
This message is shown when a fetch fails due to a branch rename | Library/Homebrew/cmd/update.sh | @@ -483,7 +483,9 @@ EOS
trap '{ /usr/bin/pkill -P $$; wait; exit 130; }' SIGINT
local update_failed_file="$HOMEBREW_REPOSITORY/.git/UPDATE_FAILED"
+ local failed_fetch_dirs_file="$HOMEBREW_REPOSITORY/.git/FAILED_FETCH_DIRS"
rm -f "$update_failed_file"
+ rm -f "$failed_fetch_dirs_file"
for DIR in "$HOM... | true |
Other | Homebrew | brew | f508f8dc0c246669e2d746bf0ab12e8b2ca36d46.json | update: show message prompting `brew tap --repair`
This message is shown when a fetch fails due to a branch rename | completions/zsh/_brew | @@ -217,7 +217,7 @@ __brew_internal_commands() {
'update-license-data:Update SPDX license data in the Homebrew repository'
'update-python-resources:Update versions for PyPI resource blocks in formula'
'update-report:The Ruby implementation of `brew update`'
- 'update-reset:Fetch and reset Homebrew and... | true |
Other | Homebrew | brew | f508f8dc0c246669e2d746bf0ab12e8b2ca36d46.json | update: show message prompting `brew tap --repair`
This message is shown when a fetch fails due to a branch rename | docs/Manpage.md | @@ -607,7 +607,7 @@ Fetch the newest version of Homebrew and all formulae from GitHub using `git`(1)
### `update-reset` [*`repository`* ...]
-Fetch and reset Homebrew and all tap repositories (or any specified *`repository`*) using `git`(1) to their latest `origin/master`.
+Fetch and reset Homebrew and all tap rep... | true |
Other | Homebrew | brew | f508f8dc0c246669e2d746bf0ab12e8b2ca36d46.json | update: show message prompting `brew tap --repair`
This message is shown when a fetch fails due to a branch rename | manpages/brew.1 | @@ -812,7 +812,7 @@ Run on auto\-updates (e\.g\. before \fBbrew install\fR)\. Skips some slower step
Always do a slower, full update check (even if unnecessary)\.
.
.SS "\fBupdate\-reset\fR [\fIrepository\fR \.\.\.]"
-Fetch and reset Homebrew and all tap repositories (or any specified \fIrepository\fR) using \fBgit\... | true |
Other | Homebrew | brew | 4bdc11ddc97ccf2c7b822e7485bab65f940a69e9.json | tap: fix renamed branches with `brew tap --repair` | Library/Homebrew/cmd/tap.rb | @@ -50,6 +50,7 @@ def tap
if args.repair?
Tap.each(&:link_completions_and_manpages)
+ Tap.each(&:fix_remote_configuration)
elsif args.list_pinned?
puts Tap.select(&:pinned?).map(&:name)
elsif args.no_named? | true |
Other | Homebrew | brew | 4bdc11ddc97ccf2c7b822e7485bab65f940a69e9.json | tap: fix renamed branches with `brew tap --repair` | Library/Homebrew/extend/git_repository.rb | @@ -54,6 +54,18 @@ def git_branch(safe: false)
popen_git("rev-parse", "--abbrev-ref", "HEAD", safe: safe)
end
+ # Change the name of a local branch
+ sig { params(old: String, new: String).void }
+ def git_rename_branch(old:, new:)
+ popen_git("branch", "-m", old, new)
+ end
+
+ # Set an upstream bran... | true |
Other | Homebrew | brew | 4bdc11ddc97ccf2c7b822e7485bab65f940a69e9.json | tap: fix renamed branches with `brew tap --repair` | Library/Homebrew/tap.rb | @@ -362,6 +362,22 @@ def link_completions_and_manpages
end
end
+ def fix_remote_configuration
+ return unless remote.include? "github.com"
+
+ current_upstream_head = path.git_origin_branch
+ return if path.git_origin_has_branch? current_upstream_head
+
+ safe_system "git", "-C", path, "fetch", "... | true |
Other | Homebrew | brew | 902993afe40aff3a29f94546223a3bbc4de19264.json | dev-cmd/bottle_spec: add another integration test on macOS. | Library/Homebrew/test/dev-cmd/bottle_spec.rb | @@ -263,7 +263,7 @@ def stub_hash(parameters)
end
end
-describe "brew bottle --merge", :integration_test, :needs_linux do
+describe "brew bottle --merge", :integration_test do
let(:core_tap) { CoreTap.new }
let(:tarball) do
if OS.linux? | false |
Other | Homebrew | brew | fc1c142ebd0e7d0c1ab308c11c52ab33ce204054.json | software_spec: reverse tag/digest for new bottles.
This new format was agreed in #10377 | Library/Homebrew/software_spec.rb | @@ -403,17 +403,28 @@ def tag?(tag)
# a Hash, which indicates the platform the checksum applies on.
# Example bottle block syntax:
# bottle do
- # sha256 "69489ae397e4645..." => :big_sur, :cellar => :any_skip_relocation
- # sha256 "449de5ea35d0e94..." => :catalina, :cellar => :any
+ # sha256 cellar: :any... | true |
Other | Homebrew | brew | fc1c142ebd0e7d0c1ab308c11c52ab33ce204054.json | software_spec: reverse tag/digest for new bottles.
This new format was agreed in #10377 | Library/Homebrew/test/software_spec_spec.rb | @@ -201,14 +201,14 @@
it "works with cellar" do
checksums = [
- { digest: "deadbeef" * 8, tag: :snow_leopard_32, cellar: :any_skip_relocation },
- { digest: "faceb00c" * 8, tag: :snow_leopard, cellar: :any },
- { digest: "baadf00d" * 8, tag: :lion, cellar: "/usr/local/Cellar" },
- ... | true |
Other | Homebrew | brew | fc1c142ebd0e7d0c1ab308c11c52ab33ce204054.json | software_spec: reverse tag/digest for new bottles.
This new format was agreed in #10377 | Library/Homebrew/test/support/fixtures/testball_bottle_cellar.rb | @@ -10,7 +10,7 @@ def initialize(name = "testball_bottle", path = Pathname.new(__FILE__).expand_pa
hexdigest = "8f9aecd233463da6a4ea55f5f88fc5841718c013f3e2a7941350d6130f1dc149"
stable.bottle do
root_url "file://#{TEST_FIXTURE_DIR}/bottles"
- sha256 hexdigest => Utils::Bottles.tag, :cellar... | true |
Other | Homebrew | brew | 623e2d95af6c04dca5b3de94443095fb1d25ce3b.json | Revert "cleanup_spec: inline path creation."
This reverts commit 3724c739f880945ec76a16ef8b9209c6440f0035. | Library/Homebrew/test/cleanup_spec.rb | @@ -199,24 +199,25 @@
describe "::cleanup_logs" do
let(:path) { (HOMEBREW_LOGS/"delete_me") }
- it "cleans all logs if prune is 0" do
+ before do
path.mkpath
+ end
+
+ it "cleans all logs if prune is 0" do
described_class.new(days: 0).cleanup_logs
expect(path).not_to exist
... | false |
Other | Homebrew | brew | 04565165007d954cf0080bcf42f4c87ce3df0179.json | Update fish completions to satisfy brew man | completions/fish/brew.fish | @@ -1039,7 +1039,7 @@ __fish_brew_complete_arg 'outdated' -l fetch-HEAD -d 'Fetch the upstream reposit
__fish_brew_complete_arg 'outdated' -l formula -d 'List only outdated formulae'
__fish_brew_complete_arg 'outdated' -l greedy -d 'Print outdated casks with `auto_updates` or `version :latest`'
__fish_brew_complete_... | false |
Other | Homebrew | brew | 3724c739f880945ec76a16ef8b9209c6440f0035.json | cleanup_spec: inline path creation.
Let's see if this makes the test more reliable. | Library/Homebrew/test/cleanup_spec.rb | @@ -199,25 +199,24 @@
describe "::cleanup_logs" do
let(:path) { (HOMEBREW_LOGS/"delete_me") }
- before do
- path.mkpath
- end
-
it "cleans all logs if prune is 0" do
+ path.mkpath
described_class.new(days: 0).cleanup_logs
expect(path).not_to exist
end
it "cleans ... | false |
Other | Homebrew | brew | f5cc26ffc66ef6b987cc853d7e1d4840218b001a.json | zsh: add guards to speed up completions
If we type `brew install -<TAB>` we shouldn't try to shell out to Ruby
to get a list of formulae for completions. | Library/Homebrew/completions/zsh.erb | @@ -49,6 +49,8 @@ __brew_completion_caching_policy() {
}
__brew_formulae() {
+ [[ -prefix '-' ]] && return 0
+
local -a list
local comp_cachename=brew_formulae
if ! _retrieve_cache $comp_cachename; then
@@ -59,18 +61,24 @@ __brew_formulae() {
}
__brew_installed_formulae() {
+ [[ -prefix '-' ]] && ret... | true |
Other | Homebrew | brew | f5cc26ffc66ef6b987cc853d7e1d4840218b001a.json | zsh: add guards to speed up completions
If we type `brew install -<TAB>` we shouldn't try to shell out to Ruby
to get a list of formulae for completions. | completions/zsh/_brew | @@ -52,6 +52,8 @@ __brew_completion_caching_policy() {
}
__brew_formulae() {
+ [[ -prefix '-' ]] && return 0
+
local -a list
local comp_cachename=brew_formulae
if ! _retrieve_cache $comp_cachename; then
@@ -62,18 +64,24 @@ __brew_formulae() {
}
__brew_installed_formulae() {
+ [[ -prefix '-' ]] && ret... | true |
Other | Homebrew | brew | d0ad829e43ab529b3bfd32a974f824633e6bc67c.json | use arrow character for UI prompts | Library/Homebrew/cask/artifact/abstract_uninstall.rb | @@ -133,8 +133,11 @@ def running_processes(bundle_id)
sig { returns(String) }
def automation_access_instructions
- "Enable Automation Access for “Terminal > System Events” in " \
- "“System Preferences > Security > Privacy > Automation” if you haven't already."
+ <<~EOS
+ E... | true |
Other | Homebrew | brew | d0ad829e43ab529b3bfd32a974f824633e6bc67c.json | use arrow character for UI prompts | Library/Homebrew/cask/cmd/fetch.rb | @@ -43,7 +43,7 @@ def run
download = Download.new(cask, **options)
download.clear_cache if args.force?
downloaded_path = download.fetch
- ohai "Success! Downloaded to -> #{downloaded_path}"
+ ohai "Success! Downloaded to: #{downloaded_path}"
end
end
... | true |
Other | Homebrew | brew | d0ad829e43ab529b3bfd32a974f824633e6bc67c.json | use arrow character for UI prompts | Library/Homebrew/cask/dsl/caveats.rb | @@ -69,15 +69,15 @@ def eval_caveats(&block)
end
caveat :unsigned_accessibility do |access = "Accessibility"|
- # access: the category in System Preferences -> Security & Privacy -> Privacy the app requires.
+ # access: the category in System Preferences > Security & Privacy > Privacy the ... | true |
Other | Homebrew | brew | 2e982cd2a28ffbbde40305e98e8d142c2874c8cf.json | use odie when commands encounter errors | Library/Homebrew/cmd/gist-logs.rb | @@ -103,7 +103,7 @@ def load_logs(dir)
logs[file.basename.to_s] = { content: contents }
end
end
- raise "No logs." if logs.empty?
+ odie "No logs." if logs.empty?
logs
end | true |
Other | Homebrew | brew | 2e982cd2a28ffbbde40305e98e8d142c2874c8cf.json | use odie when commands encounter errors | Library/Homebrew/cmd/install.rb | @@ -183,14 +183,14 @@ def install
formulae.each do |f|
# head-only without --HEAD is an error
if !args.HEAD? && f.stable.nil?
- raise <<~EOS
+ odie <<~EOS
#{f.full_name} is a head-only formula
Install with `brew install --HEAD #{f.full_name}`
EOS
en... | true |
Other | Homebrew | brew | 2e982cd2a28ffbbde40305e98e8d142c2874c8cf.json | use odie when commands encounter errors | Library/Homebrew/cmd/migrate.rb | @@ -31,7 +31,8 @@ def migrate
if f.oldname
rack = HOMEBREW_CELLAR/f.oldname
raise NoSuchKegError, f.oldname if !rack.exist? || rack.subdirs.empty?
- raise "#{rack} is a symlink" if rack.symlink?
+
+ odie "#{rack} is a symlink" if rack.symlink?
end
migrator = Migrat... | true |
Other | Homebrew | brew | 2e982cd2a28ffbbde40305e98e8d142c2874c8cf.json | use odie when commands encounter errors | Library/Homebrew/cmd/search.rb | @@ -136,7 +136,7 @@ def search
puts reason
end
- raise "No formulae or casks found for #{query.inspect}." if count.zero?
+ odie "No formulae or casks found for #{query.inspect}." if count.zero?
end
return unless $stdout.tty? | true |
Other | Homebrew | brew | 2e982cd2a28ffbbde40305e98e8d142c2874c8cf.json | use odie when commands encounter errors | Library/Homebrew/dev-cmd/create.rb | @@ -180,7 +180,7 @@ def create_formula(args:)
# unless --force is specified.
unless args.force?
if reason = MissingFormula.disallowed_reason(fc.name)
- raise <<~EOS
+ odie <<~EOS
The formula '#{fc.name}' is not allowed to be created.
#{reason}
If you reall... | true |
Other | Homebrew | brew | 2e982cd2a28ffbbde40305e98e8d142c2874c8cf.json | use odie when commands encounter errors | Library/Homebrew/dev-cmd/edit.rb | @@ -32,7 +32,7 @@ def edit
args = edit_args.parse
unless (HOMEBREW_REPOSITORY/".git").directory?
- raise <<~EOS
+ odie <<~EOS
Changes will be lost!
The first time you `brew update`, all local changes will be lost; you should
thus `brew update` before you `brew edit`! | true |
Other | Homebrew | brew | 2e982cd2a28ffbbde40305e98e8d142c2874c8cf.json | use odie when commands encounter errors | Library/Homebrew/dev-cmd/pr-pull.rb | @@ -340,7 +340,7 @@ def changed_formulae(tap, original_commit)
end
def download_artifact(url, dir, pr)
- raise "Credentials must be set to access the Artifacts API" if GitHub.api_credentials_type == :none
+ odie "Credentials must be set to access the Artifacts API" if GitHub.api_credentials_type == :none
... | true |
Other | Homebrew | brew | 2e982cd2a28ffbbde40305e98e8d142c2874c8cf.json | use odie when commands encounter errors | Library/Homebrew/dev-cmd/tap-new.rb | @@ -37,7 +37,7 @@ def tap_new
branch = args.branch || "main"
tap = args.named.to_taps.first
- raise "Invalid tap name '#{tap_name}'" unless tap.path.to_s.match?(HOMEBREW_TAP_PATH_REGEX)
+ odie "Invalid tap name '#{tap_name}'" unless tap.path.to_s.match?(HOMEBREW_TAP_PATH_REGEX)
titleized_user =... | true |
Other | Homebrew | brew | 2e982cd2a28ffbbde40305e98e8d142c2874c8cf.json | use odie when commands encounter errors | Library/Homebrew/dev-cmd/unpack.rb | @@ -45,13 +45,13 @@ def unpack
unpack_dir = Pathname.pwd
end
- raise "Cannot write to #{unpack_dir}" unless unpack_dir.writable_real?
+ odie "Cannot write to #{unpack_dir}" unless unpack_dir.writable_real?
formulae.each do |f|
stage_dir = unpack_dir/"#{f.name}-#{f.version}"
if... | true |
Other | Homebrew | brew | 2e982cd2a28ffbbde40305e98e8d142c2874c8cf.json | use odie when commands encounter errors | Library/Homebrew/dev-cmd/update-test.rb | @@ -134,7 +134,7 @@ def update_test
start_log = Utils.popen_read("git", "log", "-1", "--decorate", "--oneline", start_commit).chomp
end_log = Utils.popen_read("git", "log", "-1", "--decorate", "--oneline", end_commit).chomp
actual_log = Utils.popen_read("git", "log", "-1", "--decorate", "--on... | true |
Other | Homebrew | brew | a72ddfdc675b4675207506c4626fca1b019b54f7.json | remove duplicate "Error" in onoe/odie arguments | Library/Homebrew/brew.sh | @@ -92,7 +92,7 @@ odie() {
}
safe_cd() {
- cd "$@" >/dev/null || odie "Error: failed to cd to $*!"
+ cd "$@" >/dev/null || odie "Failed to cd to $*!"
}
brew() { | true |
Other | Homebrew | brew | a72ddfdc675b4675207506c4626fca1b019b54f7.json | remove duplicate "Error" in onoe/odie arguments | Library/Homebrew/migrator.rb | @@ -220,7 +220,7 @@ def migrate
rescue Interrupt
ignore_interrupts { backup_oldname }
rescue Exception => e # rubocop:disable Lint/RescueException
- onoe "Error occurred while migrating."
+ onoe "The migration did not complete successfully."
puts e
puts e.backtrace if debug?
puts "Backin... | true |
Other | Homebrew | brew | f5e1557154dab1720c8ddf1c48598ebe70205359.json | use ofail to set Homebrew.failed | Library/Homebrew/cmd/doctor.rb | @@ -57,8 +57,7 @@ def doctor
methods.each do |method|
$stderr.puts Formatter.headline("Checking #{method}", color: :magenta) if args.debug?
unless checks.respond_to?(method)
- Homebrew.failed = true
- puts "No check available by the name: #{method}"
+ ofail "No check available by... | true |
Other | Homebrew | brew | f5e1557154dab1720c8ddf1c48598ebe70205359.json | use ofail to set Homebrew.failed | Library/Homebrew/cmd/fetch.rb | @@ -150,8 +150,8 @@ def fetch_cask(cask_download, args:)
def fetch_patch(p, args:)
fetch_fetchable p, args: args
rescue ChecksumMismatchError => e
- Homebrew.failed = true
opoo "Patch reports different sha256: #{e.expected}"
+ Homebrew.failed = true
end
def retry_fetch?(f, args:) | true |
Other | Homebrew | brew | f5e1557154dab1720c8ddf1c48598ebe70205359.json | use ofail to set Homebrew.failed | Library/Homebrew/formula_installer.rb | @@ -951,10 +951,9 @@ def link(keg)
begin
keg.optlink(verbose: verbose?)
rescue Keg::LinkError => e
- onoe "Failed to create #{formula.opt_prefix}"
+ ofail "Failed to create #{formula.opt_prefix}"
puts "Things that depend on #{formula.full_name} will probably not build."
... | true |
Other | Homebrew | brew | f5e1557154dab1720c8ddf1c48598ebe70205359.json | use ofail to set Homebrew.failed | Library/Homebrew/upgrade.rb | @@ -36,8 +36,7 @@ def upgrade_formulae(formulae_to_install, args:)
upgrade_formula(f, args: args)
Cleanup.install_formula_clean!(f)
rescue UnsatisfiedRequirements => e
- Homebrew.failed = true
- onoe "#{f}: #{e}"
+ ofail "#{f}: #{e}"
end
end
... | true |
Other | Homebrew | brew | 571179ff0ecab9bc03b1b7109ed24ccab187dc03.json | pass second argument to ohai when applicable | Library/Homebrew/cask/artifact/abstract_uninstall.rb | @@ -367,8 +367,7 @@ def uninstall_trash(*paths, **options)
resolved_paths = each_resolved_path(:trash, paths).to_a
- ohai "Trashing files:"
- puts resolved_paths.map(&:first)
+ ohai "Trashing files:", resolved_paths.map(&:first)
trash_paths(*resolved_paths.flat_map(&:last), **... | true |
Other | Homebrew | brew | 571179ff0ecab9bc03b1b7109ed24ccab187dc03.json | pass second argument to ohai when applicable | Library/Homebrew/cask/artifact/pkg.rb | @@ -39,8 +39,8 @@ def install_phase(**options)
private
def run_installer(command: nil, verbose: false, **_options)
- ohai "Running installer for #{cask}; your password may be necessary."
- ohai "Package installers may write to any location; options such as --appdir are ignored."
+ o... | true |
Other | Homebrew | brew | 571179ff0ecab9bc03b1b7109ed24ccab187dc03.json | pass second argument to ohai when applicable | Library/Homebrew/cask/caskroom.rb | @@ -22,8 +22,8 @@ def self.ensure_caskroom_exists
sudo = !path.parent.writable?
if sudo && !ENV.key?("SUDO_ASKPASS") && $stdout.tty?
- ohai "Creating Caskroom at #{path}"
- ohai "We'll set permissions properly so we won't need sudo in the future."
+ ohai "Creating Caskroom directory... | true |
Other | Homebrew | brew | 571179ff0ecab9bc03b1b7109ed24ccab187dc03.json | pass second argument to ohai when applicable | Library/Homebrew/cmd/search.rb | @@ -119,15 +119,11 @@ def search
print_casks = args.cask?
print_formulae = print_casks = true if !print_formulae && !print_casks
- if print_formulae && all_formulae.any?
- ohai "Formulae"
- puts Formatter.columns(all_formulae)
- end
+ ohai "Formulae", Formatter.columns(all_f... | true |
Other | Homebrew | brew | 571179ff0ecab9bc03b1b7109ed24ccab187dc03.json | pass second argument to ohai when applicable | Library/Homebrew/cmd/update-report.rb | @@ -470,10 +470,7 @@ def dump(updated_formula_report: true)
dump_formula_report :M, "Updated Formulae"
else
updated = select_formula(:M).count
- if updated.positive?
- ohai "Updated Formulae"
- puts "Updated #{updated} #{"formula".pluralize(updated)}."
- end
+ ohai "Updat... | true |
Other | Homebrew | brew | 571179ff0ecab9bc03b1b7109ed24ccab187dc03.json | pass second argument to ohai when applicable | Library/Homebrew/dev-cmd/extract.rb | @@ -214,8 +214,7 @@ def extract
odebug "Overwriting existing formula at #{path}"
path.delete
end
- ohai "Writing formula for #{name} from revision #{rev} to:"
- puts path
+ ohai "Writing formula for #{name} from revision #{rev} to:", path
path.write result
end
| true |
Other | Homebrew | brew | 571179ff0ecab9bc03b1b7109ed24ccab187dc03.json | pass second argument to ohai when applicable | Library/Homebrew/dev-cmd/irb.rb | @@ -59,8 +59,7 @@ def irb
require "keg"
require "cask"
- ohai "Interactive Homebrew Shell"
- puts "Example commands available with: brew irb --examples"
+ ohai "Interactive Homebrew Shell", "Example commands available with: brew irb --examples"
if args.pry?
Pry.start
else | true |
Other | Homebrew | brew | 571179ff0ecab9bc03b1b7109ed24ccab187dc03.json | pass second argument to ohai when applicable | Library/Homebrew/extend/ENV/shared.rb | @@ -276,8 +276,7 @@ def fortran
flags = []
if fc
- ohai "Building with an alternative Fortran compiler"
- puts "This is unsupported."
+ ohai "Building with an alternative Fortran compiler", "This is unsupported."
self["F77"] ||= fc
else
if (gfortran = which("gfortran", (HOM... | true |
Other | Homebrew | brew | 571179ff0ecab9bc03b1b7109ed24ccab187dc03.json | pass second argument to ohai when applicable | Library/Homebrew/mktemp.rb | @@ -65,9 +65,6 @@ def run
ignore_interrupts { rm_rf(tmpdir) } unless retain?
end
ensure
- if retain? && !@tmpdir.nil? && !@quiet
- ohai "Kept temporary files"
- puts "Temporary files retained at #{@tmpdir}"
- end
+ ohai "Temporary files retained at:", @tmpdir.to_s if retain? && !@tmpdi... | true |
Other | Homebrew | brew | 571179ff0ecab9bc03b1b7109ed24ccab187dc03.json | pass second argument to ohai when applicable | Library/Homebrew/sandbox.rb | @@ -127,8 +127,7 @@ def exec(*args)
end
if @failed && Homebrew::EnvConfig.verbose?
- ohai "Sandbox log"
- puts logs
+ ohai "Sandbox log", logs
$stdout.flush # without it, brew test-bot would fail to catch the log
end
end | true |
Other | Homebrew | brew | 571179ff0ecab9bc03b1b7109ed24ccab187dc03.json | pass second argument to ohai when applicable | Library/Homebrew/unpack_strategy/dmg.rb | @@ -194,8 +194,7 @@ def mount(verbose: false)
)
if verbose && !(eula_text = without_eula.stdout).empty?
- ohai "Software License Agreement for '#{path}':"
- puts eula_text
+ ohai "Software License Agreement for '#{path}':", eula_text
end
w... | true |
Other | Homebrew | brew | a6643b4adf13f7bb5b7ba7f771241a471189d946.json | fix odebug calls | Library/Homebrew/cask/audit.rb | @@ -82,7 +82,7 @@ def run!
check_bitbucket_repository
self
rescue => e
- odebug "#{e.message}\n#{e.backtrace.join("\n")}"
+ odebug e, e.backtrace
add_error "exception while auditing #{cask}: #{e.message}"
self
end | true |
Other | Homebrew | brew | a6643b4adf13f7bb5b7ba7f771241a471189d946.json | fix odebug calls | Library/Homebrew/formula_versions.rb | @@ -50,7 +50,7 @@ def formula_at_revision(rev)
rescue *IGNORED_EXCEPTIONS => e
# We rescue these so that we can skip bad versions and
# continue walking the history
- odebug "#{e} in #{name} at revision #{rev}", e.backtrace if debug?
+ odebug "#{e} in #{name} at revision #{rev}", e.backtrace
rescu... | true |
Other | Homebrew | brew | a6f55a5e82b5cf708be2557cf3611d210addd199.json | Update RBI files for sorbet. | Library/Homebrew/sorbet/rbi/gems/ast@2.4.2.rbi | @@ -1,6 +1,6 @@
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `ast` gem.
-# Please instead update this file by running `tapioca generate --exclude json`.
+# Please instead update this file by running `tapioca sync`.
# typed: true
@@ -17,6 +17,7 @@ class AST::Node
def child... | true |
Other | Homebrew | brew | a6f55a5e82b5cf708be2557cf3611d210addd199.json | Update RBI files for sorbet. | Library/Homebrew/sorbet/rbi/gems/rubocop-ast@1.4.1.rbi | @@ -309,6 +309,10 @@ module RuboCop::AST::Descendence
def visit_descendants(types, &block); end
end
+class RuboCop::AST::DstrNode < ::RuboCop::AST::StrNode
+ def value; end
+end
+
class RuboCop::AST::EnsureNode < ::RuboCop::AST::Node
def body; end
end | true |
Other | Homebrew | brew | a6f55a5e82b5cf708be2557cf3611d210addd199.json | Update RBI files for sorbet. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -7839,6 +7839,11 @@ class Homebrew::FormulaCreator
extend ::T::Private::Methods::SingletonMethodHooks
end
+class Homebrew::Livecheck::LivecheckVersion
+ extend ::T::Private::Methods::MethodHooks
+ extend ::T::Private::Methods::SingletonMethodHooks
+end
+
module Homebrew::Livecheck::SkipConditions
extend ... | true |
Other | Homebrew | brew | 6e0bf05fb5ce233b97ba6023676073d33cc277e4.json | named_args_spec: add tests for unreadable formulae/casks | Library/Homebrew/test/cli/named_args_spec.rb | @@ -3,6 +3,20 @@
require "cli/named_args"
+def setup_unredable_formula(name)
+ error = FormulaUnreadableError.new(name, "testing")
+ allow(Formulary).to receive(:factory).with(name, force_bottle: false, flags: []).and_raise(error)
+end
+
+def setup_unredable_cask(name)
+ error = Cask::CaskUnreadableError.new(na... | false |
Other | Homebrew | brew | b4b78884926828d7b3e06f9828f786ae43b90c0e.json | sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow. | Library/Homebrew/sorbet/rbi/gems/ast@2.4.1.rbi | @@ -1,6 +1,6 @@
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `ast` gem.
-# Please instead update this file by running `tapioca sync`.
+# Please instead update this file by running `tapioca generate --exclude json`.
# typed: true
@@ -17,7 +17,6 @@ class AST::Node
def child... | true |
Other | Homebrew | brew | b4b78884926828d7b3e06f9828f786ae43b90c0e.json | sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow. | Library/Homebrew/sorbet/rbi/gems/rubocop-ast@1.4.0.rbi | @@ -309,10 +309,6 @@ module RuboCop::AST::Descendence
def visit_descendants(types, &block); end
end
-class RuboCop::AST::DstrNode < ::RuboCop::AST::StrNode
- def value; end
-end
-
class RuboCop::AST::EnsureNode < ::RuboCop::AST::Node
def body; end
end | true |
Other | Homebrew | brew | b4b78884926828d7b3e06f9828f786ae43b90c0e.json | sorbet: Update RBI files.
Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -26135,11 +26135,6 @@ module Readline
def self.completion_quote_character(); end
end
-module ReleaseNotes
- extend ::T::Private::Methods::MethodHooks
- extend ::T::Private::Methods::SingletonMethodHooks
-end
-
class Requirement
extend ::T::Private::Methods::MethodHooks
extend ::T::Private::Methods::Si... | true |
Other | Homebrew | brew | 67e03a0675e53816a4910d118109e1fd0a78dd6a.json | Improve command descriptions
Co-Authored-By: Jonathan Chang <me@jonathanchang.org>
Co-Authored-By: Eric Knibbe <3324775+EricFromCanada@users.noreply.github.com> | Library/Homebrew/cmd/uses.rb | @@ -21,7 +21,7 @@ module Homebrew
def uses_args
Homebrew::CLI::Parser.new do
description <<~EOS
- Show formulae and casks that specify <formula> as a dependency. That is, show dependents
+ Show formulae and casks that specify <formula> as a dependency; that is, show dependents
of <... | true |
Other | Homebrew | brew | 67e03a0675e53816a4910d118109e1fd0a78dd6a.json | Improve command descriptions
Co-Authored-By: Jonathan Chang <me@jonathanchang.org>
Co-Authored-By: Eric Knibbe <3324775+EricFromCanada@users.noreply.github.com> | Library/Homebrew/dev-cmd/sh.rb | @@ -14,7 +14,7 @@ module Homebrew
def sh_args
Homebrew::CLI::Parser.new do
description <<~EOS
- Homebrew's build environment. This environment uses years-battle-hardened
+ Enter an interactive shell for Homebrew's build environment. Use years-battle-hardened
build logic to help you... | true |
Other | Homebrew | brew | 67e03a0675e53816a4910d118109e1fd0a78dd6a.json | Improve command descriptions
Co-Authored-By: Jonathan Chang <me@jonathanchang.org>
Co-Authored-By: Eric Knibbe <3324775+EricFromCanada@users.noreply.github.com> | completions/zsh/_brew | @@ -180,7 +180,7 @@ __brew_internal_commands() {
'rubocop:Installs, configures and runs Homebrew'\''s `rubocop`'
'ruby:Run a Ruby instance with Homebrew'\''s libraries loaded'
'search:Perform a substring search of cask tokens and formula names for text'
- 'sh:Homebrew'\''s build environment'
+ 'sh:... | true |
Other | Homebrew | brew | 67e03a0675e53816a4910d118109e1fd0a78dd6a.json | Improve command descriptions
Co-Authored-By: Jonathan Chang <me@jonathanchang.org>
Co-Authored-By: Eric Knibbe <3324775+EricFromCanada@users.noreply.github.com> | docs/Manpage.md | @@ -659,7 +659,7 @@ upgraded formulae or, every 30 days, for all formulae.
### `uses` [*`options`*] *`formula`* [...]
-Show formulae and casks that specify *`formula`* as a dependency. That is, show dependents
+Show formulae and casks that specify *`formula`* as a dependency; that is, show dependents
of *`formula... | true |
Other | Homebrew | brew | 67e03a0675e53816a4910d118109e1fd0a78dd6a.json | Improve command descriptions
Co-Authored-By: Jonathan Chang <me@jonathanchang.org>
Co-Authored-By: Eric Knibbe <3324775+EricFromCanada@users.noreply.github.com> | manpages/brew.1 | @@ -896,7 +896,7 @@ Skip installing cask dependencies\.
Also include casks with \fBauto_updates true\fR or \fBversion :latest\fR\.
.
.SS "\fBuses\fR [\fIoptions\fR] \fIformula\fR [\.\.\.]"
-Show formulae and casks that specify \fIformula\fR as a dependency\. That is, show dependents of \fIformula\fR\. When given mul... | true |
Other | Homebrew | brew | 9c914106ed9adc47a649a77332cdda57ab89fbbb.json | dev-cmd/bump: increase test coverage | Library/Homebrew/dev-cmd/bump.rb | @@ -41,18 +41,8 @@ def bump
next
end
- current_version = formula.stable.version.to_s
-
package_data = Repology.single_package_query(formula.name)
- repology_latest = if package_data.present?
- Repology.latest_version(package_data.values.first)
- else
- ... | true |
Other | Homebrew | brew | 9c914106ed9adc47a649a77332cdda57ab89fbbb.json | dev-cmd/bump: increase test coverage | Library/Homebrew/test/dev-cmd/bump_spec.rb | @@ -27,5 +27,19 @@
.and not_to_output.to_stderr
.and be_a_success
end
+
+ it "returns no data and prints a message for HEAD-only formulae" do
+ content = <<~RUBY
+ desc "HEAD-only test formula"
+ homepage "https://brew.sh"
+ head "https://github.com/Homebrew/brew.git"... | true |
Other | Homebrew | brew | 874fbd12b4e7d170557bb3a81595585b7be4862f.json | Update RBI files for sorbet. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -26135,6 +26135,11 @@ module Readline
def self.completion_quote_character(); end
end
+module ReleaseNotes
+ extend ::T::Private::Methods::MethodHooks
+ extend ::T::Private::Methods::SingletonMethodHooks
+end
+
class Requirement
extend ::T::Private::Methods::MethodHooks
extend ::T::Private::Methods::Si... | false |
Other | Homebrew | brew | eaf46b2ff983e1aacd06b46752c77b6e4e9f6c05.json | Update RBI files for rubocop-ast. | Library/Homebrew/sorbet/rbi/gems/ast@2.4.2.rbi | @@ -1,6 +1,6 @@
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `ast` gem.
-# Please instead update this file by running `tapioca generate --exclude json`.
+# Please instead update this file by running `tapioca sync`.
# typed: true
@@ -17,6 +17,7 @@ class AST::Node
def child... | true |
Other | Homebrew | brew | eaf46b2ff983e1aacd06b46752c77b6e4e9f6c05.json | Update RBI files for rubocop-ast. | Library/Homebrew/sorbet/rbi/gems/rubocop-ast@1.4.1.rbi | @@ -309,6 +309,10 @@ module RuboCop::AST::Descendence
def visit_descendants(types, &block); end
end
+class RuboCop::AST::DstrNode < ::RuboCop::AST::StrNode
+ def value; end
+end
+
class RuboCop::AST::EnsureNode < ::RuboCop::AST::Node
def body; end
end | true |
Other | Homebrew | brew | eaf46b2ff983e1aacd06b46752c77b6e4e9f6c05.json | Update RBI files for rubocop-ast. | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -26135,6 +26135,11 @@ module Readline
def self.completion_quote_character(); end
end
+module ReleaseNotes
+ extend ::T::Private::Methods::MethodHooks
+ extend ::T::Private::Methods::SingletonMethodHooks
+end
+
class Requirement
extend ::T::Private::Methods::MethodHooks
extend ::T::Private::Methods::Si... | true |
Other | Homebrew | brew | 6a08e273d0ea1a6c5dcb3aa9bd474487bc8f328c.json | Fix zsh completions for upgrade and reinstall | completions/zsh/_brew | @@ -88,10 +88,16 @@ __brew_installed_casks() {
__brew_outdated_formulae() {
local -a formulae
- formulae=($(brew outdated))
+ formulae=($(brew outdated --formula))
_describe -t formulae 'outdated formulae' formulae
}
+__brew_outdated_casks() {
+ local -a casks
+ casks=($(brew outdated --cask))
+ _descr... | false |
Other | Homebrew | brew | 138f7de18ffaefc5586e04c501fa2fc3ea907558.json | Refactor `brew bump`: apply suggestions from code review
Co-authored-by: Sam Ford <1584702+samford@users.noreply.github.com> | Library/Homebrew/dev-cmd/bump.rb | @@ -3,7 +3,6 @@
require "cli/parser"
require "livecheck/livecheck"
-require "livecheck/skip_conditions"
module Homebrew
extend T::Sig
@@ -28,7 +27,6 @@ def bump
args = bump_args.parse
requested_formulae = args.named.to_formulae.presence
-
requested_limit = args.limit.to_i if args.limit.presen... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.