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 | 4381c32524c999fd7de308ef775c66b4f056497d.json | Add test for parsing with `ignore_invalid_options`. | Library/Homebrew/test/cli/parser_spec.rb | @@ -15,6 +15,14 @@
allow(Homebrew::EnvConfig).to receive(:pry?).and_return(true)
end
+ context "when `ignore_invalid_options` is true" do
+ it "passes through invalid options" do
+ args = parser.parse(["-v", "named-arg", "--not-a-valid-option"], ignore_invalid_options: true)
+ expect... | true |
Other | Homebrew | brew | 020ce249eeb96efc992d5aea44705645fbfbdcff.json | bump-formula-pr: handle pypi url version changes | Library/Homebrew/dev-cmd/bump-formula-pr.rb | @@ -183,6 +183,11 @@ def bump_formula_pr
elsif !new_url && !new_version
odie "#{formula}: no --url= or --version= argument specified!"
else
+ new_url ||= if old_url.start_with?(PyPI::PYTHONHOSTED_URL_PREFIX)
+ package_name = File.basename(old_url).match(/^(.+)-[a-z\d.]+$/)[1]
+ _, ur... | false |
Other | Homebrew | brew | a7e692e7bc4d5e6d39910f2bd27e809dd55d19a3.json | dependencies: fix error in recursive_includes | Library/Homebrew/dependencies.rb | @@ -100,7 +100,7 @@ def recursive_includes(klass, root_dependent, includes, ignores)
klass.prune if !includes.include?("optional?") && !dependent.build.with?(dep)
elsif dep.build? || dep.test?
keep = false
- keep ||= dep.test? && includes.include?("test?") && dependent == formula
+ ... | false |
Other | Homebrew | brew | 633dea1bb12936fcde75926ed41c78692416d600.json | rubocop.yml: cask fixes for new style | Library/.rubocop.yml | @@ -181,7 +181,9 @@ Layout/LineLength:
Max: 118
# ignore manpage comments and long single-line strings
IgnoredPatterns: ['#: ', ' url "', ' mirror "', ' plist_options ',
- ' appcast "', ' executable: "', '#{version.',
+ ' appcast "', ' executable: "', ' font "', ' homepage... | false |
Other | Homebrew | brew | 1ac470fe7a939c628f8e532e313ae06a11aeca4a.json | bump-revision: handle array of licenses
Allowing multiple licenses meant that `formula.license` returned an
array. This converts that array to the appropriate format for
`bump-revision` | Library/Homebrew/dev-cmd/bump-revision.rb | @@ -42,9 +42,14 @@ def bump_revision
end
old = if formula.license
+ license_string = if formula.license.length > 1
+ formula.license
+ else
+ "\"#{formula.license.first}\""
+ end
# insert replacement revision after license
<<~EOS
- licens... | false |
Other | Homebrew | brew | 17fb1b6dd87b531d26b8bfe606cce55a5106ab2c.json | cmd/deps: add missing require.
Fixes https://github.com/Homebrew/brew/pull/8126#issuecomment-666345260 | Library/Homebrew/cmd/deps.rb | @@ -4,6 +4,7 @@
require "ostruct"
require "cli/parser"
require "cask/caskroom"
+require "cask_dependent"
module Homebrew
extend DependenciesHelpers | false |
Other | Homebrew | brew | 36458b2356388a299d6b4a8b1d1053baf910efae.json | Remove unnecessary check. | Library/Homebrew/patch.rb | @@ -160,8 +160,7 @@ def apply
end
end
rescue ErrorDuringExecution => e
- raise unless (f = resource.owner&.owner)
-
+ f = resource.owner.owner
cmd, *args = e.cmd
raise BuildError.new(f, cmd, args, ENV.to_hash)
end | false |
Other | Homebrew | brew | f96240eec770beb991f29799e73955e880617167.json | deps: Add tests for CaskDependent | Library/Homebrew/cask_dependent.rb | @@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
# An adapter for casks to provide dependency information in a formula-like interface
class CaskDependent
def initialize(cask) | true |
Other | Homebrew | brew | f96240eec770beb991f29799e73955e880617167.json | deps: Add tests for CaskDependent | Library/Homebrew/test/cask_dependent_spec.rb | @@ -0,0 +1,63 @@
+# frozen_string_literal: true
+
+require "cask/cask_loader"
+require "cask_dependent"
+
+describe CaskDependent, :needs_macos do
+ subject(:dependent) { described_class.new test_cask }
+
+ let :test_cask do
+ Cask::CaskLoader.load(+<<-RUBY)
+ cask "testing" do
+ depends_on formula: "b... | true |
Other | Homebrew | brew | c1ba64677fdfd53e58af42311ea3a6551786454e.json | create: call update-python-resources for --python | Library/Homebrew/dev-cmd/create.rb | @@ -4,6 +4,7 @@
require "formula_creator"
require "missing_formula"
require "cli/parser"
+require "utils/pypi"
module Homebrew
module_function
@@ -137,6 +138,8 @@ def create
fc.generate!
+ PyPI.update_python_resources! Formula[fc.name], ignore_non_pypi_packages: true if args.python?
+
puts "Pl... | true |
Other | Homebrew | brew | c1ba64677fdfd53e58af42311ea3a6551786454e.json | create: call update-python-resources for --python | Library/Homebrew/formula_creator.rb | @@ -134,7 +134,7 @@ class #{Formulary.class_s(name)} < Formula
# depends_on "cmake" => :build
<% end %>
- <% if mode == :perl || mode == :python %>
+ <% if mode == :perl %>
# Additional dependency
# resource "" do
# url "" | true |
Other | Homebrew | brew | 2d99bc39723aeece8533e5b4f4314165a548420a.json | Reword formula up to date message
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/dev-cmd/bump.rb | @@ -40,7 +40,7 @@ def bump
end
if requested_formula && outdated_repology_packages.nil?
- ohai "The requested formula, #{requested_formula}, is up-to-date."
+ ohai "#{requested_formula} is up-to-date!"
puts "Current version: #{get_formula_details(requested_formula).version}"
return
... | false |
Other | Homebrew | brew | 537a07b42d1e419cab678d68710ca12ce00a8f0c.json | Remove duplicate line
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/utils.rb | @@ -13,7 +13,6 @@
require "utils/repology"
require "utils/svn"
require "utils/tty"
-require "utils/repology"
require "tap_constants"
require "time"
| false |
Other | Homebrew | brew | 8db11ea2d9d948c2434d4a3fa75887e8e274af91.json | Throw error exception when formula not found
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/dev-cmd/bump.rb | @@ -29,7 +29,7 @@ def bump
requested_formula&.downcase!
if requested_formula && !get_formula_details(requested_formula)
- ohai "Requested formula #{requested_formula} is not valid Homebrew formula."
+ raise FormulaUnavailableError, requested_formula
return
end
| false |
Other | Homebrew | brew | 4216da7629c21be66e8cf609fdfbf133b1e6bc6f.json | deps: Move CaskDependencies to its own file | Library/Homebrew/cask_dependent.rb | @@ -0,0 +1,57 @@
+# An adapter for casks to provide dependency information in a formula-like interface
+class CaskDependent
+ def initialize(cask)
+ @cask = cask
+ end
+
+ def name
+ @cask.token
+ end
+
+ def full_name
+ @cask.full_name
+ end
+
+ def runtime_dependencies
+ recursive_dependencies
+ e... | true |
Other | Homebrew | brew | 4216da7629c21be66e8cf609fdfbf133b1e6bc6f.json | deps: Move CaskDependencies to its own file | Library/Homebrew/cmd/deps.rb | @@ -115,7 +115,7 @@ def dependents(formulae_or_casks)
if formula_or_cask.is_a?(Formula)
formula_or_cask
else
- Dependent.new(formula_or_cask)
+ CaskDependent.new(formula_or_cask)
end
end
end
@@ -229,61 +229,4 @@ def recursive_deps_tree(f, prefix, recursive)
@de... | true |
Other | Homebrew | brew | 92a39bc49e0dbbd1e766d9262816e48943339498.json | test: add flag to retry.
This should allow better handling flaky tests. | Library/Homebrew/dev-cmd/test.rb | @@ -25,6 +25,8 @@ def test_args
description: "Test the head version of a formula."
switch "--keep-tmp",
description: "Retain the temporary files created for the test."
+ switch "--retry",
+ description: "Retry if a testing fails."
switch :verbose
switch ... | true |
Other | Homebrew | brew | 92a39bc49e0dbbd1e766d9262816e48943339498.json | test: add flag to retry.
This should allow better handling flaky tests. | docs/Manpage.md | @@ -1036,6 +1036,8 @@ wrong with the installed formula.
Test the head version of a formula.
* `--keep-tmp`:
Retain the temporary files created for the test.
+* `--retry`:
+ Retry if a testing fails.
### `tests` [*`options`*]
| true |
Other | Homebrew | brew | 92a39bc49e0dbbd1e766d9262816e48943339498.json | test: add flag to retry.
This should allow better handling flaky tests. | manpages/brew.1 | @@ -1351,6 +1351,10 @@ Test the head version of a formula\.
\fB\-\-keep\-tmp\fR
Retain the temporary files created for the test\.
.
+.TP
+\fB\-\-retry\fR
+Retry if a testing fails\.
+.
.SS "\fBtests\fR [\fIoptions\fR]"
Run Homebrew\'s unit and integration tests\.
. | true |
Other | Homebrew | brew | 560681729382916b4a84bc05ab540dd9f13be2a1.json | info: handle license array.
Fixes https://github.com/Homebrew/brew/issues/8132 | Library/Homebrew/cmd/info.rb | @@ -211,7 +211,7 @@ def info_formula(f, args:)
puts "From: #{Formatter.url(github_info(f))}"
- puts "License: #{f.license}" if f.license
+ puts "License: #{f.license.join(", ")}" if f.license
unless f.deps.empty?
ohai "Dependencies" | false |
Other | Homebrew | brew | 6fe56c33ffa51cd0a895099f5d86d691e41d4669.json | pr-upload: use PkgVersion.parse instead of Version.new | Library/Homebrew/dev-cmd/pr-upload.rb | @@ -40,7 +40,7 @@ def check_bottled_formulae(json_files)
hashes.each do |name, hash|
formula_path = HOMEBREW_REPOSITORY/hash["formula"]["path"]
formula_version = Formulary.factory(formula_path).pkg_version
- bottle_version = Version.new hash["formula"]["pkg_version"]
+ bottle_version = PkgV... | false |
Other | Homebrew | brew | 3ee158bf16882c1a0c8b83f292ff303e7bef410e.json | pr-upload: fix formula version | Library/Homebrew/dev-cmd/pr-upload.rb | @@ -39,7 +39,7 @@ def check_bottled_formulae(json_files)
hashes.each do |name, hash|
formula_path = HOMEBREW_REPOSITORY/hash["formula"]["path"]
- formula_version = Formulary.factory(formula_path).version
+ formula_version = Formulary.factory(formula_path).pkg_version
bottle_version = Vers... | false |
Other | Homebrew | brew | 41bc670abbf116e90e54ed6b4e5aa8d7285b765f.json | update patchelf.rb to 1.2.0 in Gemfile.lock. | Library/Homebrew/Gemfile.lock | @@ -55,7 +55,7 @@ GEM
parallel
parser (2.7.1.4)
ast (~> 2.4.1)
- patchelf (1.1.1)
+ patchelf (1.2.0)
elftools (~> 1.1)
plist (3.5.0)
rainbow (3.0.0) | false |
Other | Homebrew | brew | 2822a7b0c3276fcab8335374bc305d048c10feba.json | adapt output to adjust for single-formula queries | Library/Homebrew/dev-cmd/bump.rb | @@ -39,12 +39,19 @@ def bump
Repology.parse_api_response
end
+ if requested_formula && outdated_repology_packages.nil?
+ ohai "The requested formula, #{requested_formula}, is up-to-date."
+ puts "Current version: #{get_formula_details(requested_formula).version}"
+ return
+ end
+
... | true |
Other | Homebrew | brew | 2822a7b0c3276fcab8335374bc305d048c10feba.json | adapt output to adjust for single-formula queries | Library/Homebrew/utils/repology.rb | @@ -19,7 +19,13 @@ def single_package_query(name)
url = "https://repology.org/api/v1/project/#{name}"
output, _errors, _status = curl_output(url.to_s)
- { name: JSON.parse(output) }
+ data = JSON.parse(output)
+
+ outdated_homebrew = data.select do |repo|
+ repo["repo"] == "homebrew" && repo["... | true |
Other | Homebrew | brew | 4bd6c343d0906c3ae7c93926ea41fc64f1b05e46.json | dev-cmd/audit: enforce uses_from_macos only if core tap | Library/Homebrew/dev-cmd/audit.rb | @@ -388,7 +388,8 @@ def audit_deps
"use the canonical name '#{dep.to_formula.full_name}'."
end
- if @new_formula &&
+ if @core_tap &&
+ @new_formula &&
dep_f.keg_only? &&
dep_f.keg_only_reason.provided_by_macos? &&
dep_f.k... | true |
Other | Homebrew | brew | 4bd6c343d0906c3ae7c93926ea41fc64f1b05e46.json | dev-cmd/audit: enforce uses_from_macos only if core tap | Library/Homebrew/test/dev-cmd/audit_spec.rb | @@ -343,7 +343,7 @@ class Foo < Formula
subject { fa }
let(:fa) do
- formula_auditor "foo", <<~RUBY, new_formula: true
+ formula_auditor "foo", <<~RUBY, new_formula: true, core_tap: true
class Foo < Formula
url "https://brew.sh/foo-1.0.tgz"
... | true |
Other | Homebrew | brew | 67a974455be98319deb2f384750c98e19f9d0571.json | Apply suggestions from code review
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/formula_installer.rb | @@ -1123,7 +1123,7 @@ def forbidden_license_check
next if @ignore_deps
dep_f = dep.to_formula
- next unless dep_f.license.all? { |lic| forbidden_licenses.include? lic }
+ next unless dep_f.license.all? { |license| forbidden_licenses.include? license }
raise CannotInstallFormulaError, ... | false |
Other | Homebrew | brew | 52321b4fcdf4bea64ca5c57e0171a5d36f37085f.json | Apply suggestions from code review
Code review changes
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/dev-cmd/audit.rb | @@ -331,14 +331,14 @@ def audit_formula_name
def audit_license
if formula.license.present?
non_standard_licenses = []
- formula.license.each do |lic|
- next if @spdx_data["licenses"].any? { |standard_lic| standard_lic["licenseId"] == lic }
+ formula.license.each do |license|
... | true |
Other | Homebrew | brew | 52321b4fcdf4bea64ca5c57e0171a5d36f37085f.json | Apply suggestions from code review
Code review changes
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/formula.rb | @@ -2215,7 +2215,7 @@ def license(args = nil)
if args.nil?
@licenses
else
- @licenses = Array(args) unless args == ""
+ @licenses = Array(args)
end
end
| true |
Other | Homebrew | brew | 52321b4fcdf4bea64ca5c57e0171a5d36f37085f.json | Apply suggestions from code review
Code review changes
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/formula_installer.rb | @@ -1131,7 +1131,7 @@ def forbidden_license_check
end
return if @only_deps
- return unless formula.license.all? { |lic| forbidden_licenses.include? lic }
+ return unless formula.license.all? { |license| forbidden_licenses.include? license }
raise CannotInstallFormulaError, <<~EOS
#{formu... | true |
Other | Homebrew | brew | 557b1d09a2c228a38d9c0792e5685541d0b8a6cc.json | correct logic for standard license checking | Library/Homebrew/dev-cmd/audit.rb | @@ -330,7 +330,16 @@ def audit_formula_name
def audit_license
if formula.license.present?
- if formula.license.any? { |lic| @spdx_data["licenses"].any? { |standard_lic| standard_lic["licenseId"] == lic } }
+ non_standard_licenses = []
+ formula.license.each do |lic|
+ next if... | false |
Other | Homebrew | brew | b91587d1716636b345f13e6829e04ab3a684d5ed.json | audit-license: adapt code to use Array of licenses | Library/Homebrew/dev-cmd/audit.rb | @@ -330,16 +330,16 @@ def audit_formula_name
def audit_license
if formula.license.present?
- if @spdx_data["licenses"].any? { |lic| lic["licenseId"] == formula.license }
+ if formula.license.any? { |lic| @spdx_data["licenses"].any? { |standard_lic| standard_lic["licenseId"] == lic } }
... | false |
Other | Homebrew | brew | 9a2f84d4a553b79e5f08e7c440a3d2108033a946.json | Modify to_hash output | Library/Homebrew/formula.rb | @@ -1682,7 +1682,7 @@ def to_hash
"aliases" => aliases.sort,
"versioned_formulae" => versioned_formulae.map(&:name),
"desc" => desc,
- "license" => license.class == String ? [license] : license,
+ "license" => li... | false |
Other | Homebrew | brew | 3d27894015962a780dc3624ea6284eb303824bef.json | Apply suggestions from code review
Code review changes
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/formula.rb | @@ -2208,13 +2208,15 @@ def method_added(method)
# @!attribute [w]
# The SPDX ID of the open-source license that the formula uses.
# Shows when running `brew info`.
+ # Multiple licenses means that the software is licensed under multiple licenses.
+ # Do not use multiple licenses if e.g. different ... | false |
Other | Homebrew | brew | 23340403c15c4ff814eb7a66d77a71bb57a35d09.json | Fix `effective_arch` on Linux. | Library/Homebrew/extend/os/linux/extend/ENV/shared.rb | @@ -3,9 +3,9 @@
module SharedEnvExtension
# @private
def effective_arch
- if @args&.build_bottle? && @args&.bottle_arch
- @args.bottle_arch.to_sym
- elsif @args&.build_bottle?
+ if @build_bottle && @bottle_arch
+ @bottle_arch.to_sym
+ elsif @build_bottle
Hardware.oldest_cpu
else... | false |
Other | Homebrew | brew | 0be15fc4b731850e1f519c7936182842bbd40de4.json | Run `brew update` before `brew bundle`.
This should help with cases like
https://github.com/Homebrew/homebrew-bundle/issues/751
and is good practise in general.
Also, document the `brew update --preinstall` flag that is being used
here so others can run it manually e.g. as part of CI if needed. | Library/Homebrew/brew.sh | @@ -518,6 +518,7 @@ update-preinstall() {
if [[ "$HOMEBREW_COMMAND" = "install" || "$HOMEBREW_COMMAND" = "upgrade" ||
"$HOMEBREW_COMMAND" = "bump-formula-pr" ||
+ "$HOMEBREW_COMMAND" = "bundle" ||
"$HOMEBREW_COMMAND" = "tap" && $HOMEBREW_ARG_COUNT -gt 1 ||
"$HOMEBREW_CASK_COMMAND"... | true |
Other | Homebrew | brew | 0be15fc4b731850e1f519c7936182842bbd40de4.json | Run `brew update` before `brew bundle`.
This should help with cases like
https://github.com/Homebrew/homebrew-bundle/issues/751
and is good practise in general.
Also, document the `brew update --preinstall` flag that is being used
here so others can run it manually e.g. as part of CI if needed. | Library/Homebrew/cmd/update.sh | @@ -1,8 +1,9 @@
-#: * `update`, `up` [<options>]
+#: * `update` [<options>]
#:
#: Fetch the newest version of Homebrew and all formulae from GitHub using `git`(1) and perform any necessary migrations.
#:
#: --merge Use `git merge` to apply updates (rather than `git rebase`).
+#: ... | true |
Other | Homebrew | brew | 0be15fc4b731850e1f519c7936182842bbd40de4.json | Run `brew update` before `brew bundle`.
This should help with cases like
https://github.com/Homebrew/homebrew-bundle/issues/751
and is good practise in general.
Also, document the `brew update --preinstall` flag that is being used
here so others can run it manually e.g. as part of CI if needed. | docs/Manpage.md | @@ -517,12 +517,14 @@ also `pin`.
Remove a tapped formula repository.
-### `update`, `up` [*`options`*]
+### `update` [*`options`*]
Fetch the newest version of Homebrew and all formulae from GitHub using `git`(1) and perform any necessary migrations.
* `--merge`:
Use `git merge` to apply updates (rather t... | true |
Other | Homebrew | brew | 0be15fc4b731850e1f519c7936182842bbd40de4.json | Run `brew update` before `brew bundle`.
This should help with cases like
https://github.com/Homebrew/homebrew-bundle/issues/751
and is good practise in general.
Also, document the `brew update --preinstall` flag that is being used
here so others can run it manually e.g. as part of CI if needed. | manpages/brew.1 | @@ -671,13 +671,17 @@ Unpin \fIformula\fR, allowing them to be upgraded by \fBbrew upgrade\fR \fIformu
.SS "\fBuntap\fR \fItap\fR"
Remove a tapped formula repository\.
.
-.SS "\fBupdate\fR, \fBup\fR [\fIoptions\fR]"
+.SS "\fBupdate\fR [\fIoptions\fR]"
Fetch the newest version of Homebrew and all formulae from GitHu... | true |
Other | Homebrew | brew | 7d7b80774e5aa59b531fd6bcc6655d857cee75a8.json | pr-publish: use workflow_dispatch trigger | Library/Homebrew/dev-cmd/pr-publish.rb | @@ -16,6 +16,8 @@ def pr_publish_args
EOS
flag "--tap=",
description: "Target tap repository (default: `homebrew/core`)."
+ flag "--workflow=",
+ description: "Target workflow filename (default: `publish-commit-bottles.yml`)."
switch :verbose
min_named 1
... | true |
Other | Homebrew | brew | 7d7b80774e5aa59b531fd6bcc6655d857cee75a8.json | pr-publish: use workflow_dispatch trigger | docs/Manpage.md | @@ -901,6 +901,8 @@ the repository.
* `--tap`:
Target tap repository (default: `homebrew/core`).
+* `--workflow`:
+ Target workflow filename (default: `publish-commit-bottles.yml`).
### `pr-pull` [*`options`*] *`pull_request`* [*`pull_request`* ...]
| true |
Other | Homebrew | brew | 7d7b80774e5aa59b531fd6bcc6655d857cee75a8.json | pr-publish: use workflow_dispatch trigger | manpages/brew.1 | @@ -1175,6 +1175,10 @@ Publish bottles for a pull request with GitHub Actions\. Requires write access t
\fB\-\-tap\fR
Target tap repository (default: \fBhomebrew/core\fR)\.
.
+.TP
+\fB\-\-workflow\fR
+Target workflow filename (default: \fBpublish\-commit\-bottles\.yml\fR)\.
+.
.SS "\fBpr\-pull\fR [\fIoptions\fR] \f... | true |
Other | Homebrew | brew | bf9659423a0954482a0bd62f5130e41fe9831c39.json | Increase timeout for some integration tests. | Library/Homebrew/test/cmd/reinstall_spec.rb | @@ -7,7 +7,7 @@
it_behaves_like "parseable arguments"
end
-describe "brew reinstall", :integration_test do
+describe "brew reinstall", :integration_test, timeout: 120 do
it "reinstalls a Formula" do
install_test_formula "testball"
foo_dir = HOMEBREW_CELLAR/"testball/0.1/bin" | true |
Other | Homebrew | brew | bf9659423a0954482a0bd62f5130e41fe9831c39.json | Increase timeout for some integration tests. | Library/Homebrew/test/dev-cmd/test_spec.rb | @@ -7,7 +7,7 @@
end
# randomly segfaults on Linux with portable-ruby.
-describe "brew test", :integration_test, :needs_macos do
+describe "brew test", :integration_test, :needs_macos, timeout: 120 do
it "tests a given Formula" do
install_test_formula "testball", <<~'RUBY'
test do | true |
Other | Homebrew | brew | 367de3523ae7ae1146b092dbaca3720df9e336c2.json | pr-automerge: fix variable name | Library/Homebrew/dev-cmd/pr-automerge.rb | @@ -40,7 +40,7 @@ def pr_automerge
query = "is:pr is:open repo:#{tap.full_name}"
query += Homebrew.args.ignore_failures? ? " -status:pending" : " status:success"
query += " review:approved" unless Homebrew.args.without_approval?
- query += " label:\"#{with_label}\"" if Homebrew.args.with_label
+ qu... | false |
Other | Homebrew | brew | a8e524d3345271dc350093ed54be008fa436cb0b.json | bottle: fix inreplace string | Library/Homebrew/dev-cmd/bottle.rb | @@ -484,7 +484,7 @@ def merge
update_or_add = "update"
if args.keep_old?
mismatches = []
- bottle_block_contents = s[/ bottle do(.+?)end\n/m, 1]
+ bottle_block_contents = s.inreplace_string[/ bottle do(.+?)end\n/m, 1]
bottle_block_conte... | false |
Other | Homebrew | brew | cff79348c91cc9060eab33840b18a8a54c51fbf4.json | dev-cmd/bump-formula-pr.rb: fix StringInreplaceExtension usage | Library/Homebrew/dev-cmd/bump-formula-pr.rb | @@ -445,8 +445,8 @@ def forked_repo_info(formula, tap_full_name, old_contents)
def inreplace_pairs(path, replacement_pairs)
if args.dry_run?
- contents = path.open("r") { |f| Formulary.ensure_utf8_encoding(f).read }
- contents.extend(StringInreplaceExtension)
+ str = path.open("r") { |f| Formul... | false |
Other | Homebrew | brew | f8708ae80c38bff2b5c2ca76d509abe0cc6f3df6.json | Add todo for --json=v1 deprecation | Library/Homebrew/cmd/outdated.rb | @@ -46,7 +46,8 @@ def outdated
case json_version
when :v1
- odeprecated "brew outdated --json=v1", "brew outdated --json=v2"
+ # TODO: enable for next major/minor release
+ # odeprecated "brew outdated --json=v1", "brew outdated --json=v2"
outdated = if args.formula? || !args.cask?
... | false |
Other | Homebrew | brew | 09dcdc2a6b86df92409c7c5865f48063d4680a90.json | README.md: Add link to Homebrew blog
Inspired by https://github.com/Homebrew/brew/issues/8096 and https://github.com/Homebrew/brew/pull/8098. I think the blog is an important way for regular users to keep up-to-date with Homebrew evolution, so it deserves an entry in the main docs page.
Update docs/README.md
Co-auth... | docs/README.md | @@ -3,6 +3,7 @@
## Users
- [`brew` man-page (command documentation)](Manpage.md)
+- [Homebrew Blog (news on major updates)](https://brew.sh/blog/)
- [Troubleshooting](Troubleshooting.md)
- [Installation](Installation.md)
- [Frequently Asked Questions](FAQ.md) | false |
Other | Homebrew | brew | 95cef86f885cf40f791769ef903cc2b43d4941a1.json | Add link to Homebrew blog in CHANGELOG.md | CHANGELOG.md | @@ -1 +1,3 @@
See Homebrew's [releases on GitHub](https://github.com/Homebrew/brew/releases) for the changelog.
+
+Release notes for major and minor releases can also be found in the [Homebrew blog](https://brew.sh/blog/). | false |
Other | Homebrew | brew | 2188b268de15935b848a6a5ac8ee4efa1cea4d60.json | Apply suggestions from code review
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/cmd/commands.rb | @@ -33,18 +33,19 @@ def commands
prepend_separator = false
- { "Built-in commands" => Commands.internal_commands,
+ {
+ "Built-in commands" => Commands.internal_commands,
"Built-in developer commands" => Commands.internal_developer_commands,
"External commands" ... | false |
Other | Homebrew | brew | 791774691a7543f1fd7f046e1df058045d136f86.json | sorbet: update hidden definitions | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -6840,6 +6840,130 @@ module Docile
def self.dsl_eval_with_block_return(dsl, *args, &block); end
end
+module ELFTools
+ VERSION = ::T.let(nil, ::T.untyped)
+end
+
+class ELFTools::Structs::ELF32_PhdrBe
+end
+
+class ELFTools::Structs::ELF32_PhdrBe
+end
+
+class ELFTools::Structs::ELF32_PhdrLe
+end
+
+class ELF... | false |
Other | Homebrew | brew | f6cdd6b37bea286dc8a58af6035b8ef72bb57cf7.json | sorbet/files.yaml: add new file | Library/Homebrew/sorbet/files.yaml | @@ -604,6 +604,7 @@ false:
- ./test/options_spec.rb
- ./test/os/linux/diagnostic_spec.rb
- ./test/os/linux/formula_spec.rb
+ - ./test/os/linux/pathname_spec.rb
- ./test/os/mac/dependency_collector_spec.rb
- ./test/os/mac/java_requirement_spec.rb
- ./test/os/mac/keg_spec.rb | false |
Other | Homebrew | brew | c27916cd8723b279b0c36d3d7f3ec01c76823990.json | srb/inreplace.rbi: add method signatures | Library/Homebrew/sorbet/rbi/utils/inreplace.rbi | @@ -16,12 +16,15 @@ class StringInreplaceExtension
sig { params(before: T.nilable(String), after: T.nilable(String), audit_result: T::Boolean).returns(T.nilable(String)) }
def gsub!(before, after, audit_result = true); end
+ sig {params(flag: String, new_value: String).void}
def change_make_var!(flag, new_v... | false |
Other | Homebrew | brew | c56f47c1ee2ae208dd8333095f45d18acceaa58d.json | use main branch for setup-ruby action | .github/workflows/tests.yml | @@ -53,7 +53,7 @@ jobs:
- name: Set up Ruby
if: matrix.os == 'ubuntu-latest'
- uses: actions/setup-ruby@master
+ uses: actions/setup-ruby@main
with:
ruby-version: '2.6'
| false |
Other | Homebrew | brew | ec81d43519e9d334f994c8dc10fdba17779def82.json | increase readall test timeout | Library/Homebrew/test/cmd/readall_spec.rb | @@ -6,7 +6,7 @@
it_behaves_like "parseable arguments"
end
-describe "brew readall", :integration_test, timeout: 180 do
+describe "brew readall", :integration_test, timeout: 240 do
it "imports all Formulae for a given Tap" do
formula_file = setup_test_formula "testball"
| false |
Other | Homebrew | brew | 9f296aa6ac308a32f4602de4421fd2a0f561c103.json | bintray: Fix "uninitialized constant EnvConfig" errors
- This fix was suggested by Sorbet when I ran `HOMEBREW_SORBET=1 bundle
exec srb tc` on the latest `master` while playing around with the
latest changes post-GSoC meeting.
- Then I noticed it was actually a bug, introduced in
adc36a05ffeadb54b94c87d86f62fba9... | Library/Homebrew/bintray.rb | @@ -25,8 +25,8 @@ def open_api(url, *extra_curl_args, auth: true)
args = extra_curl_args
if auth
- raise UsageError, "HOMEBREW_BINTRAY_USER is unset." unless (user = EnvConfig.bintray_user)
- raise UsageError, "HOMEBREW_BINTRAY_KEY is unset." unless (key = EnvConfig.bintray_key)
+ raise Usage... | false |
Other | Homebrew | brew | ad4fd55b78772d456b3c8ed84436a6c86212a8f7.json | audit: add gitless and telegram-cli to prerelease list
In support of #8075. Both formulae been on prerelease up till now. | Library/Homebrew/dev-cmd/audit.rb | @@ -632,7 +632,10 @@ def get_repo_data(regex)
"libepoxy" => "1.5",
}.freeze
- GITHUB_PRERELEASE_ALLOWLIST = %w[].freeze
+ GITHUB_PRERELEASE_ALLOWLIST = {
+ "gitless" => "0.8.8",
+ "telegram-cli" => "1.3.1",
+ }.freeze
# version_prefix = stable_version_string.sub(/... | false |
Other | Homebrew | brew | 62ca046390ef3da606c50db4a27d79455f23aacf.json | pr-automerge: pass proper tap variable
Co-authored-by: Jonathan Chang <jchang641@gmail.com> | Library/Homebrew/dev-cmd/pr-automerge.rb | @@ -59,7 +59,7 @@ def pr_automerge
if args.publish?
publish_args = ["pr-publish"]
- publish_args << "--tap=#{args.tap}" if args.tap
+ publish_args << "--tap=#{tap}" if tap
safe_system HOMEBREW_BREW_FILE, *publish_args, *pr_urls
else
ohai "Now run:", " brew pr-publish \\\n ... | false |
Other | Homebrew | brew | a895f398edae9da096950bcd68eefa2d233fa137.json | Use `BuildError#formula` instead of `args`. | Library/Homebrew/brew.rb | @@ -150,7 +150,7 @@ def output_unsupported_error
Utils::Analytics.report_build_error(e)
e.dump
- output_unsupported_error if Homebrew.args.HEAD? || e.formula.deprecated? || e.formula.disabled?
+ output_unsupported_error if e.formula.head? || e.formula.deprecated? || e.formula.disabled?
exit 1
rescue Run... | false |
Other | Homebrew | brew | bf13db3367fc474d9f012984ddd482ae06a01ad8.json | Make `Parser#parse` return `args`. | Library/Homebrew/cli/parser.rb | @@ -171,7 +171,7 @@ def parse(argv = @argv, allow_no_named_args: false)
Homebrew.args = @args
@args_parsed = true
- @parser
+ @args
end
def global_option?(name, desc) | true |
Other | Homebrew | brew | bf13db3367fc474d9f012984ddd482ae06a01ad8.json | Make `Parser#parse` return `args`. | Library/Homebrew/dev-cmd/mirror.rb | @@ -27,7 +27,7 @@ def mirror_args
end
def mirror
- mirror_args.parse
+ args = mirror_args.parse
bintray_org = args.bintray_org || "homebrew"
bintray_repo = args.bintray_repo || "mirror" | true |
Other | Homebrew | brew | bf13db3367fc474d9f012984ddd482ae06a01ad8.json | Make `Parser#parse` return `args`. | Library/Homebrew/dev-cmd/pr-upload.rb | @@ -33,7 +33,7 @@ def pr_upload_args
end
def pr_upload
- pr_upload_args.parse
+ args = pr_upload_args.parse
bintray_org = args.bintray_org || "homebrew"
bintray = Bintray.new(org: bintray_org) | true |
Other | Homebrew | brew | 3d0a68cf5445c54d95fb1a7933085c45fdb21ad5.json | sorbet: add cli/args.rb to true | Library/Homebrew/sorbet/files.yaml | @@ -82,7 +82,6 @@ false:
- ./cask/verify.rb
- ./caveats.rb
- ./cleanup.rb
- - ./cli/args.rb
- ./cli/parser.rb
- ./cmd/--cache.rb
- ./cmd/--cellar.rb
@@ -836,6 +835,7 @@ true:
- ./cask/url.rb
- ./checksum.rb
- ./cleaner.rb
+ - ./cli/args.rb
- ./compat/extend/nil.rb
- ./compat/extend/st... | true |
Other | Homebrew | brew | 3d0a68cf5445c54d95fb1a7933085c45fdb21ad5.json | sorbet: add cli/args.rb to true | Library/Homebrew/sorbet/rbi/cli.rbi | @@ -0,0 +1,19 @@
+# typed: strict
+
+module Homebrew::CLI
+ class Args < OpenStruct
+ def devel?; end
+
+ def HEAD?; end
+
+ def include_test?; end
+
+ def build_bottle?; end
+
+ def build_universal?; end
+
+ def build_from_source?; end
+
+ def named_args; end
+ end
+end | true |
Other | Homebrew | brew | 33f1c3164b1c6a9ef2d3de0e7cb139b259808bad.json | commands: Use a hash instead of nested arrays | Library/Homebrew/cmd/commands.rb | @@ -31,18 +31,20 @@ def commands
return
end
- first = true
+ prepend_separator = false
- [["Built-in commands", Commands.internal_commands],
- ["Built-in developer commands", Commands.internal_developer_commands],
- ["External commands", Commands.external_commands],
- ["Cask command... | false |
Other | Homebrew | brew | ef8af4b0707997d38d3146c45c4cc4c5b2fa3017.json | add limit flag to reduce response size | Library/Homebrew/dev-cmd/bump.rb | @@ -12,6 +12,8 @@ def bump_args
Display out-of-date brew formulae, the latest version available, and whether a pull request has been opened.
EOS
+ flag "--limit=",
+ description: "Limit number of package results returned."
switch :verbose
switch :debug
end
@@ -40,8 +4... | false |
Other | Homebrew | brew | 4f119ad85ff77386312b4a5c3289ec53a6f29769.json | linkage_checker.rb: Use ||= instead of "return ... if ... "
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/linkage_checker.rb | @@ -95,9 +95,7 @@ def unexpected_broken_dylibs
end
def unexpected_present_dylibs
- return @unexpected_present_dylibs if @unexpected_present_dylibs
-
- @unexpected_present_dylibs = @formula.class.allowed_missing_libraries.reject do |allowed_missing_lib|
+ @unexpected_present_dylibs ||= @formula.class.al... | false |
Other | Homebrew | brew | 2918f92b89b83f1c730dbbd032fe32837add43dd.json | linkage_checker.rb: fix indentation in `display_items`
Co-authored-by: Mike McQuaid <mike@mikemcquaid.com> | Library/Homebrew/linkage_checker.rb | @@ -311,7 +311,7 @@ def display_items(label, things, puts_output: true)
else
things.sort.each do |item|
output += if item.is_a? Regexp
- "\n #{item.inspect}"
+ "\n #{item.inspect}"
else
"\n #{item}"
end | false |
Other | Homebrew | brew | 95fe35d5b6e30fcf4c512a1a393ce9cb014e9666.json | sorbet: add dependable.rb to true | Library/Homebrew/sorbet/files.yaml | @@ -842,6 +842,7 @@ true:
- ./compat/os/mac.rb
- ./compilers.rb
- ./config.rb
+ - ./dependable.rb
- ./dependency_collector.rb
- ./description_cache_store.rb
- ./descriptions.rb | false |
Other | Homebrew | brew | 637de8b48e0d6bb10de6ed74c2599d7a6bd57e65.json | sorbet: add compat files to true
Set the following files to true in sorbet/files.yaml:
- ./compat/extend/nil.rb
- ./compat/extend/string.rb
- ./compat/formula.rb
- ./compat/os/mac.rb | Library/Homebrew/sorbet/files.yaml | @@ -457,13 +457,8 @@ false:
- ./cask/dsl/version.rb
- ./cask/topological_hash.rb
- ./cmd/cask.rb
- - ./compat/extend/nil.rb
- - ./compat/extend/string.rb
- - ./compat/formula.rb
- ./compat/language/haskell.rb
- ./compat/language/java.rb
- - ./compat/os/mac.rb
- - ./dependable.rb
- ./extend/git_re... | true |
Other | Homebrew | brew | 637de8b48e0d6bb10de6ed74c2599d7a6bd57e65.json | sorbet: add compat files to true
Set the following files to true in sorbet/files.yaml:
- ./compat/extend/nil.rb
- ./compat/extend/string.rb
- ./compat/formula.rb
- ./compat/os/mac.rb | Library/Homebrew/sorbet/rbi/homebrew.rbi | @@ -12,3 +12,32 @@ module Language::Perl::Shebang
include Kernel
end
+module Dependable
+ def tags; end
+end
+
+class Formula
+ module Compat
+ include Kernel
+
+ def latest_version_installed?; end
+
+ def active_spec; end
+
+ def patches; end
+ end
+end
+
+class NilClass
+ module Compat
+ incl... | true |
Other | Homebrew | brew | 637de8b48e0d6bb10de6ed74c2599d7a6bd57e65.json | sorbet: add compat files to true
Set the following files to true in sorbet/files.yaml:
- ./compat/extend/nil.rb
- ./compat/extend/string.rb
- ./compat/formula.rb
- ./compat/os/mac.rb | Library/Homebrew/sorbet/rbi/os.rbi | @@ -12,3 +12,11 @@ module OS
include Kernel
end
end
+
+module OS::Mac
+ class << self
+ module Compat
+ include Kernel
+ end
+ end
+end | true |
Other | Homebrew | brew | 6d4bce4baafcb34c11cbca12b0d75458a0111ed9.json | fix syntactical issues | Library/Homebrew/dev-cmd/bump.rb | @@ -97,8 +97,8 @@ def parse_livecheck_response(response)
end
def display(outdated_packages)
- ohai "Outdated formulae\n"
-
+ ohai "Outdated formulae"
+ puts
outdated_packages.each do |formula, package_details|
ohai formula
puts "Current formula version: #{package_details[:current_for... | true |
Other | Homebrew | brew | 6d4bce4baafcb34c11cbca12b0d75458a0111ed9.json | fix syntactical issues | Library/Homebrew/diagnostic.rb | @@ -671,7 +671,9 @@ def check_git_status
next if status.blank?
# these will result in uncommitted gems.
- next if path == HOMEBREW_REPOSITORY && (ENV["HOMEBREW_SORBET"] || ENV["HOMEBREW_PATCHELF_RB"])
+ if path == HOMEBREW_REPOSITORY
+ next if ENV["HOMEBREW_SORBET"] ... | true |
Other | Homebrew | brew | b4efb2c258a3e1735f46a6874ccf67bdd40516a1.json | notability: fix variable names | Library/Homebrew/utils/notability.rb | @@ -9,7 +9,7 @@ def github_repo_data(user, repo)
@github_repo_data ||= {}
@github_repo_data["#{user}/#{repo}"] ||= GitHub.repository(user, repo)
- @github_data["#{user}/#{repo}"]
+ @github_repo_data["#{user}/#{repo}"]
rescue GitHub::HTTPNotFoundError
nil
end
@@ -23,7 +23,7 @@ def gitlab_rep... | false |
Other | Homebrew | brew | 8d82aa8c3a308c7d39d21b918dff6d561171e1a3.json | sorbet: set multiple files to true
Set the following files to true in sorbet/files.yaml:
- ./fetch.rb
- ./formula_pin.rb
- ./hardware.rb
- ./help.rb
- ./language/go.rb
- ./language/java.rb
- ./language/perl.rb
- ./messages.rb | Library/Homebrew/sorbet/files.yaml | @@ -212,11 +212,8 @@ false:
- ./formula_versions.rb
- ./formulary.rb
- ./global.rb
- - ./help.rb
- ./install.rb
- ./keg.rb
- - ./language/go.rb
- - ./language/java.rb
- ./language/node.rb
- ./language/python.rb
- ./linkage_checker.rb
@@ -484,12 +481,7 @@ false:
- ./extend/os/mac/requiremen... | true |
Other | Homebrew | brew | 8d82aa8c3a308c7d39d21b918dff6d561171e1a3.json | sorbet: set multiple files to true
Set the following files to true in sorbet/files.yaml:
- ./fetch.rb
- ./formula_pin.rb
- ./hardware.rb
- ./help.rb
- ./language/go.rb
- ./language/java.rb
- ./language/perl.rb
- ./messages.rb | Library/Homebrew/sorbet/rbi/homebrew.rbi | @@ -0,0 +1,14 @@
+# typed: strict
+
+module Homebrew
+ include Kernel
+end
+
+module Homebrew::Help
+ include Kernel
+end
+
+module Language::Perl::Shebang
+ include Kernel
+end
+ | true |
Other | Homebrew | brew | abaf9c40aec2cc91314b7e86fcb2d9b205c45c4d.json | Fix code style. | Library/Homebrew/cask/cmd.rb | @@ -199,9 +199,7 @@ def process_options(*args)
begin
arg = all_args[i]
- unless process_arguments([arg]).empty?
- remaining << arg
- end
+ remaining << arg unless process_arguments([arg]).empty?
rescue OptionParser::MissingArgument
raise if... | true |
Other | Homebrew | brew | abaf9c40aec2cc91314b7e86fcb2d9b205c45c4d.json | Fix code style. | Library/Homebrew/cask/dsl.rb | @@ -139,10 +139,10 @@ def language_eval
locales = cask.config.languages
.map do |language|
- Locale.parse(language)
- rescue Locale::ParserError
- nil
- end
+ Locale.parse(language)
+ rescue Locale::ParserError
+ ... | true |
Other | Homebrew | brew | 365d2b214e681626b2f6203ff7fe4419ae3f76c8.json | Remove useless spec. | Library/Homebrew/test/cask/cmd_spec.rb | @@ -15,12 +15,6 @@
])
end
- it "ignores the `--language` option, which is handled in `OS::Mac`" do
- cli = described_class.new("--language=en")
- expect(cli).to receive(:detect_internal_command).with(no_args)
- cli.run
- end
-
context "when given no arguments" do
it "e... | false |
Other | Homebrew | brew | 4bc174cc628010daac0a9605f0e62363042583b0.json | Add timeout for all specs. | Library/Homebrew/test/spec_helper.rb | @@ -29,6 +29,7 @@
require "rubocop/rspec/support"
require "find"
require "byebug"
+require "timeout"
$LOAD_PATH.push(File.expand_path("#{ENV["HOMEBREW_LIBRARY"]}/Homebrew/test/support/lib"))
@@ -181,7 +182,19 @@ def find_files
$stderr.reopen(File::NULL)
end
- example.run
+ begin
+ ... | false |
Other | Homebrew | brew | ab4e956390aceacb96b40a78b49458b9617e2ade.json | sorbet: update hidden definitions | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -5621,6 +5621,10 @@ class Cask::Cmd::List
def full_name?(); end
+ def json=(value); end
+
+ def json?(); end
+
def one=(value); end
def one?(); end
@@ -6243,6 +6247,48 @@ module CodeRay
def self.scanner(lang, options=T.unsafe(nil), &block); end
end
+module Colorize
+end
+
+module Colorize::Cla... | false |
Other | Homebrew | brew | 1a6467eeeab8887ff404ff87b8b15d6c50c0525c.json | Gemfile: set sorbet version | Library/Homebrew/Gemfile | @@ -14,8 +14,8 @@ gem "rspec-wait", require: false
gem "rubocop"
gem "simplecov", require: false
if ENV["HOMEBREW_SORBET"]
- gem "sorbet"
- gem "sorbet-runtime"
+ gem "sorbet", "0.5.5823"
+ gem "sorbet-runtime", "0.5.5823"
gem "tapioca"
end
| false |
Other | Homebrew | brew | 73495c4959fb614f7cb434b482599fb8821fb824.json | formula.rb [extend/Linux]: add missing comma | Library/Homebrew/extend/os/linux/formula.rb | @@ -9,7 +9,7 @@ def shared_library(name, version = nil)
undef allowed_missing_lib?
def allowed_missing_lib?(lib)
- raise TypeError "Library must be a string; got a #{lib.class} (#{lib})" unless lib.is_a? String
+ raise TypeError, "Library must be a string; got a #{lib.class} (#{lib})" unless lib.is_a? Str... | false |
Other | Homebrew | brew | 68ebf8866ab14334aa6aab8d0672d804c632035d.json | extend/os/linux/formula.rb: allowed_missing_lib: check input class | Library/Homebrew/extend/os/linux/formula.rb | @@ -9,6 +9,8 @@ def shared_library(name, version = nil)
undef allowed_missing_lib?
def allowed_missing_lib?(lib)
+ raise TypeError "Library must be a string; got a #{lib.class} (#{lib})" unless lib.is_a? String
+
# lib: Full path to the missing library
# Ex.: /home/linuxbrew/.linuxbrew/lib... | false |
Other | Homebrew | brew | 28227bd26b592d3c4ecb669a662750200938d734.json | linkage_checker.rb: replace conditional assignment with an if-else | Library/Homebrew/linkage_checker.rb | @@ -81,7 +81,11 @@ def unexpected_broken_libs
def broken_dylibs_with_expectations
output = {}
@broken_dylibs.each do |lib|
- output[lib] = (unexpected_broken_libs.include? lib) ? ["unexpected"] : ["expected"]
+ output[lib] = if unexpected_broken_libs.include? lib
+ ["unexpected"]
+ el... | false |
Other | Homebrew | brew | ff6653424270aeceb6a863ad0f32472c9f99863a.json | add patchelf to Gemfile | Library/Homebrew/Gemfile | @@ -23,7 +23,7 @@ end
gem "activesupport"
gem "concurrent-ruby"
gem "mechanize"
-gem "patchelf" if ENV["HOMEBREW_PATCHELF_RB"]
+gem "patchelf"
gem "plist"
gem "rubocop-performance"
gem "rubocop-rspec" | false |
Other | Homebrew | brew | ad735d6ed2b4a80483dea3486660560fedb44a2f.json | Change the default locale to C.UTF-8 on Linux
Change the default locale from en_US.UTF-8 to C.UTF-8 on Linux.
The former locale is not included by default in common Docker images,
whereas the latter locale is included by default.
The default locale remains en_US.UTF-8 on macOS. | Library/Homebrew/brew.sh | @@ -1,7 +1,19 @@
+HOMEBREW_PROCESSOR="$(uname -m)"
+HOMEBREW_SYSTEM="$(uname -s)"
+case "$HOMEBREW_SYSTEM" in
+ Darwin) HOMEBREW_MACOS="1" ;;
+ Linux) HOMEBREW_LINUX="1" ;;
+esac
+
# Force UTF-8 to avoid encoding issues for users with broken locale settings.
if [[ "$(locale charmap 2>/dev/null)" != "UTF-8" ]]
the... | false |
Other | Homebrew | brew | 92953aa8e8431391697cf93f58200fc0f6e41910.json | commands: Add unstable commands to cask commands | Library/Homebrew/commands.rb | @@ -140,19 +140,12 @@ def external_commands
def cask_commands(aliases: false)
cmds = cask_internal_commands
cmds += cask_internal_command_aliases if aliases
- cmds += cask_unstable_internal_commands
cmds += cask_external_commands
cmds
end
def cask_internal_commands
- Cask::Cmd.comma... | false |
Other | Homebrew | brew | b4f8e23ee1050d3794974fbe93861c5fa4b421a0.json | outdated: Fix documentation style
Co-authored-by: Eric Knibbe <enk3@outlook.com> | Library/Homebrew/cmd/outdated.rb | @@ -30,11 +30,11 @@ def outdated_args
"formula is outdated. Otherwise, the repository's HEAD will only be checked for "\
"updates when a new stable or development version has been released."
switch "--greedy",
- description: "Print outdated casks ... | true |
Other | Homebrew | brew | b4f8e23ee1050d3794974fbe93861c5fa4b421a0.json | outdated: Fix documentation style
Co-authored-by: Eric Knibbe <enk3@outlook.com> | docs/Manpage.md | @@ -360,11 +360,11 @@ otherwise.
* `--fetch-HEAD`:
Fetch the upstream repository to detect if the HEAD installation of the formula is outdated. Otherwise, the repository's HEAD will only be checked for updates when a new stable or development version has been released.
* `--greedy`:
- Print outdated casks with `a... | true |
Other | Homebrew | brew | b4f8e23ee1050d3794974fbe93861c5fa4b421a0.json | outdated: Fix documentation style
Co-authored-by: Eric Knibbe <enk3@outlook.com> | manpages/brew.1 | @@ -485,15 +485,15 @@ Fetch the upstream repository to detect if the HEAD installation of the formula
.
.TP
\fB\-\-greedy\fR
-Print outdated casks with \fBauto_updates\fR or \fBversion :latest\fR
+Print outdated casks with \fBauto_updates\fR or \fBversion :latest\fR\.
.
.TP
\fB\-\-formula\fR
-Treat all arguments ... | true |
Other | Homebrew | brew | 45368c81194379f1baeee86e82eeeb237610003f.json | Add a default back to INFOPATH
It looks like #7738 removed the default unintentionally. This adds it back.
For scripts that `set -u`, this will fail if $INFOPATH is not already set (`INFOPATH: unbound variable`). This provides an empty default, but one that will still satisfy the trailing colon requirement. | Library/Homebrew/cmd/shellenv.sh | @@ -29,7 +29,7 @@ homebrew-shellenv() {
echo "export HOMEBREW_REPOSITORY=\"$HOMEBREW_REPOSITORY\";"
echo "export PATH=\"$HOMEBREW_PREFIX/bin:$HOMEBREW_PREFIX/sbin\${PATH+:\$PATH}\";"
echo "export MANPATH=\"$HOMEBREW_PREFIX/share/man\${MANPATH+:\$MANPATH}:\";"
- echo "export INFOPATH=\"$HOMEBRE... | false |
Other | Homebrew | brew | 25b7d28f91d88dc2ac431cebba9a9c2998b365f1.json | dev-cmd/audit: add libressl to uses_from_macos allow list | Library/Homebrew/dev-cmd/audit.rb | @@ -323,6 +323,7 @@ def audit_formula_name
USES_FROM_MACOS_ALLOWLIST = %w[
apr
apr-util
+ libressl
openblas
openssl@1.1
].freeze | false |
Other | Homebrew | brew | 70dfaf3b42f263a83edf35934f6b360a6bf927cd.json | Add link to pypi downloads page to problem message | Library/Homebrew/rubocops/urls.rb | @@ -292,16 +292,22 @@ def audit_formula(_node, _class_node, _parent_class_node, body_node)
# Check pypi urls
pypi_pattern = %r{^https?://pypi.python.org/}
- audit_urls(urls, pypi_pattern) do
- problem "use the `files.pythonhosted.org` url found on the pypi downloads page"
+ ... | true |
Other | Homebrew | brew | 70dfaf3b42f263a83edf35934f6b360a6bf927cd.json | Add link to pypi downloads page to problem message | Library/Homebrew/test/rubocops/urls_spec.rb | @@ -251,7 +251,7 @@ class Foo < Formula
class Foo < Formula
desc "foo"
url "https://pypi.python.org/packages/source/foo/foo-0.1.tar.gz"
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use the `files.pythonhosted.org` url found on the pypi downloads page
+ ... | true |
Other | Homebrew | brew | 5f3f7d010b4f816e740ca740bab976d9b6836038.json | Require long urls for pypi and pythonhosted urls | Library/Homebrew/rubocops/urls.rb | @@ -291,20 +291,15 @@ def audit_formula(_node, _class_node, _parent_class_node, body_node)
urls += mirrors
# Check pypi urls
- @pypi_pattern = %r{^https?://pypi.python.org/(.*)}
- audit_urls(urls, @pypi_pattern) do |match, url|
- problem "#{url} should be `https://fi... | true |
Other | Homebrew | brew | 5f3f7d010b4f816e740ca740bab976d9b6836038.json | Require long urls for pypi and pythonhosted urls | Library/Homebrew/test/rubocops/urls_spec.rb | @@ -245,29 +245,32 @@ class Foo < Formula
describe RuboCop::Cop::FormulaAudit::PyPiUrls do
subject(:cop) { described_class.new }
- context "when a pypi.python.org URL is used" do
- it "reports an offense" do
+ context "when a pypi URL is used" do
+ it "reports an offense for pypi.python.org urls" do
... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.