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
acde828a45c452b54413a3cd711752343e54f3cf.json
ARGV: Replace ARGV.verbose? with Homebrew.args.verbose?
Library/Homebrew/cli/parser.rb
@@ -64,10 +64,14 @@ def switch(*names, description: nil, env: nil, required_for: nil, depends_on: ni set_constraints(name, required_for: required_for, depends_on: depends_on) end - enable_switch(*names, from: :env) if !env.nil? && !ENV["HOMEBREW_#{env.to_s.upcase}"].nil? + enable_swi...
true
Other
Homebrew
brew
acde828a45c452b54413a3cd711752343e54f3cf.json
ARGV: Replace ARGV.verbose? with Homebrew.args.verbose?
Library/Homebrew/download_strategy.rb
@@ -60,7 +60,7 @@ def stage ref_type: @ref_type, ref: @ref) .extract_nestedly(basename: basename, prioritise_extension: true, - verbose: ARGV.verbose? && !shutup) + ...
true
Other
Homebrew
brew
acde828a45c452b54413a3cd711752343e54f3cf.json
ARGV: Replace ARGV.verbose? with Homebrew.args.verbose?
Library/Homebrew/exceptions.rb
@@ -381,7 +381,7 @@ def fetch_issues def dump puts - if ARGV.verbose? + if Homebrew.args.verbose? require "system_config" require "build_environment"
true
Other
Homebrew
brew
acde828a45c452b54413a3cd711752343e54f3cf.json
ARGV: Replace ARGV.verbose? with Homebrew.args.verbose?
Library/Homebrew/extend/pathname.rb
@@ -443,8 +443,8 @@ def counts MAXIMUM_VERBOSE_OUTPUT = 100 def verbose? - return ARGV.verbose? unless ENV["CI"] - return false unless ARGV.verbose? + return Homebrew.args.verbose? unless ENV["CI"] + return false unless Homebrew.args.verbose? if total < MAXIMUM_VERBOSE_OUTPUT ...
true
Other
Homebrew
brew
acde828a45c452b54413a3cd711752343e54f3cf.json
ARGV: Replace ARGV.verbose? with Homebrew.args.verbose?
Library/Homebrew/formula.rb
@@ -506,7 +506,7 @@ def head_version_outdated?(version, fetch_head: false) return false unless head&.downloader.is_a?(VCSDownloadStrategy) downloader = head.downloader - downloader.shutup! unless ARGV.verbose? + downloader.shutup! unless Homebrew.args.verbose? downloader.commit_outdated?(version....
true
Other
Homebrew
brew
acde828a45c452b54413a3cd711752343e54f3cf.json
ARGV: Replace ARGV.verbose? with Homebrew.args.verbose?
Library/Homebrew/formula_installer.rb
@@ -56,7 +56,7 @@ def initialize(formula) @include_test = ARGV.include?("--include-test") @interactive = false @git = false - @verbose = ARGV.verbose? + @verbose = Homebrew.args.verbose? @quieter = ARGV.quieter? @debug = ARGV.debug? @installed_as_dependency = false
true
Other
Homebrew
brew
acde828a45c452b54413a3cd711752343e54f3cf.json
ARGV: Replace ARGV.verbose? with Homebrew.args.verbose?
Library/Homebrew/keg.rb
@@ -573,7 +573,9 @@ def resolve_any_conflicts(dst, mode) begin keg = Keg.for(src) rescue NotAKegError - puts "Won't resolve conflicts for symlink #{dst} as it doesn't resolve into the Cellar" if ARGV.verbose? + if Homebrew.args.verbose? + puts "Won't resolve conflicts for symlink #{dst...
true
Other
Homebrew
brew
acde828a45c452b54413a3cd711752343e54f3cf.json
ARGV: Replace ARGV.verbose? with Homebrew.args.verbose?
Library/Homebrew/resource.rb
@@ -127,7 +127,7 @@ def fetch(verify_download_integrity: true) def verify_download_integrity(fn) if fn.file? - ohai "Verifying #{fn.basename} checksum" if ARGV.verbose? + ohai "Verifying #{fn.basename} checksum" if Homebrew.args.verbose? fn.verify_checksum(checksum) end rescue Checksu...
true
Other
Homebrew
brew
acde828a45c452b54413a3cd711752343e54f3cf.json
ARGV: Replace ARGV.verbose? with Homebrew.args.verbose?
Library/Homebrew/sandbox.rb
@@ -127,7 +127,7 @@ def exec(*args) end end - if @failed && ARGV.verbose? + if @failed && ENV["HOMEBREW_VERBOSE"].present? ohai "Sandbox log" puts logs $stdout.flush # without it, brew test-bot would fail to catch the log
true
Other
Homebrew
brew
acde828a45c452b54413a3cd711752343e54f3cf.json
ARGV: Replace ARGV.verbose? with Homebrew.args.verbose?
Library/Homebrew/style.rb
@@ -30,7 +30,7 @@ def check_style_impl(files, output_type, fix: false, except_cops: nil, only_cops args << "--parallel" end - args += ["--extra-details", "--display-cop-names"] if ARGV.verbose? + args += ["--extra-details", "--display-cop-names"] if Homebrew.args.verbose? if except_...
true
Other
Homebrew
brew
acde828a45c452b54413a3cd711752343e54f3cf.json
ARGV: Replace ARGV.verbose? with Homebrew.args.verbose?
Library/Homebrew/system_command.rb
@@ -222,7 +222,7 @@ def plist end def warn_plist_garbage(garbage) - return unless ARGV.verbose? + return unless Homebrew.args.verbose? return unless garbage.match?(/\S/) opoo "Received non-XML output from #{Formatter.identifier(command.first)}:"
true
Other
Homebrew
brew
acde828a45c452b54413a3cd711752343e54f3cf.json
ARGV: Replace ARGV.verbose? with Homebrew.args.verbose?
Library/Homebrew/test/rubocops/lines_spec.rb
@@ -604,7 +604,7 @@ class Foo < Formula desc "foo" url 'https://brew.sh/foo-1.0.tgz' def install - verbose = ARGV.verbose? + verbose = Homebrew.args.verbose? end end RUBY
true
Other
Homebrew
brew
acde828a45c452b54413a3cd711752343e54f3cf.json
ARGV: Replace ARGV.verbose? with Homebrew.args.verbose?
Library/Homebrew/test/system_command_result_spec.rb
@@ -120,7 +120,7 @@ context "when verbose" do before do - allow(ARGV).to receive(:verbose?).and_return(true) + allow(Homebrew.args).to receive(:verbose?).and_return(true) end it "warns about garbage" do @@ -144,7 +144,7 @@ context "when verbose" do ...
true
Other
Homebrew
brew
acde828a45c452b54413a3cd711752343e54f3cf.json
ARGV: Replace ARGV.verbose? with Homebrew.args.verbose?
Library/Homebrew/utils.rb
@@ -35,7 +35,7 @@ def _system(cmd, *args, **options) end def system(cmd, *args, **options) - if ARGV.verbose? + if Homebrew.args.verbose? puts "#{cmd} #{args * " "}".gsub(RUBY_PATH, "ruby") .gsub($LOAD_PATH.join(File::PATH_SEPARATOR).to_s, "$LOAD_PATH") end @@...
true
Other
Homebrew
brew
acde828a45c452b54413a3cd711752343e54f3cf.json
ARGV: Replace ARGV.verbose? with Homebrew.args.verbose?
Library/Homebrew/utils/curl.rb
@@ -34,7 +34,7 @@ def curl_args(*extra_args, show_output: false, user_agent: :default) unless show_output args << "--fail" - args << "--progress-bar" unless ARGV.verbose? + args << "--progress-bar" unless Homebrew.args.verbose? args << "--verbose" if ENV["HOMEBREW_CURL_VERBOSE"] args << "--sil...
true
Other
Homebrew
brew
a1102f253c71fb48c3af566b2fe02619c0ed31eb.json
Remove checks to variable that is not set anywhere
Library/Homebrew/utils/ruby.sh
@@ -46,10 +46,7 @@ setup-ruby-path() { ruby_version_new_enough="$("$HOMEBREW_RUBY_PATH" --enable-frozen-string-literal --disable=gems,did_you_mean,rubyopt -rrubygems -e "puts Gem::Version.new(RUBY_VERSION.to_s.dup) >= Gem::Version.new('$minimum_ruby_version')")" fi - if [[ -n"$HOMEBREW_MACOS_SYST...
false
Other
Homebrew
brew
027cc685348b65b601b45898dbce8ad171579dde.json
Add condition to check if ruby version is < 2.7
Library/Homebrew/utils/ruby.sh
@@ -6,6 +6,7 @@ setup-ruby-path() { # When bumping check if HOMEBREW_MACOS_SYSTEM_RUBY_NEW_ENOUGH (in brew.sh) # also needs to be changed. local minimum_ruby_version="2.6.3" + local maximum_ruby_version="2.7.0" vendor_dir="$HOMEBREW_LIBRARY/Homebrew/vendor" vendor_ruby_current_version="$vendor_dir/por...
false
Other
Homebrew
brew
c65b3f3f13f91682d3b136387028cd3a4c782615.json
cmd/gist-logs: Fix bug with parsing of command-line arguments - A user reported the following error when running `brew gist-logs`, reproducible with any formula: ``` $ brew gist-logs rustup-init Error: undefined method `length' for nil:NilClass Please report this bug: https://docs.brew.sh/Troubleshooting /home/linu...
Library/Homebrew/cmd/gist-logs.rb
@@ -33,8 +33,6 @@ def gist_logs_args end def gistify_logs(f) - gist_logs_args.parse - files = load_logs(f.logs) build_time = f.logs.ctime timestamp = build_time.strftime("%Y-%m-%d_%H-%M-%S") @@ -142,6 +140,8 @@ def create_issue(repo, title, body) end def gist_logs + gist_logs_args.p...
false
Other
Homebrew
brew
4babdf2a0f620a8886caeec32704fe3a0e9703a4.json
postinstall: use arguments from main command.
Library/Homebrew/postinstall.rb
@@ -7,17 +7,10 @@ require "fcntl" require "socket" require "cli/parser" - -def postinstall_args - Homebrew::CLI::Parser.new do - switch :force - switch :verbose - switch :debug - end -end +require "cmd/postinstall" begin - postinstall_args.parse + Homebrew.postinstall_args.parse error_pipe = UNIXS...
false
Other
Homebrew
brew
eadf17881d4210a593aaad3db4ea793c13ca66e6.json
Homebrew/test.rb: Reuse `test_args` method
Library/Homebrew/dev-cmd/test.rb
@@ -8,31 +8,33 @@ module Homebrew module_function - def test_args - Homebrew::CLI::Parser.new do - usage_banner <<~EOS - `test` [<options>] <formula> - - Run the test method provided by an installed formula. - There is no standard output or return code, but generally it should notify...
true
Other
Homebrew
brew
eadf17881d4210a593aaad3db4ea793c13ca66e6.json
Homebrew/test.rb: Reuse `test_args` method
Library/Homebrew/test.rb
@@ -9,20 +9,13 @@ require "formula_assertions" require "fcntl" require "socket" -require "cli/parser" - -def test_args - Homebrew::CLI::Parser.new do - switch :force - switch :verbose - switch :debug - end -end +require "dev-cmd/test" TEST_TIMEOUT_SECONDS = 5 * 60 begin - test_args.parse + Homebre...
true
Other
Homebrew
brew
2f39057243dcfc71d16415bf8005d3f37e0ea41a.json
Improve handling of *_GIT_REMOTE env vars - Output a message whenever a non-default remote is set. - Ensure that `CoreTap.instance.install` uses the right remote.
Library/Homebrew/cmd/update.sh
@@ -30,6 +30,10 @@ git_init_if_necessary() { trap '{ rm -rf .git; exit 1; }' EXIT git init git config --bool core.autocrlf false + if [[ "$HOMEBREW_DEFAULT_BREW_GIT_REMOTE" != "$HOMEBREW_BREW_GIT_REMOTE" ]] + then + echo "HOMEBREW_BREW_GIT_REMOTE set: using $HOMEBREW_BREW_GIT_REMOTE for Homebr...
true
Other
Homebrew
brew
2f39057243dcfc71d16415bf8005d3f37e0ea41a.json
Improve handling of *_GIT_REMOTE env vars - Output a message whenever a non-default remote is set. - Ensure that `CoreTap.instance.install` uses the right remote.
Library/Homebrew/tap.rb
@@ -648,6 +648,15 @@ def self.ensure_installed! safe_system HOMEBREW_BREW_FILE, "tap", instance.name end + def install(options = {}) + if HOMEBREW_CORE_GIT_REMOTE != default_remote + puts "HOMEBREW_CORE_GIT_REMOTE set: using #{HOMEBREW_CORE_GIT_REMOTE} " \ + "for Homebrew/core Git remote UR...
true
Other
Homebrew
brew
779304df68a5b49387a86bc3a12fc05a3201678b.json
audit: add "homebrew/core" for relevant checks
Library/Homebrew/dev-cmd/audit.rb
@@ -219,7 +219,7 @@ def initialize(formula, options = {}) @except = options[:except] # Accept precomputed style offense results, for efficiency @style_offenses = options[:style_offenses] - # Allow the formula tap to be set as `core`, for testing purposes + # Allow the formula tap to be se...
true
Other
Homebrew
brew
779304df68a5b49387a86bc3a12fc05a3201678b.json
audit: add "homebrew/core" for relevant checks
Library/Homebrew/rubocops/lines.rb
@@ -163,7 +163,8 @@ def audit_formula(_node, _class_node, _parent_class_node, body_node) return unless formula_tap == "homebrew-core" find_method_with_args(body_node, :depends_on, "mpich") do - problem "Use 'depends_on \"open-mpi\"' instead of '#{@offensive_node.source}'." + ...
true
Other
Homebrew
brew
779304df68a5b49387a86bc3a12fc05a3201678b.json
audit: add "homebrew/core" for relevant checks
Library/Homebrew/rubocops/options.rb
@@ -10,8 +10,8 @@ class Options < FormulaCop DEPRECATION_MSG = "macOS has been 64-bit only since 10.6 so 32-bit options are deprecated." UNI_DEPRECATION_MSG = "macOS has been 64-bit only since 10.6 so universal options are deprecated." - DEP_OPTION = "Formulae should not use `deprecated_optio...
true
Other
Homebrew
brew
779304df68a5b49387a86bc3a12fc05a3201678b.json
audit: add "homebrew/core" for relevant checks
Library/Homebrew/rubocops/text.rb
@@ -17,7 +17,7 @@ def audit_formula(_node, _class_node, _parent_class_node, body_node) end if formula_tap == "homebrew-core" && (depends_on?("veclibfort") || depends_on?("lapack")) - problem "Formulae should use OpenBLAS as the default serial linear algebra library." + prob...
true
Other
Homebrew
brew
779304df68a5b49387a86bc3a12fc05a3201678b.json
audit: add "homebrew/core" for relevant checks
Library/Homebrew/rubocops/urls.rb
@@ -234,8 +234,8 @@ def audit_formula(_node, _class_node, _parent_class_node, body_node) next if BINARY_FORMULA_URLS_WHITELIST.include?(@formula_name) next if BINARY_URLS_WHITELIST.include?(url) - problem "#{url} looks like a binary package, not a source archive. " \ - ...
true
Other
Homebrew
brew
779304df68a5b49387a86bc3a12fc05a3201678b.json
audit: add "homebrew/core" for relevant checks
Library/Homebrew/test/dev-cmd/audit_spec.rb
@@ -569,7 +569,7 @@ class FooAT11 < Formula fa.audit_versioned_keg_only expect(fa.problems.first) - .to match("Versioned formulae should use `keg_only :versioned_formula`") + .to match("Versioned formulae in homebrew/core should use `keg_only :versioned_formula`") end ...
true
Other
Homebrew
brew
779304df68a5b49387a86bc3a12fc05a3201678b.json
audit: add "homebrew/core" for relevant checks
Library/Homebrew/test/rubocops/lines_spec.rb
@@ -289,7 +289,7 @@ class Foo < Formula desc "foo" url 'https://brew.sh/foo-1.0.tgz' depends_on "mpich" - ^^^^^^^^^^^^^^^^^^ Use 'depends_on "open-mpi"' instead of 'depends_on "mpich"'. + ^^^^^^^^^^^^^^^^^^ Formulae in homebrew/core should use 'depends_on "open-mpi"' i...
true
Other
Homebrew
brew
779304df68a5b49387a86bc3a12fc05a3201678b.json
audit: add "homebrew/core" for relevant checks
Library/Homebrew/test/rubocops/options_spec.rb
@@ -52,7 +52,7 @@ class Foo < Formula class Foo < Formula url 'https://brew.sh/foo-1.0.tgz' deprecated_option "examples" => "with-examples" - ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Formulae should not use `deprecated_option` + ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^...
true
Other
Homebrew
brew
779304df68a5b49387a86bc3a12fc05a3201678b.json
audit: add "homebrew/core" for relevant checks
Library/Homebrew/test/rubocops/text_spec.rb
@@ -38,7 +38,7 @@ class Foo < Formula url "https://brew.sh/foo-1.0.tgz" homepage "https://brew.sh" depends_on "veclibfort" - ^^^^^^^^^^^^^^^^^^^^^^^ Formulae should use OpenBLAS as the default serial linear algebra library. + ^^^^^^^^^^^^^^^^^^^^^^^ Formulae in homebre...
true
Other
Homebrew
brew
779304df68a5b49387a86bc3a12fc05a3201678b.json
audit: add "homebrew/core" for relevant checks
Library/Homebrew/test/rubocops/urls_spec.rb
@@ -145,13 +145,13 @@ }, { "url" => "https://brew.sh/example-darwin.x86_64.tar.gz", "msg" => "https://brew.sh/example-darwin.x86_64.tar.gz looks like a binary package, " \ - "not a source archive. Homebrew/homebrew-core is source-only.", + "...
true
Other
Homebrew
brew
4efc1276b3d6594338b34bc53701f74b9d4214b7.json
dev-cmd/audit: make git audit only --new-formula only. Useful in e.g. https://github.com/Homebrew/homebrew-core/pull/46550 to avoid repeatedly triggering a failing audit.
Library/Homebrew/dev-cmd/audit.rb
@@ -407,7 +407,7 @@ def audit_deps problem "Dependency #{dep} does not define option #{opt.name.inspect}" end - problem "Don't use git as a dependency (it's always available)" if dep.name == "git" + problem "Don't use git as a dependency (it's always available)" if @new_formu...
false
Other
Homebrew
brew
03028d57cec069ff9f783245ef814ec1b7ca268e.json
Dockerfile: install tzdata apt package
Dockerfile
@@ -20,6 +20,7 @@ RUN apt-get update \ patch \ sudo \ uuid-runtime \ + tzdata \ && rm -rf /var/lib/apt/lists/* RUN localedef -i en_US -f UTF-8 en_US.UTF-8 \
false
Other
Homebrew
brew
674259d691ef2380595539d0387030892e215917.json
extend/ARGV: remove unused HOMEBREW_BUILD_BOTTLE.
Library/Homebrew/extend/ARGV.rb
@@ -98,7 +98,7 @@ def build_universal? end def build_bottle? - include?("--build-bottle") || !ENV["HOMEBREW_BUILD_BOTTLE"].nil? + include?("--build-bottle") end def bottle_arch
false
Other
Homebrew
brew
c92a3d3f84ff9dc1a2c566e9d5fd5a21cf2e3bee.json
virtualenv_install_with_resources: add python@3.8 handling
Library/Homebrew/language/python.rb
@@ -153,7 +153,8 @@ def needs_python?(python) def virtualenv_install_with_resources(options = {}) python = options[:using] if python.nil? - wanted = %w[python python@2 python2 python3 python@3 pypy pypy3].select { |py| needs_python?(py) } + pythons = %w[python python@2 python2...
false
Other
Homebrew
brew
4e3a846439da12c0327df8ba57cb0c71f9123137.json
Add vale linting as a CI step - So that people know when the docs they've written violate our style guides.
.github/workflows/tests.yml
@@ -130,6 +130,12 @@ jobs: export PATH="/home/linuxbrew/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin" brew readall --aliases + - name: Run vale for docs linting + run: | + export PATH="/home/linuxbrew/.linuxbrew/bin:/usr/local/bin:/usr/bin:/bin" + brew install vale + vale...
false
Other
Homebrew
brew
3771a607204f3670155bbb29c2ccd497110f4797.json
docs: Fix typo in Homebrew/linuxbrew-core repo name
docs/Homebrew-linuxbrew-core-Maintainer-Guide.md
@@ -1,4 +1,4 @@ -# Homebrew linuxbrew-core Maintainer Guide +# Homebrew/linuxbrew-core Maintainer Guide ## Merging formulae updates from Homebrew/homebrew-core
false
Other
Homebrew
brew
6a200cb88adaf5dc3850569b7121f79956bfc1fd.json
docs: Fix double-spacing after full stop issues
docs/Formula-Cookbook.md
@@ -732,9 +732,9 @@ Homebrew provides two formula DSL methods for launchd plist files: Homebrew has multiple levels of environment variable filtering which affects variables available to formulae. -Firstly, the overall environment in which Homebrew runs is filtered to avoid environment contamination breaking from-...
false
Other
Homebrew
brew
de622a2a2135308f588dec49221324182c02c455.json
Exclude .vale.ini from .gitignore - Without this, vale won't correctly detect where the styles are.
.gitignore
@@ -154,6 +154,7 @@ !/.editorconfig !/.gitignore !/.yardopts +!/.vale.ini !/CHANGELOG.md !/CONTRIBUTING.md !/Dockerfile
true
Other
Homebrew
brew
de622a2a2135308f588dec49221324182c02c455.json
Exclude .vale.ini from .gitignore - Without this, vale won't correctly detect where the styles are.
.vale.ini
@@ -0,0 +1,4 @@ +StylesPath = ./docs/vale-styles + +[*.md] +BasedOnStyles = Homebrew
true
Other
Homebrew
brew
2a5344868533856f94e015cfde1ab7497728baa0.json
Add Vale linting for our docs - I noticed that another open source project had taken the Homebrew style guide and made it into [Vale linting rules](https://github.com/testthedocs/vale-styles/tree/master/Homebrew). This copies them into here, so that we can make use of them. Thanks! - What use is a style guide if...
docs/_config.yml
@@ -7,6 +7,7 @@ exclude: - bin - CNAME - Gemfile* + - vale-styles - vendor plugins:
true
Other
Homebrew
brew
2a5344868533856f94e015cfde1ab7497728baa0.json
Add Vale linting for our docs - I noticed that another open source project had taken the Homebrew style guide and made it into [Vale linting rules](https://github.com/testthedocs/vale-styles/tree/master/Homebrew). This copies them into here, so that we can make use of them. Thanks! - What use is a style guide if...
docs/vale-styles/Homebrew/Abbreviations.yml
@@ -0,0 +1,12 @@ +--- +extends: substitution +message: Use '%s' +ignorecase: false +link: 'https://github.com/Homebrew/brew/blob/master/docs/Prose-Style-Guidelines.md#style-and-usage' +level: error +nonword: true +swap: + '\beg\b': e.g. + '\bie\b': i.e. + 'e\.g\.,': e.g. + 'i\.e\.,': i.e.
true
Other
Homebrew
brew
2a5344868533856f94e015cfde1ab7497728baa0.json
Add Vale linting for our docs - I noticed that another open source project had taken the Homebrew style guide and made it into [Vale linting rules](https://github.com/testthedocs/vale-styles/tree/master/Homebrew). This copies them into here, so that we can make use of them. Thanks! - What use is a style guide if...
docs/vale-styles/Homebrew/OxfordComma.yml
@@ -0,0 +1,8 @@ +--- +extends: existence +message: 'No Oxford commas!' +link: 'https://github.com/Homebrew/brew/blob/master/docs/Prose-Style-Guidelines.md#typographical-conventions' +scope: sentence +level: warning +tokens: + - '(?:[^,]+,){1,}\s\w+,\sand'
true
Other
Homebrew
brew
2a5344868533856f94e015cfde1ab7497728baa0.json
Add Vale linting for our docs - I noticed that another open source project had taken the Homebrew style guide and made it into [Vale linting rules](https://github.com/testthedocs/vale-styles/tree/master/Homebrew). This copies them into here, so that we can make use of them. Thanks! - What use is a style guide if...
docs/vale-styles/Homebrew/Pronouns.yml
@@ -0,0 +1,15 @@ +--- +extends: existence +message: Avoid gender-specific language when not necessary. +link: 'https://github.com/Homebrew/brew/blob/master/docs/Prose-Style-Guidelines.md#personal-pronouns' +level: warning +ignorecase: true +tokens: + - him + - her + - she + - he + - his + - hers + - himself + -...
true
Other
Homebrew
brew
2a5344868533856f94e015cfde1ab7497728baa0.json
Add Vale linting for our docs - I noticed that another open source project had taken the Homebrew style guide and made it into [Vale linting rules](https://github.com/testthedocs/vale-styles/tree/master/Homebrew). This copies them into here, so that we can make use of them. Thanks! - What use is a style guide if...
docs/vale-styles/Homebrew/README.md
@@ -0,0 +1 @@ +Based on Homebrew's [Prose Style Guidelines](http://docs.brew.sh/Prose-Style-Guidelines.html).
true
Other
Homebrew
brew
2a5344868533856f94e015cfde1ab7497728baa0.json
Add Vale linting for our docs - I noticed that another open source project had taken the Homebrew style guide and made it into [Vale linting rules](https://github.com/testthedocs/vale-styles/tree/master/Homebrew). This copies them into here, so that we can make use of them. Thanks! - What use is a style guide if...
docs/vale-styles/Homebrew/Spacing.yml
@@ -0,0 +1,9 @@ +--- +extends: existence +message: "'%s' should have one space." +link: 'https://github.com/Homebrew/brew/blob/master/docs/Prose-Style-Guidelines.md#typographical-conventions' +level: error +nonword: true +tokens: + - '[a-z][.?!][A-Z]' + - '[.?!] {2,}[A-Z]'
true
Other
Homebrew
brew
2a5344868533856f94e015cfde1ab7497728baa0.json
Add Vale linting for our docs - I noticed that another open source project had taken the Homebrew style guide and made it into [Vale linting rules](https://github.com/testthedocs/vale-styles/tree/master/Homebrew). This copies them into here, so that we can make use of them. Thanks! - What use is a style guide if...
docs/vale-styles/Homebrew/Terms.yml
@@ -0,0 +1,9 @@ +--- +extends: substitution +message: Use '%s' instead of '%s'. +link: 'https://github.com/Homebrew/brew/blob/master/docs/Prose-Style-Guidelines.md#terminology-words-and-word-styling' +level: error +swap: + Pull Request: pull request + repo: repository + Rubocop: RuboCop
true
Other
Homebrew
brew
2a5344868533856f94e015cfde1ab7497728baa0.json
Add Vale linting for our docs - I noticed that another open source project had taken the Homebrew style guide and made it into [Vale linting rules](https://github.com/testthedocs/vale-styles/tree/master/Homebrew). This copies them into here, so that we can make use of them. Thanks! - What use is a style guide if...
docs/vale-styles/Homebrew/Titles.yml
@@ -0,0 +1,6 @@ +--- +extends: capitalization +message: "'%s' should be in sentence case" +level: warning +scope: heading +match: $sentence
true
Other
Homebrew
brew
2a5344868533856f94e015cfde1ab7497728baa0.json
Add Vale linting for our docs - I noticed that another open source project had taken the Homebrew style guide and made it into [Vale linting rules](https://github.com/testthedocs/vale-styles/tree/master/Homebrew). This copies them into here, so that we can make use of them. Thanks! - What use is a style guide if...
docs/vale-styles/Homebrew/Trademarks.yml
@@ -0,0 +1,12 @@ +--- +extends: existence +message: 'No "TM", ™, SM, ©, ®, or other explicit indicators of rights ownership or trademarks' +link: 'https://github.com/Homebrew/brew/blob/master/docs/Prose-Style-Guidelines.md#typographical-conventions' +level: error +nonword: true +tokens: + - \bTM\b + - ™ + - \bSM\b +...
true
Other
Homebrew
brew
90e830c19e1b37215b19af10c7d131f4c209c10d.json
cmd: add raises for invalid input
Library/Homebrew/cmd/info.rb
@@ -78,9 +78,12 @@ def info if args.json raise UsageError, "Invalid JSON version: #{args.json}" unless ["v1", true].include? args.json + raise UsageError, "This command's option requires a formula argument" if ARGV.named.empty? print_json elsif args.github? + raise UsageError, "Thi...
true
Other
Homebrew
brew
90e830c19e1b37215b19af10c7d131f4c209c10d.json
cmd: add raises for invalid input
Library/Homebrew/cmd/postinstall.rb
@@ -23,6 +23,8 @@ def postinstall_args def postinstall postinstall_args.parse + raise KegUnspecifiedError if args.remaining.empty? + ARGV.resolved_formulae.each do |f| ohai "Postinstalling #{f}" fi = FormulaInstaller.new(f)
true
Other
Homebrew
brew
90e830c19e1b37215b19af10c7d131f4c209c10d.json
cmd: add raises for invalid input
Library/Homebrew/cmd/reinstall.rb
@@ -47,6 +47,8 @@ def reinstall_args def reinstall reinstall_args.parse + raise FormulaUnspecifiedError if args.remaining.empty? + FormulaInstaller.prevent_build_flags unless DevelopmentTools.installed? Install.perform_preinstall_checks
true
Other
Homebrew
brew
90e830c19e1b37215b19af10c7d131f4c209c10d.json
cmd: add raises for invalid input
Library/Homebrew/cmd/switch.rb
@@ -14,46 +14,32 @@ def switch_args Symlink all of the specified <version> of <formula>'s installation into Homebrew's prefix. EOS - switch_option :verbose - switch_option :debug + switch :verbose + switch :debug end end def switch switch_args.parse - name = ar...
true
Other
Homebrew
brew
90e830c19e1b37215b19af10c7d131f4c209c10d.json
cmd: add raises for invalid input
Library/Homebrew/dev-cmd/bottle.rb
@@ -86,6 +86,7 @@ def bottle bottle_args.parse return merge if args.merge? + raise KegUnspecifiedError if args.remaining.empty? ensure_relocation_formulae_installed! unless args.skip_relocation? ARGV.resolved_formulae.each do |f| @@ -426,6 +427,7 @@ def bottle_formula(f) def merge w...
true
Other
Homebrew
brew
2f7c3afeb8b6cb76b35860ac195e3b35d18132f6.json
cmd: improve wording of messages, spacing
Library/Homebrew/cmd/analytics.rb
@@ -42,7 +42,7 @@ def analytics when "regenerate-uuid" Utils::Analytics.regenerate_uuid! else - raise UsageError + raise UsageError, "Unknown subcommand." end end end
true
Other
Homebrew
brew
2f7c3afeb8b6cb76b35860ac195e3b35d18132f6.json
cmd: improve wording of messages, spacing
Library/Homebrew/cmd/command.rb
@@ -20,12 +20,11 @@ def command_args def command command_args.parse - abort "This command requires a command argument" if args.remaining.empty? - cmd = HOMEBREW_INTERNAL_COMMAND_ALIASES.fetch(args.remaining.first, args.remaining.first) + raise UsageError, "This command requires a command argument" ...
true
Other
Homebrew
brew
2f7c3afeb8b6cb76b35860ac195e3b35d18132f6.json
cmd: improve wording of messages, spacing
Library/Homebrew/cmd/diy.rb
@@ -47,7 +47,6 @@ def diy def detect_version(path) version = path.version.to_s - raise "Couldn't determine version, set it with --version=<version>" if version.empty? version
true
Other
Homebrew
brew
2f7c3afeb8b6cb76b35860ac195e3b35d18132f6.json
cmd: improve wording of messages, spacing
Library/Homebrew/cmd/info.rb
@@ -61,22 +61,23 @@ def info_args def info info_args.parse + if args.days.present? - raise UsageError, "days must be one of #{VALID_DAYS.join(", ")}" unless VALID_DAYS.include?(args.days) + raise UsageError, "--days must be one of #{VALID_DAYS.join(", ")}" unless VALID_DAYS.include?(args.days) ...
true
Other
Homebrew
brew
2f7c3afeb8b6cb76b35860ac195e3b35d18132f6.json
cmd: improve wording of messages, spacing
Library/Homebrew/cmd/install.rb
@@ -101,6 +101,7 @@ def install end install_args.parse + raise FormulaUnspecifiedError if args.remaining.empty? if args.ignore_dependencies?
true
Other
Homebrew
brew
2f7c3afeb8b6cb76b35860ac195e3b35d18132f6.json
cmd: improve wording of messages, spacing
Library/Homebrew/cmd/link.rb
@@ -48,7 +48,10 @@ def link else keg.name end - puts "To relink: brew unlink #{keg.name} && brew link #{name_and_flag}" + puts <<~EOS + To relink: + brew unlink #{keg.name} && brew link #{name_and_flag} + EOS next end
true
Other
Homebrew
brew
2f7c3afeb8b6cb76b35860ac195e3b35d18132f6.json
cmd: improve wording of messages, spacing
Library/Homebrew/cmd/missing.rb
@@ -27,6 +27,7 @@ def missing_args def missing missing_args.parse + return unless HOMEBREW_CELLAR.exist? ff = if ARGV.named.empty?
true
Other
Homebrew
brew
2f7c3afeb8b6cb76b35860ac195e3b35d18132f6.json
cmd: improve wording of messages, spacing
Library/Homebrew/cmd/outdated.rb
@@ -41,7 +41,7 @@ def outdated ARGV.resolved_formulae end if args.json - raise UsageError, "invalid JSON version: #{args.json}" unless ["v1", true].include? args.json + raise UsageError, "Invalid JSON version: #{args.json}" unless ["v1", true].include? args.json outdated = print_outd...
true
Other
Homebrew
brew
2f7c3afeb8b6cb76b35860ac195e3b35d18132f6.json
cmd: improve wording of messages, spacing
Library/Homebrew/cmd/sh.rb
@@ -27,6 +27,7 @@ def sh_args def sh sh_args.parse + ENV.activate_extensions! if superenv?
true
Other
Homebrew
brew
2f7c3afeb8b6cb76b35860ac195e3b35d18132f6.json
cmd: improve wording of messages, spacing
Library/Homebrew/cmd/tap-info.rb
@@ -36,7 +36,7 @@ def tap_info end if args.json - raise UsageError, "invalid JSON version: #{args.json}" unless ["v1", true].include? args.json + raise UsageError, "Invalid JSON version: #{args.json}" unless ["v1", true].include? args.json print_tap_json(taps.sort_by(&:to_s)) else
true
Other
Homebrew
brew
2f7c3afeb8b6cb76b35860ac195e3b35d18132f6.json
cmd: improve wording of messages, spacing
Library/Homebrew/cmd/uninstall.rb
@@ -79,15 +79,15 @@ def uninstall if rack.directory? versions = rack.subdirs.map(&:basename) puts "#{keg.name} #{versions.to_sentence} #{"is".pluralize(versions.count)} still installed." - puts "Remove all versions with `brew uninstall --force #{keg.name}`." + ...
true
Other
Homebrew
brew
2f7c3afeb8b6cb76b35860ac195e3b35d18132f6.json
cmd: improve wording of messages, spacing
Library/Homebrew/cmd/untap.rb
@@ -19,11 +19,11 @@ def untap_args def untap untap_args.parse - raise "Usage is `brew untap <tap-name>`" if args.remaining.empty? + raise UsageError, "This command requires a tap argument from `brew tap`'s list" if args.remaining.empty? ARGV.named.each do |tapname| tap = Tap.fetch(tapname)...
true
Other
Homebrew
brew
2f7c3afeb8b6cb76b35860ac195e3b35d18132f6.json
cmd: improve wording of messages, spacing
Library/Homebrew/cmd/update.sh
@@ -314,7 +314,7 @@ homebrew-update() { *) odie <<EOS This command updates brew itself, and does not take formula names. -Use 'brew upgrade $@' instead. +Use \`brew upgrade $@\` instead. EOS ;; esac @@ -511,7 +511,7 @@ EOS if [[ "$UPSTREAM_SHA_HTTP_CODE" = "404" ]] ...
true
Other
Homebrew
brew
2f7c3afeb8b6cb76b35860ac195e3b35d18132f6.json
cmd: improve wording of messages, spacing
Library/Homebrew/dev-cmd/bottle.rb
@@ -219,7 +219,7 @@ def bottle_formula(f) return end - return ofail "Formula not installed with '--build-bottle': #{f.full_name}" unless Utils::Bottles.built_as? f + return ofail "Formula was not installed with --build-bottle: #{f.full_name}" unless Utils::Bottles.built_as? f return ofail "Fo...
true
Other
Homebrew
brew
2f7c3afeb8b6cb76b35860ac195e3b35d18132f6.json
cmd: improve wording of messages, spacing
Library/Homebrew/dev-cmd/bump-formula-pr.rb
@@ -504,6 +504,6 @@ def run_audit(formula, alias_rename, backup_file) formula.path.atomic_write(backup_file) FileUtils.mv alias_rename.last, alias_rename.first if alias_rename.present? - odie "brew audit failed!" + odie "`brew audit` failed!" end end
true
Other
Homebrew
brew
2f7c3afeb8b6cb76b35860ac195e3b35d18132f6.json
cmd: improve wording of messages, spacing
Library/Homebrew/dev-cmd/extract.rb
@@ -98,7 +98,7 @@ def extract extract_args.parse # Expect exactly two named arguments: formula and tap - raise UsageError if args.remaining.length != 2 + raise UsageError, "This command requires formula and tap arguments" if args.remaining.length != 2 if args.remaining.first !~ HOMEBREW_TAP_FOR...
true
Other
Homebrew
brew
2f7c3afeb8b6cb76b35860ac195e3b35d18132f6.json
cmd: improve wording of messages, spacing
Library/Homebrew/dev-cmd/mirror.rb
@@ -21,7 +21,7 @@ def mirror_args def mirror mirror_args.parse - odie "This command requires at least one formula argument!" if ARGV.named.empty? + raise FormulaUnspecifiedError if args.remaining.empty? bintray_user = ENV["HOMEBREW_BINTRAY_USER"] bintray_key = ENV["HOMEBREW_BINTRAY_KEY"]
true
Other
Homebrew
brew
2f7c3afeb8b6cb76b35860ac195e3b35d18132f6.json
cmd: improve wording of messages, spacing
Library/Homebrew/dev-cmd/pull.rb
@@ -70,7 +70,9 @@ def pull pull_args.parse - odie "This command requires at least one argument containing a URL or pull request number" if ARGV.named.empty? + if ARGV.named.empty? + raise UsageError, "This command requires at least one argument containing a URL or pull request number" + end ...
true
Other
Homebrew
brew
2f7c3afeb8b6cb76b35860ac195e3b35d18132f6.json
cmd: improve wording of messages, spacing
Library/Homebrew/dev-cmd/tap-new.rb
@@ -21,7 +21,7 @@ def tap_new_args def tap_new tap_new_args.parse - raise "A tap argument is required" if ARGV.named.empty? + raise UsageError, "This command requires a tap argument" if ARGV.named.empty? tap = Tap.fetch(ARGV.named.first) titleized_user = tap.user.dup
true
Other
Homebrew
brew
2f7c3afeb8b6cb76b35860ac195e3b35d18132f6.json
cmd: improve wording of messages, spacing
Library/Homebrew/dev-cmd/update-test.rb
@@ -88,7 +88,7 @@ def update_test chdir "update-test" do curdir = Pathname.new(Dir.pwd) - oh1 "Setup test environment..." + oh1 "Preparing test environment..." # copy Homebrew installation safe_system "git", "clone", "#{HOMEBREW_REPOSITORY}/.git", ".", "--branch"...
true
Other
Homebrew
brew
f0270a585cc37e5b84d70404bf434c6f69c7672d.json
desc/audit: remove messages obviated by new arg parser
Library/Homebrew/cmd/desc.rb
@@ -40,11 +40,7 @@ def desc search_type << :either if args.search search_type << :name if args.name search_type << :desc if args.description - if search_type.size > 1 - odie "Pick one, and only one, of -s/--search, -n/--name, or -d/--description." - elsif search_type.present? && ARGV.named...
true
Other
Homebrew
brew
f0270a585cc37e5b84d70404bf434c6f69c7672d.json
desc/audit: remove messages obviated by new arg parser
Library/Homebrew/dev-cmd/audit.rb
@@ -57,7 +57,8 @@ def audit_args switch :verbose switch :debug conflicts "--only", "--except" - conflicts "--only-cops", "--except-cops" + conflicts "--only-cops", "--except-cops", "--strict" + conflicts "--only-cops", "--except-cops", "--only" end end @@ -88,13 +89,6 @@ de...
true
Other
Homebrew
brew
28e62b52d1be4cff4c9d668779b6e7d361656c2a.json
cli_args: Remove cyclic dependency on ARGV
Library/Homebrew/cli/args.rb
@@ -5,13 +5,14 @@ module Homebrew module CLI class Args < OpenStruct - attr_accessor :processed_options + attr_accessor :processed_options, :args_parsed # undefine tap to allow --tap argument undef tap def initialize(argv:) super @argv = argv + @args_pa...
true
Other
Homebrew
brew
28e62b52d1be4cff4c9d668779b6e7d361656c2a.json
cli_args: Remove cyclic dependency on ARGV
Library/Homebrew/cli/parser.rb
@@ -13,7 +13,7 @@ class Parser attr_reader :processed_options, :hide_from_man_page def self.parse(args = ARGV, &block) - new(&block).parse(args) + new(args, &block).parse(args) end def self.global_options @@ -25,10 +25,11 @@ def self.global_options } end -...
true
Other
Homebrew
brew
3f348286f9cffb1534a3e81382406f3632044d1a.json
cmd/leaves: handle missing formula. Use `runtime_formula_dependencies` which does this for us. Fixes #6827.
Library/Homebrew/cmd/leaves.rb
@@ -22,16 +22,8 @@ def leaves leaves_args.parse installed = Formula.installed.sort - - deps_of_installed = installed.flat_map do |f| - f.runtime_dependencies.map do |dep| - dep.to_formula.full_name - rescue FormulaUnavailableError - dep.name - end - end - - leaves = ins...
false
Other
Homebrew
brew
bdf493b67354327c67303883f96ae08788632af7.json
change export two constants timing
Library/Homebrew/brew.sh
@@ -251,8 +251,6 @@ export HOMEBREW_MACOS_VERSION_NUMERIC export HOMEBREW_USER_AGENT export HOMEBREW_USER_AGENT_CURL export HOMEBREW_BOTTLE_DEFAULT_DOMAIN -export HOMEBREW_BREW_REMOTE -export HOMEBREW_DEFAULT_CORE_REMOTE if [[ -n "$HOMEBREW_MACOS" && -x "/usr/bin/xcode-select" ]] then @@ -389,6 +387,9 @@ else ...
false
Other
Homebrew
brew
497a160cda986510eefbbe324b15fe0d8f3c3942.json
cask version MAJOR_MINOR_PATCH_REGEX: allow any word character instead of only digits
Library/Homebrew/cask/dsl/version.rb
@@ -11,7 +11,7 @@ class Version < ::String DIVIDER_REGEX = /(#{DIVIDERS.keys.map { |v| Regexp.quote(v) }.join('|')})/.freeze - MAJOR_MINOR_PATCH_REGEX = /^(\d+)(?:\.(\d+)(?:\.(\d+))?)?/.freeze + MAJOR_MINOR_PATCH_REGEX = /^([^.,:]+)(?:\.([^.,:]+)(?:\.([^.,:]+))?)?/.freeze INVALID_CHARACTER...
true
Other
Homebrew
brew
497a160cda986510eefbbe324b15fe0d8f3c3942.json
cask version MAJOR_MINOR_PATCH_REGEX: allow any word character instead of only digits
Library/Homebrew/test/cask/dsl/version_spec.rb
@@ -85,50 +85,50 @@ describe "string manipulation helpers" do describe "#major" do include_examples "version expectations hash", :major, - "1" => "1", - "1.2" => "1", - "1.2.3" => "1", - "1.2.3_4-5" ...
true
Other
Homebrew
brew
a26390be05c5351d0b1cf75557a03c99aed5055f.json
Fix bug with printing pinned dependencies. Brew prints this error: ``` Error: undefined method `join' for nil:NilClass ``` because, in this code: ```ruby puts pinned_dependents.map do |f| "#{f.full_specified_name} #{f.pkg_version}" end.join(", ") ``` the block is passed to `puts` and not to `map`. `.join(",")` is ...
Library/Homebrew/cmd/upgrade.rb
@@ -239,9 +239,9 @@ def check_dependents(formulae_to_install) if pinned_dependents.present? plural = "dependent".pluralize(pinned_dependents.count) ohai "Not upgrading #{pinned_dependents.count} pinned #{plural}:" - puts pinned_dependents.map do |f| + puts(pinned_dependents.map do |f| ...
false
Other
Homebrew
brew
e6e0d1128c5a10d485852963fc6e1381aaa9baf0.json
create new envoronments
Library/Homebrew/brew.sh
@@ -251,6 +251,8 @@ export HOMEBREW_MACOS_VERSION_NUMERIC export HOMEBREW_USER_AGENT export HOMEBREW_USER_AGENT_CURL export HOMEBREW_BOTTLE_DEFAULT_DOMAIN +export HOMEBREW_BREW_REMOTE +export HOMEBREW_DEFAULT_CORE_REMOTE if [[ -n "$HOMEBREW_MACOS" && -x "/usr/bin/xcode-select" ]] then @@ -374,6 +376,19 @@ then ...
true
Other
Homebrew
brew
e6e0d1128c5a10d485852963fc6e1381aaa9baf0.json
create new envoronments
Library/Homebrew/cmd/update.sh
@@ -23,22 +23,14 @@ git() { } git_init_if_necessary() { - BREW_OFFICIAL_REMOTE="https://github.com/Homebrew/brew" - if [[ -n "$HOMEBREW_MACOS" ]] || [[ -n "$HOMEBREW_FORCE_HOMEBREW_ON_LINUX" ]] - then - CORE_OFFICIAL_REMOTE="https://github.com/Homebrew/homebrew-core" - else - CORE_OFFICIAL_REMOTE="https:/...
true
Other
Homebrew
brew
e6e0d1128c5a10d485852963fc6e1381aaa9baf0.json
create new envoronments
Library/Homebrew/diagnostic.rb
@@ -113,7 +113,7 @@ def examine_git_origin(repository_path, desired_origin) return if !Utils.git_available? || !repository_path.git? current_origin = repository_path.git_origin - + user_origins = [HOMEBREW_BREW_REMOTE, HOMEBREW_CORE_REMOTE] if current_origin.nil? <<~EOS ...
true
Other
Homebrew
brew
e6e0d1128c5a10d485852963fc6e1381aaa9baf0.json
create new envoronments
Library/Homebrew/global.rb
@@ -53,6 +53,9 @@ HOMEBREW_BOTTLE_DEFAULT_DOMAIN = ENV["HOMEBREW_BOTTLE_DEFAULT_DOMAIN"] HOMEBREW_BOTTLE_DOMAIN = ENV["HOMEBREW_BOTTLE_DOMAIN"] +HOMEBREW_BREW_REMOTE = ENV["HOMEBREW_BREW_REMOTE"] +HOMEBREW_CORE_REMOTE = ENV["HOMEBREW_CORE_REMOTE"] + HOMEBREW_DEFAULT_PREFIX = "/usr/local" LINUXBREW_DEFAULT_PREFIX ...
true
Other
Homebrew
brew
c1b00297e0556197a21155a44876e3422e8f4b1e.json
cask/cmd/style_spec: add rubocop test. This verifies the cask configuration hasn't been broken.
Library/Homebrew/test/cask/cmd/style_spec.rb
@@ -10,6 +10,36 @@ it_behaves_like "a command that handles invalid options" + describe ".rubocop" do + subject { described_class.rubocop(cask_path) } + + around do |example| + FileUtils.ln_s HOMEBREW_LIBRARY_PATH, HOMEBREW_LIBRARY/"Homebrew" + FileUtils.ln_s HOMEBREW_LIBRARY_PATH.parent/".ruboco...
false
Other
Homebrew
brew
2101de77cf4e629c1cffcf9a3fc6dad2fc379259.json
.rubocop_cask: fix RuboCop names. Broken since a RuboCop update.
Library/.rubocop_cask.yml
@@ -26,10 +26,10 @@ Layout/HashAlignment: EnforcedHashRocketStyle: table EnforcedColonStyle: table -Layout/IndentFirstArrayElement: +Layout/FirstArrayElementIndentation: EnforcedStyle: align_brackets -Layout/IndentFirstHashElement: +Layout/FirstHashElementIndentation: EnforcedStyle: align_braces # Ca...
false
Other
Homebrew
brew
9dc2997b9ab4157e70251b46a5d63d5a23d669bd.json
Add section for brew config & doctor output
.github/ISSUE_TEMPLATE/bug.md
@@ -36,3 +36,9 @@ about: "If you're sure it's reproducible and not just your machine: submit an is ## Step-by-step reproduction instructions (by running `brew` commands) <!-- replace me --> + +## Output of `brew config` and `brew doctor` commands + +<pre> +<!-- replace me --> +</pre>
false
Other
Homebrew
brew
90ec6bd500b676b7d68c0981a9cd6589707b0a33.json
Update document about Alternative Installation Symbolic link creation does not depend on current directory
docs/Homebrew-on-Linux.md
@@ -83,7 +83,7 @@ Extract or `git clone` Homebrew wherever you want. Use `/home/linuxbrew/.linuxbr ```sh git clone https://github.com/Homebrew/brew ~/.linuxbrew/Homebrew mkdir ~/.linuxbrew/bin -ln -s ../Homebrew/bin/brew ~/.linuxbrew/bin +ln -s ~/.linuxbrew/Homebrew/bin/brew ~/.linuxbrew/bin eval $(~/.linuxbrew/bin...
false
Other
Homebrew
brew
178a4e55c2ccc75773c2bf22d48158f9ec6432eb.json
Remove STANDARD_COMPILERS & references to it
Library/Homebrew/os/mac.rb
@@ -168,62 +168,6 @@ def preferred_arch end end - STANDARD_COMPILERS = { - "6.0" => { clang: "6.0", clang_build: 600 }, - "6.0.1" => { clang: "6.0", clang_build: 600 }, - "6.1" => { clang: "6.0", clang_build: 600 }, - "6.1.1" => { clang: "6.0", clang_build: 600 }, - "6....
true
Other
Homebrew
brew
178a4e55c2ccc75773c2bf22d48158f9ec6432eb.json
Remove STANDARD_COMPILERS & references to it
docs/Xcode.md
@@ -4,10 +4,6 @@ Homebrew supports and recommends the latest Xcode and/or Command Line Tools available for your platform (see `OS::Mac::Xcode.latest_version` and `OS::Mac::CLT.latest_version` in [`Library/Homebrew/os/mac/xcode.rb`](https://github.com/Homebrew/brew/blob/master/Library/Homebrew/os/mac/xcode.rb)). -##...
true
Other
Homebrew
brew
5ba5a2795eb7d8316410b8b851804c2f274b8fbe.json
Fix signature for forked_repo_info
Library/Homebrew/dev-cmd/bump-formula-pr.rb
@@ -341,7 +341,7 @@ def bump_formula_pr remote_url = Utils.popen_read("git remote get-url --push origin").chomp username = formula.tap.user else - remote_url, username = forked_repo_info(tap_full_name) + remote_url, username = forked_repo_info(formula, tap_full_name, bac...
false
Other
Homebrew
brew
e704bf7184bb8ab87acbb61dfabce3772bd326a0.json
audit: add libepoxy 1.5.4 to whitelist
Library/Homebrew/dev-cmd/audit.rb
@@ -756,6 +756,7 @@ def audit_specs gtk-mac-integration 2.1.3 gtk-doc 1.31 gcab 1.3 + libepoxy 1.5.4 ].each_slice(2).to_a.map do |formula, version| [formula, version.split(".")[0..1].join(".")] end
false
Other
Homebrew
brew
3a9f585ebbd1893a034575b49f64a200c5385365.json
Move more code to utils/analytics.
Library/Homebrew/cmd/analytics.rb
@@ -24,36 +24,23 @@ def analytics_args def analytics analytics_args.parse - config_file = HOMEBREW_REPOSITORY/".git/config" raise UsageError if args.remaining.size > 1 case args.remaining.first when nil, "state" - analyticsdisabled = - Utils.popen_read("git config --file=#{co...
true
Other
Homebrew
brew
3a9f585ebbd1893a034575b49f64a200c5385365.json
Move more code to utils/analytics.
Library/Homebrew/cmd/info.rb
@@ -89,7 +89,7 @@ def info def print_info if ARGV.named.empty? if args.analytics? - output_analytics + Utils::Analytics.output elsif HOMEBREW_CELLAR.exist? count = Formula.racks.length puts "#{count} #{"keg".pluralize(count)}, #{HOMEBREW_CELLAR.dup.abv}" @@ -104,13 ...
true
Other
Homebrew
brew
3a9f585ebbd1893a034575b49f64a200c5385365.json
Move more code to utils/analytics.
Library/Homebrew/cmd/update-report.rb
@@ -38,38 +38,27 @@ def update_report_args def update_report update_report_args.parse - HOMEBREW_REPOSITORY.cd do - analytics_message_displayed = - Utils.popen_read("git", "config", "--get", "homebrew.analyticsmessage").chomp == "true" - cask_analytics_message_displayed = - Utils.po...
true