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
3680c4667f1a47000c0152ca34bc3af7c41825ac.json
man: replace split header/footer with ERB template
Library/Homebrew/manpages/header.1.md
@@ -1,38 +0,0 @@ -brew(1) -- The missing package manager for OS X -=============================================== - -## SYNOPSIS - -`brew` `--version`<br> -`brew` <command> [`--verbose`|`-v`] [<options>] [<formula>] ... - -## DESCRIPTION - -Homebrew is the easiest and most flexible way to install the UNIX tools Apple ...
true
Other
Homebrew
brew
8e42077a8eeb827c3ffcdf08195239c8f82cb588.json
list: exclude zsh completions from unbrewed Since edf000e4cd30c3626ccc28c52ed32f2d84a200dd `zsh` completions are in `share/zsh/site-functions/_brew`, making this path a part of Homebrew. Hide it from `brew list --unbrewed` to reduce confusion/noise.
Library/Homebrew/cmd/list.rb
@@ -78,6 +78,7 @@ def list share/info/dir share/man/man1/brew.1 share/man/whatis + share/zsh/site-functions/_brew ] def list_unbrewed
false
Other
Homebrew
brew
e0264302c7cca1b6b472aba912bfe100489bd698.json
doc: remove outdated documentation for completion (#99) By the commit edf000e4cd30c3626ccc28c52ed32f2d84a200dd, bash and zsh completion scripts have been moved to `etc/bash_completion.d/brew` and `share/zsh/site-functions/_brew`, respectively. Now completion will be done automatically without any trick.
share/doc/homebrew/Tips-N'-Tricks.md
@@ -42,22 +42,6 @@ Use `brew info $FORMULA` to check what versions are installed but not currently ./configure --prefix=/usr/local/Cellar/foo/1.2 && make && make install && brew link foo ``` -## Command tab-completion - -### Bash -Add to your `~/.bashrc` or `~/.bash_profile` (whichever you have configured to run on...
false
Other
Homebrew
brew
f6d5ae2253813f868e8c2e0170f3260dcc5c25e4.json
analytics: add more documentation, Linuxbrew ID. (#98)
Library/Homebrew/utils/analytics.sh
@@ -12,7 +12,17 @@ setup-analytics() { HOMEBREW_ANALYTICS_USER_UUID="$(uuidgen)" echo "$HOMEBREW_ANALYTICS_USER_UUID" > "$HOMEBREW_ANALYTICS_USER_UUID_FILE" fi - export HOMEBREW_ANALYTICS_ID="UA-75654628-1" + + if [[ -n "$HOMEBREW_LINUX" ]] + then + # For Linuxbrew's analytics. + HOMEBREW_ANALYTIC...
true
Other
Homebrew
brew
f6d5ae2253813f868e8c2e0170f3260dcc5c25e4.json
analytics: add more documentation, Linuxbrew ID. (#98)
share/doc/homebrew/Analytics.md
@@ -1,8 +1,11 @@ -# Analytics +# Homebrew's Anonymous Aggregate User Behaviour Analytics Homebrew will shortly begin gathering anonymous aggregate user behaviour analytics and reporting these to Google Analytics. ## Why? -Homebrew is provided free of charge and run entirely by volunteers in their spare time. As a r...
true
Other
Homebrew
brew
b70e4341fe1a217d51f2bf75b5e2fdb1f4e602d9.json
style: use rubocop 0.39 (#85)
Library/Homebrew/cmd/style.rb
@@ -8,7 +8,7 @@ def style ARGV.formulae.map(&:path) end - Homebrew.install_gem_setup_path! "rubocop", "0.37.2" + Homebrew.install_gem_setup_path! "rubocop", "0.39" args = [ "--format", "simple", "--force-exclusion", "--config",
false
Other
Homebrew
brew
36b2af2e0f5a72f0eccdec0c929a89188dc0f0dc.json
superenv: fix formula prefix path to consider revisions Old logic doesn't include revision. This fixes that, and passes the whole formula prefix path to avoid duplicating the path-construction logic. Closes #80. Signed-off-by: Andrew Janke <andrew@apjanke.net>
Library/ENV/4.3/cc
@@ -15,7 +15,7 @@ require "set" class Cmd attr_reader :config, :prefix, :cellar, :opt, :tmpdir, :sysroot, :deps - attr_reader :archflags, :optflags, :keg_regex, :formula, :formula_version + attr_reader :archflags, :optflags, :keg_regex, :formula_prefix def initialize(arg0, args) @arg0 = arg0 @@ -29,8 ...
true
Other
Homebrew
brew
36b2af2e0f5a72f0eccdec0c929a89188dc0f0dc.json
superenv: fix formula prefix path to consider revisions Old logic doesn't include revision. This fixes that, and passes the whole formula prefix path to avoid duplicating the path-construction logic. Closes #80. Signed-off-by: Andrew Janke <andrew@apjanke.net>
Library/Homebrew/extend/ENV/super.rb
@@ -69,8 +69,7 @@ def setup_build_environment(formula = nil) self["HOMEBREW_LIBRARY_PATHS"] = determine_library_paths self["HOMEBREW_DEPENDENCIES"] = determine_dependencies unless formula.nil? - self["HOMEBREW_FORMULA"] = formula.name - self["HOMEBREW_FORMULA_VERSION"] = formula.version + ...
true
Other
Homebrew
brew
a8ed06ba741b627f48d2a9ec76f2aa62aec2c160.json
superenv: allow paths under self's keg Fixes build error in Homebrew/homebrew-core#100. Closes #63. Signed-off-by: Andrew Janke <andrew@apjanke.net>
Library/ENV/4.3/cc
@@ -15,7 +15,7 @@ require "set" class Cmd attr_reader :config, :prefix, :cellar, :opt, :tmpdir, :sysroot, :deps - attr_reader :archflags, :optflags, :keg_regex + attr_reader :archflags, :optflags, :keg_regex, :formula, :formula_version def initialize(arg0, args) @arg0 = arg0 @@ -29,6 +29,8 @@ class Cm...
true
Other
Homebrew
brew
a8ed06ba741b627f48d2a9ec76f2aa62aec2c160.json
superenv: allow paths under self's keg Fixes build error in Homebrew/homebrew-core#100. Closes #63. Signed-off-by: Andrew Janke <andrew@apjanke.net>
Library/Homebrew/extend/ENV/super.rb
@@ -68,6 +68,10 @@ def setup_build_environment(formula = nil) self["HOMEBREW_INCLUDE_PATHS"] = determine_include_paths self["HOMEBREW_LIBRARY_PATHS"] = determine_library_paths self["HOMEBREW_DEPENDENCIES"] = determine_dependencies + unless formula.nil? + self["HOMEBREW_FORMULA"] = formula.name + ...
true
Other
Homebrew
brew
f57739deda5a1ee099d1acab18384a130a9b95ad.json
travis: remove dead code
.travis.yml
@@ -1,5 +1,4 @@ -# Force OS X. -language: objective-c +language: ruby os: osx env: OSX=10.11 osx_image: xcode7.3 @@ -17,13 +16,6 @@ before_install: fi - git reset --hard $TRAVIS_COMMIT - git clean -qxdff - -install: - - if [ "$HOMEBREW_RUBY" = "1.8.7" ]; then - brew install homebrew/versions/ruby187...
false
Other
Homebrew
brew
0382134cf87321166fb8f03223e21b1d242ad7cb.json
brew.rb: adjust behavior for undocumented commands Don't exit with a non-zero status code just because an internal command happens to be undocumented. Also print the generic help in these cases to provide some help (including a reference to the man page).
Library/brew.rb
@@ -83,8 +83,9 @@ def require?(path) if help_text.nil? # External command, let it handle help by itself elsif help_text.empty? - puts "No help available for #{cmd}" - exit 1 + opoo "No help available for '#{cmd}' command." + puts ARGV.usage + exit 0 else ...
false
Other
Homebrew
brew
10edfcd218daf522db5a9d43a368572441dc0b5a.json
Fix documentation error Closes #10. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
Library/Homebrew/cmd/fetch.rb
@@ -1,6 +1,6 @@ #: * `fetch` [`--force`] [`-v`] [`--devel`|`--HEAD`] [`--deps`] [`--build-from-source`|`--force-bottle`] <formulae>: #: Download the source packages for the given <formulae>. -#: For tarballs, also print SHA-1 and SHA-256 checksums. +#: For tarballs, also print SHA-256 checksums. #: #: ...
true
Other
Homebrew
brew
10edfcd218daf522db5a9d43a368572441dc0b5a.json
Fix documentation error Closes #10. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
Library/Homebrew/manpages/brew.1.md
@@ -154,7 +154,7 @@ With `--verbose` or `-v`, many commands print extra debugging information. Note * `fetch` [`--force`] [`-v`] [`--devel`|`--HEAD`] [`--deps`] [`--build-from-source`|`--force-bottle`] <formulae>: Download the source packages for the given <formulae>. - For tarballs, also print SHA-1 and S...
true
Other
Homebrew
brew
10edfcd218daf522db5a9d43a368572441dc0b5a.json
Fix documentation error Closes #10. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
share/doc/homebrew/brew.1.html
@@ -123,7 +123,7 @@ <h2 id="COMMANDS">COMMANDS</h2> <dt class="flush"><code>edit</code></dt><dd><p>Open all of Homebrew for editing.</p></dd> <dt><code>edit</code> <var>formula</var></dt><dd><p>Open <var>formula</var> in the editor.</p></dd> <dt><code>fetch</code> [<code>--force</code>] [<code>-v</code>] [<code>--de...
true
Other
Homebrew
brew
10edfcd218daf522db5a9d43a368572441dc0b5a.json
Fix documentation error Closes #10. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
share/man/man1/brew.1
@@ -164,7 +164,7 @@ Open \fIformula\fR in the editor\. . .TP \fBfetch\fR [\fB\-\-force\fR] [\fB\-v\fR] [\fB\-\-devel\fR|\fB\-\-HEAD\fR] [\fB\-\-deps\fR] [\fB\-\-build\-from\-source\fR|\fB\-\-force\-bottle\fR] \fIformulae\fR -Download the source packages for the given \fIformulae\fR\. For tarballs, also print SHA\-1 ...
true
Other
Homebrew
brew
c8a2cd4e10e6ea1d4e10531fbbc1ef10b0741815.json
Generate the new man page
Library/Homebrew/manpages/brew.1.md
@@ -275,14 +275,14 @@ With `--verbose` or `-v`, many commands print extra debugging information. Note If provided, `--local` will symlink them into the user's `~/Applications` directory instead of the system directory. - * `ls`, `list` [`--full-name`]: + * `list`, `ls` [`--full-name`]: List all insta...
true
Other
Homebrew
brew
c8a2cd4e10e6ea1d4e10531fbbc1ef10b0741815.json
Generate the new man page
Library/Homebrew/manpages/footer.1.md
@@ -0,0 +1,231 @@ + + + * `--cache`: + Display Homebrew's download cache. See also `HOMEBREW_CACHE`. + + * `--cache` <formula>: + Display the file or directory used to cache <formula>. + + * `--cellar`: + Display Homebrew's Cellar path. *Default:* `$(brew --prefix)/Cellar`, or if + that directory doesn't...
true
Other
Homebrew
brew
c8a2cd4e10e6ea1d4e10531fbbc1ef10b0741815.json
Generate the new man page
Library/Homebrew/manpages/header.1.md
@@ -0,0 +1,38 @@ +brew(1) -- The missing package manager for OS X +=============================================== + +## SYNOPSIS + +`brew` `--version`<br> +`brew` <command> [`--verbose`|`-v`] [<options>] [<formula>] ... + +## DESCRIPTION + +Homebrew is the easiest and most flexible way to install the UNIX tools Apple ...
true
Other
Homebrew
brew
c8a2cd4e10e6ea1d4e10531fbbc1ef10b0741815.json
Generate the new man page
share/doc/homebrew/brew.1.html
@@ -221,10 +221,10 @@ <h2 id="COMMANDS">COMMANDS</h2> <p>If provided, <code>--local</code> will symlink them into the user's <code>~/Applications</code> directory instead of the system directory.</p></dd> -<dt><code>ls</code>, <code>list</code> [<code>--full-name</code>]</dt><dd><p>List all installed formulae. If <...
true
Other
Homebrew
brew
c8a2cd4e10e6ea1d4e10531fbbc1ef10b0741815.json
Generate the new man page
share/man/man1/brew.1
@@ -295,15 +295,15 @@ If no \fIformulae\fR are provided, all of them will have their apps symlinked\. If provided, \fB\-\-local\fR will symlink them into the user\'s \fB~/Applications\fR directory instead of the system directory\. . .TP -\fBls\fR, \fBlist\fR [\fB\-\-full\-name\fR] +\fBlist\fR, \fBls\fR [\fB\-\-full\...
true
Other
Homebrew
brew
b21f699ff2f1691c4f10422c640a9d392cf2d7a7.json
Implement the `brew help` command This is also used by `brew <cmd> --help`. The basic idea is to have the documentation as a top level comment in each command file. To find these comments, they have to be like this `#:`. This is also used by the `brew man` command to keep the documentation DRY, and for that there are...
Library/Homebrew/cmd/help.rb
@@ -39,4 +39,23 @@ def help def help_s HOMEBREW_HELP end + + def help_for_command(cmd) + cmd_path = if File.exist?(HOMEBREW_LIBRARY_PATH/"cmd/#{cmd}.sh") + HOMEBREW_LIBRARY_PATH/"cmd/#{cmd}.sh" + elsif ARGV.homebrew_developer? && File.exist?(HOMEBREW_LIBRARY_PATH/"dev-cmd/#{cmd}.sh") + HOMEB...
true
Other
Homebrew
brew
b21f699ff2f1691c4f10422c640a9d392cf2d7a7.json
Implement the `brew help` command This is also used by `brew <cmd> --help`. The basic idea is to have the documentation as a top level comment in each command file. To find these comments, they have to be like this `#:`. This is also used by the `brew man` command to keep the documentation DRY, and for that there are...
Library/Homebrew/cmd/man.rb
@@ -25,21 +25,35 @@ def man puts "Writing HTML fragments to #{DOC_PATH}" puts "Writing manpages to #{TARGET_PATH}" - Dir["#{SOURCE_PATH}/*.md"].each do |source_file| - args = %W[ - --pipe - --organization=Homebrew - --manual=brew - #{source_file} - ...
true
Other
Homebrew
brew
b21f699ff2f1691c4f10422c640a9d392cf2d7a7.json
Implement the `brew help` command This is also used by `brew <cmd> --help`. The basic idea is to have the documentation as a top level comment in each command file. To find these comments, they have to be like this `#:`. This is also used by the `brew man` command to keep the documentation DRY, and for that there are...
Library/Homebrew/cmd/update.sh
@@ -220,8 +220,7 @@ homebrew-update() { for option in "$@" do case "$option" in - # TODO: - `brew update --help` should display update subcommand help - --help) brew --help; exit $? ;; + --help) brew help update; exit $? ;; --verbose) HOMEBREW_VERBOSE=1 ;; --debug) HOMEBREW_DEBUG...
true
Other
Homebrew
brew
b21f699ff2f1691c4f10422c640a9d392cf2d7a7.json
Implement the `brew help` command This is also used by `brew <cmd> --help`. The basic idea is to have the documentation as a top level comment in each command file. To find these comments, they have to be like this `#:`. This is also used by the `brew man` command to keep the documentation DRY, and for that there are...
Library/brew.rb
@@ -69,15 +69,27 @@ def require?(path) # It should never affect external commands so they can handle usage # arguments themselves. - if empty_argv || (help_flag && (cmd.nil? || internal_cmd)) - # TODO: - `brew help cmd` should display subcommand help - require "cmd/help" - if empty_argv - $stderr...
true
Other
Homebrew
brew
b21f699ff2f1691c4f10422c640a9d392cf2d7a7.json
Implement the `brew help` command This is also used by `brew <cmd> --help`. The basic idea is to have the documentation as a top level comment in each command file. To find these comments, they have to be like this `#:`. This is also used by the `brew man` command to keep the documentation DRY, and for that there are...
Library/brew.sh
@@ -176,9 +176,9 @@ case "$HOMEBREW_COMMAND" in --config) HOMEBREW_COMMAND="config";; esac -if [[ -f "$HOMEBREW_LIBRARY/Homebrew/cmd/$HOMEBREW_COMMAND.sh" ]] ; then +if [[ -f "$HOMEBREW_LIBRARY/Homebrew/cmd/$HOMEBREW_COMMAND.sh" ]]; then HOMEBREW_BASH_COMMAND="$HOMEBREW_LIBRARY/Homebrew/cmd/$HOMEBREW_COMMAN...
true
Other
Homebrew
brew
116075dda9c6c8bffe06e16646ed9eb4d0ae7f8e.json
Remove advice on bad Python linking This is pathological and something that should be fixed in core, not by working around it. Closes https://github.com/Homebrew/legacy-homebrew/pull/45704.
share/doc/homebrew/Common-Issues.md
@@ -95,49 +95,6 @@ $ git clean -n # if this doesn't list anything that you want to keep, then $ git clean -f # this will remove untracked files ``` -### Python: `Segmentation fault: 11` on `import <some_python_module>` - -A `Segmentation fault: 11` is in many cases due to a different Python -executable used for bui...
false
Other
Homebrew
brew
eb137dc9248cf3b975b35fae2226c45d3dd9a0ab.json
Revert "diagnostic: improve check for 'install_name_tool'" This reverts commit 9f79c05656a44f926898774c6029025002bcd621. Restore check to continue to inspect `/usr/bin/install_name_tool`. See Homebrew/legacy-homebrew#50091 and Homebrew/legacy-homebrew#50509 for the full context and more details.
Library/Homebrew/diagnostic.rb
@@ -466,15 +466,13 @@ def check_for_stray_developer_directory def check_for_bad_install_name_tool return if MacOS.version < "10.9" - install_name_tool = OS::Mac.install_name_tool - libs = Pathname.new(install_name_tool).dynamically_linked_libraries + libs = Pathname.new("/usr/bin/...
false
Other
Homebrew
brew
1d9977b7c1954ee80407f23e85cb4eafe326fd6d.json
diagnostic: prefer guard clauses for readability Guard clauses instead of if/unless blocks make the checks easier to understand and reduce nesting, thus improving overall readability. This includes the following additional minor changes: - Make indentation of commands consistent inside diagnostic messages. - Fix min...
Library/Homebrew/diagnostic.rb
@@ -102,8 +102,10 @@ def send(method, *) # See https://github.com/Homebrew/homebrew/pull/9986 def check_path_for_trailing_slashes - bad_paths = ENV["PATH"].split(File::PATH_SEPARATOR).select { |p| p[-1..-1] == "/" } + all_paths = ENV["PATH"].split(File::PATH_SEPARATOR) + bad_paths =...
false
Other
Homebrew
brew
2ca97490afd02e104ee989baaab779199b36651b.json
brew.sh: fix HOMEBREW_OS_VERSION on Linux et al. On Linux (and other non-OS X platforms), `HOMEBREW_OS_VERSION` was *always* replaced with the product name, leading to less useful user agent. E.g., on a reasonably up-to-date Debian system: Linuxbrew/0.9.9 (Linux; unknown Linuxbrew) With this fix the user agent is i...
Library/brew.sh
@@ -93,7 +93,7 @@ then else HOMEBREW_PRODUCT="${HOMEBREW_SYSTEM}brew" [[ -n "$HOMEBREW_LINUX" ]] && HOMEBREW_OS_VERSION="$(lsb_release -sd 2>/dev/null)" - HOMEBREW_OS_VERSION="${HOMEBREW_PRODUCT:=$(uname -r)}" + : "${HOMEBREW_OS_VERSION:=$(uname -r)}" fi HOMEBREW_USER_AGENT="$HOMEBREW_PRODUCT/$HOMEBREW_VERSI...
false
Other
Homebrew
brew
d83cd56603bcf208ee7a245b7cf44809cfbc7fdc.json
brew.sh: avoid unnecessary 'cat' Bash can read directly from a file in its command substitution.
Library/brew.sh
@@ -202,7 +202,7 @@ then HOMEBREW_ANALYTICS_USER_UUID_FILE="$HOME/.homebrew_analytics_user_uuid" if [[ -r "$HOMEBREW_ANALYTICS_USER_UUID_FILE" ]] then - HOMEBREW_ANALYTICS_USER_UUID="$(cat "$HOMEBREW_ANALYTICS_USER_UUID_FILE")" + HOMEBREW_ANALYTICS_USER_UUID="$(<"$HOMEBREW_ANALYTICS_USER_UUID_FILE")" ...
false
Other
Homebrew
brew
3a99d8093ca444c1039691387809f914f9a4a17c.json
brew.sh: streamline setting HOMEBREW_{OSX,LINUX} For uses like this one, `case` is much more compact and easier to read.
Library/brew.sh
@@ -58,13 +58,10 @@ then fi HOMEBREW_SYSTEM="$(uname -s)" -if [[ "$HOMEBREW_SYSTEM" = "Darwin" ]] -then - HOMEBREW_OSX="1" -elif [[ "$HOMEBREW_SYSTEM" = "Linux" ]] -then - HOMEBREW_LINUX="1" -fi +case "$HOMEBREW_SYSTEM" in + Darwin) HOMEBREW_OSX="1";; + Linux) HOMEBREW_LINUX="1";; +esac if [[ -z "$HOMEBREW_R...
false
Other
Homebrew
brew
8ab2fb6868497023e369df939690af2a101ecafc.json
analytics: avoid unnecessary string interpolation
Library/Homebrew/utils/analytics.rb
@@ -18,7 +18,7 @@ def report_analytics(type, metadata={}) # https://developers.google.com/analytics/devguides/collection/protocol/v1/parameters system ENV["HOMEBREW_CURL"], "https://www.google-analytics.com/collect", "-d", "v=1", "--silent", "--max-time", "3", "--output", "/dev/null", - "--user-agent", "#...
false
Other
Homebrew
brew
1f8b6cb57677d96228627baf28ce18a394df4c1d.json
test-bot: add safety margin to output truncation size
Library/Homebrew/cmd/test-bot.rb
@@ -37,6 +37,8 @@ module Homebrew BYTES_IN_1_MEGABYTE = 1024*1024 + MAX_STEP_OUTPUT_SIZE = BYTES_IN_1_MEGABYTE - (200*1024) # margin of safety + HOMEBREW_TAP_REGEX = %r{^([\w-]+)/homebrew-([\w-]+)$} def ruby_has_encoding? @@ -997,14 +999,14 @@ def sanitize_output_for_xml(output) output = output....
false
Other
Homebrew
brew
ea38a7039552b27334efad63897bbc3ad2b7263c.json
prune: handle broken app symlinks Remove broken symlinks from `/Applications` and `~/Applications` that were previously created by `brew linkapps`, but are no longer valid because formulae were uninstalled or the provided apps have changed.
Library/Homebrew/cmd/prune.rb
@@ -1,5 +1,6 @@ require "keg" require "cmd/tap" +require "cmd/unlinkapps" module Homebrew def prune @@ -45,5 +46,7 @@ def prune print "and #{d} directories " if d > 0 puts "from #{HOMEBREW_PREFIX}" end unless ARGV.dry_run? + + unlinkapps_prune(:dry_run => ARGV.dry_run?, :quiet => true) ...
true
Other
Homebrew
brew
ea38a7039552b27334efad63897bbc3ad2b7263c.json
prune: handle broken app symlinks Remove broken symlinks from `/Applications` and `~/Applications` that were previously created by `brew linkapps`, but are no longer valid because formulae were uninstalled or the provided apps have changed.
Library/Homebrew/cmd/unlinkapps.rb
@@ -9,22 +9,30 @@ def unlinkapps private + def unlinkapps_prune(opts = {}) + opts = opts.merge(:prune => true) + unlinkapps_from_dir(linkapps_target(:local => false), opts) + unlinkapps_from_dir(linkapps_target(:local => true), opts) + end + def unlinkapps_from_dir(target_dir, opts = {}) retur...
true
Other
Homebrew
brew
ea38a7039552b27334efad63897bbc3ad2b7263c.json
prune: handle broken app symlinks Remove broken symlinks from `/Applications` and `~/Applications` that were previously created by `brew linkapps`, but are no longer valid because formulae were uninstalled or the provided apps have changed.
Library/Homebrew/manpages/brew.1.md
@@ -340,7 +340,9 @@ With `--verbose` or `-v`, many commands print extra debugging information. Note * `prune` [`--dry-run`]: Remove dead symlinks from the Homebrew prefix. This is generally not - needed, but can be useful when doing DIY installations. + needed, but can be useful when doing DIY installat...
true
Other
Homebrew
brew
ea38a7039552b27334efad63897bbc3ad2b7263c.json
prune: handle broken app symlinks Remove broken symlinks from `/Applications` and `~/Applications` that were previously created by `brew linkapps`, but are no longer valid because formulae were uninstalled or the provided apps have changed.
share/doc/homebrew/brew.1.html
@@ -267,7 +267,9 @@ <h2 id="COMMANDS">COMMANDS</h2> <dt><code>pin</code> <var>formulae</var></dt><dd><p>Pin the specified <var>formulae</var>, preventing them from being upgraded when issuing the <code>brew upgrade</code> command. See also <code>unpin</code>.</p></dd> <dt><code>prune</code> [<code>--dry-run</code>]<...
true
Other
Homebrew
brew
ea38a7039552b27334efad63897bbc3ad2b7263c.json
prune: handle broken app symlinks Remove broken symlinks from `/Applications` and `~/Applications` that were previously created by `brew linkapps`, but are no longer valid because formulae were uninstalled or the provided apps have changed.
share/man/man1/brew.1
@@ -365,7 +365,7 @@ Pin the specified \fIformulae\fR, preventing them from being upgraded when issui . .TP \fBprune\fR [\fB\-\-dry\-run\fR] -Remove dead symlinks from the Homebrew prefix\. This is generally not needed, but can be useful when doing DIY installations\. +Remove dead symlinks from the Homebrew prefix\. ...
true
Other
Homebrew
brew
37b817ed394986808d2fdb595c272ede7a67f20d.json
test-bot: fix access to relocated method Fix bug introduced in a2c23dfec569c6e73d90cb20c7d4c26cced258d5. Moving this method apparently made it inaccessible from `Homebrew::Step`.
Library/Homebrew/cmd/test-bot.rb
@@ -199,7 +199,7 @@ def run unless output.empty? - @output = fix_encoding!(output) + @output = Homebrew.fix_encoding!(output) puts @output if (failed? || @puts_output_on_success) && !verbose File.write(log_file_path, @output) if ARGV.include? "--keep-logs" end
false
Other
Homebrew
brew
a2c23dfec569c6e73d90cb20c7d4c26cced258d5.json
test-bot: fix undefined method error The method `fix_encoding!` is private to `Homebrew::Step` but is also required by the `Homebrew.sanitize_output_for_xml` method for truncating overly long logs. Move `fix_encoding!` into the `Homebrew` module to make it accessible from both this method and the `Homebrew::Step` clas...
Library/Homebrew/cmd/test-bot.rb
@@ -43,6 +43,24 @@ def ruby_has_encoding? String.method_defined?(:force_encoding) end + if ruby_has_encoding? + def fix_encoding!(str) + # Assume we are starting from a "mostly" UTF-8 string + str.force_encoding(Encoding::UTF_8) + return str if str.valid_encoding? + str.encode!(Encodin...
false
Other
Homebrew
brew
a9c0361a1d83374059fca73485643e89c2772331.json
audit: require plist_options when using plist Closes #19. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
Library/Homebrew/cmd/audit.rb
@@ -638,6 +638,10 @@ def audit_text problem "\"Formula.factory(name)\" is deprecated in favor of \"Formula[name]\"" end + if text =~ /def plist/ && text !~ /plist_options/ + problem "Please set plist_options when using a formula-defined plist." + end + if text =~ /system "npm", "install"/ ...
false
Other
Homebrew
brew
776a73da7c4b92c73dea3e5065ea4b2d9873f029.json
test_cmd_audit: add plist test
Library/Homebrew/test/test_cmd_audit.rb
@@ -173,6 +173,24 @@ class Foo < Formula fa.problems end + def test_audit_file_strict_plist_placement + fa = formula_auditor "foo", <<-EOS.undent, :strict => true + class Foo < Formula + url "https://example.com/foo-1.0.tgz" + + test do + assert_match "Dogs are terrific", she...
false
Other
Homebrew
brew
149334d88d18472dc218ab42791f90c19f53e838.json
audit: check plist placement
Library/Homebrew/cmd/audit.rb
@@ -187,6 +187,7 @@ def audit_file [/^ (go_)?resource/, "resource"], [/^ def install/, "install method"], [/^ def caveats/, "caveats method"], + [/^ (plist_options|def plist)/, "plist block"], [/^ test do/, ...
false
Other
Homebrew
brew
f8cdab7d8a11d05fb7048a3674d832f427930b83.json
Make new keep? superenv logic opt-in Closes #50425. Signed-off-by: Misty De Meo <mistydemeo@github.com>
Library/ENV/4.3/cc
@@ -201,6 +201,10 @@ class Cmd end def keep?(path) + # The logic in this method will eventually become the default, + # but is currently opt-in. + return keep_orig?(path) unless ENV["HOMEBREW_EXPERIMENTAL_FILTER_FLAGS_ON_DEPS"] + # first two paths: reject references to Cellar or opt paths # f...
true
Other
Homebrew
brew
f8cdab7d8a11d05fb7048a3674d832f427930b83.json
Make new keep? superenv logic opt-in Closes #50425. Signed-off-by: Misty De Meo <mistydemeo@github.com>
Library/Homebrew/cmd/test-bot.rb
@@ -856,6 +856,7 @@ def sanitize_ARGV_and_ENV ENV["HOMEBREW_SANDBOX"] = "1" ENV["HOMEBREW_NO_EMOJI"] = "1" ENV["HOMEBREW_FAIL_LOG_LINES"] = "150" + ENV["HOMEBREW_EXPERIMENTAL_FILTER_FLAGS_ON_DEPS"] = "1" if ENV["TRAVIS"] ARGV << "--verbose"
true
Other
Homebrew
brew
fa3c55aa650e815ce548e1276845171def2847f4.json
utils/analytics: fix usage of undefined variable.
Library/Homebrew/utils/analytics.rb
@@ -39,7 +39,7 @@ def report_analytics_event(category, action, label=analytics_anonymous_prefix_an def report_analytics_exception(exception, options={}) if exception.is_a? BuildError - report_analytics_event("BuildError", e.formula.full_name) + report_analytics_event("BuildError", exception.formula.full_nam...
false
Other
Homebrew
brew
c5cd206169c57609b1c6d2f4cff9e390b6350a27.json
brew.rb: report some exceptions.
Library/brew.rb
@@ -130,14 +130,17 @@ def require?(path) $stderr.puts # seemingly a newline is typical exit 130 rescue BuildError => e + report_analytics_exception(e) e.dump exit 1 rescue RuntimeError, SystemCallError => e + report_analytics_exception(e) raise if e.message.empty? onoe e $stderr.puts e.backtrac...
false
Other
Homebrew
brew
1238c65ba14831bc571cf01aead8fd10b916c837.json
utils: add analytics functions.
Library/Homebrew/utils.rb
@@ -5,6 +5,7 @@ require "utils/popen" require "utils/fork" require "utils/git" +require "utils/analytics" require "open-uri" class Tty
true
Other
Homebrew
brew
1238c65ba14831bc571cf01aead8fd10b916c837.json
utils: add analytics functions.
Library/Homebrew/utils/analytics.rb
@@ -0,0 +1,54 @@ + +def analytics_anonymous_prefix_and_os + @analytics_anonymous_prefix_and_os ||= begin + "#{OS_VERSION}, #{HOMEBREW_PREFIX.to_s.gsub(ENV["HOME"], "~")}" + end +end + +def report_analytics(type, metadata={}) + return unless ENV["HOMEBREW_ANALYTICS"] + + metadata_args = metadata.map do |key, valu...
true
Other
Homebrew
brew
eec323aed81c14db6fd519aa734394ffe1071db8.json
travis: fix rsync problem
.travis.yml
@@ -18,7 +18,7 @@ matrix: before_install: - export TRAVIS_COMMIT=$(git rev-parse --verify -q HEAD) - cd /usr/local - - sudo rm -rf /usr/local/.git/refs /usr/local/.git/packed-refs + - sudo rm -rf /usr/local/.git/refs /usr/local/.git/packed-refs /usr/local/Library - sudo rsync -az "$TRAVIS_BUILD_DIR/" /usr/l...
false
Other
Homebrew
brew
276a797d37fa057f935ba671bca04163389046f1.json
Update documentation after repository split.
.github/CONTRIBUTING.md
@@ -8,30 +8,4 @@ First time contributing to Homebrew? Read our [Code of Conduct](https://github.c * read [the Troubleshooting Checklist](https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Troubleshooting.md#troubleshooting) * open an issue on the formula's repository -### Submit a `1.2.3` version u...
true
Other
Homebrew
brew
276a797d37fa057f935ba671bca04163389046f1.json
Update documentation after repository split.
.github/ISSUE_TEMPLATE.md
@@ -8,13 +8,10 @@ _You can erase any parts of this template not applicable to your Issue._ ### Bug reports: -Please replace this line with a brief summary of your issue **AND** if reporting a build issue include the link from: +Please replace this line with a brief summary of your issue. -`brew gist-logs <formul...
true
Other
Homebrew
brew
276a797d37fa057f935ba671bca04163389046f1.json
Update documentation after repository split.
.github/PULL_REQUEST_TEMPLATE.md
@@ -1,18 +1,5 @@ -### All Submissions: - -- [ ] Have you followed the guidelines in our [Contributing](https://github.com/Homebrew/homebrew/blob/master/.github/CONTRIBUTING.md) document? -- [ ] Have you checked to ensure there aren't other open [Pull Requests](https://github.com/Homebrew/homebrew/pulls) for the same up...
true
Other
Homebrew
brew
276a797d37fa057f935ba671bca04163389046f1.json
Update documentation after repository split.
Library/Homebrew/README.md
@@ -3,6 +3,6 @@ This is the (partially) documented public API for Homebrew. The main class you should look at is the {Formula} class (and classes linked from there). That's the class that's used to create Homebrew formulae (i.e. package descriptions). Assume anything else you stumble upon is private. -You may also...
true
Other
Homebrew
brew
276a797d37fa057f935ba671bca04163389046f1.json
Update documentation after repository split.
Library/Homebrew/cmd/create.rb
@@ -129,8 +129,8 @@ def generate! end def template; <<-EOS.undent - # Documentation: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.md - # http://www.rubydoc.info/github/Homebrew/homebrew/master/Formula + # Documentation: https://github.com/Homebrew/...
true
Other
Homebrew
brew
276a797d37fa057f935ba671bca04163389046f1.json
Update documentation after repository split.
Library/Homebrew/cmd/help.rb
@@ -17,7 +17,7 @@ Brewing: brew create [URL [--no-fetch]] brew edit [FORMULA...] - https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.md + https://github.com/Homebrew/brew/blob/master/share/doc/homebrew/Formula-Cookbook.md Further help: man brew
true
Other
Homebrew
brew
276a797d37fa057f935ba671bca04163389046f1.json
Update documentation after repository split.
Library/Homebrew/cmd/tap-readme.rb
@@ -21,7 +21,7 @@ def tap_readme ``` ## Documentation - `brew help`, `man brew` or check [Homebrew's documentation](https://github.com/Homebrew/homebrew/tree/master/share/doc/homebrew#readme). + `brew help`, `man brew` or check [Homebrew's documentation](https://github.com/Homebrew/brew/tree/master/sh...
true
Other
Homebrew
brew
276a797d37fa057f935ba671bca04163389046f1.json
Update documentation after repository split.
Library/Homebrew/formula.rb
@@ -1697,7 +1697,7 @@ def mirror(val) # and you haven't passed or previously used any options on this formula. # # If you maintain your own repository, you can add your own bottle links. - # https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Bottles.md + # https://github.com/Homebr...
true
Other
Homebrew
brew
276a797d37fa057f935ba671bca04163389046f1.json
Update documentation after repository split.
Library/Homebrew/manpages/brew.1.md
@@ -88,7 +88,7 @@ With `--verbose` or `-v`, many commands print extra debugging information. Note and version, but if it fails, you'll have to make your own template. The `wget` formula serves as a simple example. For the complete API have a look at - <http://www.rubydoc.info/github/Homebrew/homebrew/mas...
true
Other
Homebrew
brew
276a797d37fa057f935ba671bca04163389046f1.json
Update documentation after repository split.
Library/Homebrew/os/mac/xcode.rb
@@ -105,7 +105,7 @@ def uncached_version when 2327..2333 then "3.2.5" when 2335 # this build number applies to 3.2.6, 4.0 and 4.1 - # https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Xcode.md + # https://github.com/Homebrew/brew/blob/master/share/doc/hom...
true
Other
Homebrew
brew
276a797d37fa057f935ba671bca04163389046f1.json
Update documentation after repository split.
Library/Homebrew/test/test_cmd_info.rb
@@ -4,10 +4,10 @@ class InfoCommandTests < Homebrew::TestCase def test_github_remote_path - remote = "https://github.com/Homebrew/homebrew" - assert_equal "https://github.com/Homebrew/homebrew/blob/master/Formula/git.rb", + remote = "https://github.com/Homebrew/homebrew-core" + assert_equal "https://g...
true
Other
Homebrew
brew
276a797d37fa057f935ba671bca04163389046f1.json
Update documentation after repository split.
README.md
@@ -7,12 +7,12 @@ Features, usage and installation instructions are [summarised on the homepage](h 3. Or use `brew search --desc` to browse packages from the command line. ## More Documentation -`brew help`, `man brew` or check [our documentation](https://github.com/Homebrew/homebrew/tree/master/share/doc/homebrew#...
true
Other
Homebrew
brew
276a797d37fa057f935ba671bca04163389046f1.json
Update documentation after repository split.
share/doc/homebrew/Brew-Test-Bot-For-Core-Contributors.md
@@ -7,9 +7,9 @@ There are two types of Jenkins jobs you will interact with: This job automatically builds any pull requests submitted to Homebrew/homebrew-core. On success or failure it updates the pull request status (see more details on the [main Brew Test Bot wiki page](Brew-Test-Bot.md)). On a successful build it ...
true
Other
Homebrew
brew
276a797d37fa057f935ba671bca04163389046f1.json
Update documentation after repository split.
share/doc/homebrew/Brew-Test-Bot.md
@@ -4,7 +4,7 @@ by [our Kickstarter in 2013](https://www.kickstarter.com/projects/homebrew/brew- It comprises of four Mac Minis running in a data centre in England which host [a Jenkins instance at http://bot.brew.sh](http://bot.brew.sh) and run the -[`brew-test-bot.rb`](https://github.com/Homebrew/homebrew/blob/ma...
true
Other
Homebrew
brew
276a797d37fa057f935ba671bca04163389046f1.json
Update documentation after repository split.
share/doc/homebrew/Common-Issues.md
@@ -76,7 +76,7 @@ When running `brew upgrade`, you see something like this: $ brew upgrade Error: undefined method `include?' for nil:NilClass Please report this bug: - https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Troubleshooting.md + https://github.com/Homebrew/brew/blob/master/share/do...
true
Other
Homebrew
brew
276a797d37fa057f935ba671bca04163389046f1.json
Update documentation after repository split.
share/doc/homebrew/External-Commands.md
@@ -95,4 +95,4 @@ These commands have been contributed by Homebrew users but are not included in t > ``` ## SEE ALSO -Homebrew Docs: <https://github.com/Homebrew/homebrew/tree/master/share/doc/homebrew> +Homebrew Docs: <https://github.com/Homebrew/brew/tree/master/share/doc/homebrew>
true
Other
Homebrew
brew
276a797d37fa057f935ba671bca04163389046f1.json
Update documentation after repository split.
share/doc/homebrew/Formula-Cookbook.md
@@ -1,5 +1,5 @@ # Formula Cookbook -A formula is a package definition written in Ruby. It can be created with `brew create $URL` and installed with `brew install $FORMULA` and debugged with `brew install --debug --verbose $FORMULA`. Formulae use the [Formula API](http://www.rubydoc.info/github/Homebrew/homebrew/master...
true
Other
Homebrew
brew
276a797d37fa057f935ba671bca04163389046f1.json
Update documentation after repository split.
share/doc/homebrew/How-To-Open-a-Homebrew-Pull-Request-(and-get-it-merged).md
@@ -1,15 +1,15 @@ # How To Open a Homebrew Pull Request (and get it merged) The following commands are used by Homebrew's contributors to setup a fork of Homebrew's Git repository on GitHub, create a new branch and create a GitHub pull request of the changes in that branch. -Depending on the change you want to make...
true
Other
Homebrew
brew
276a797d37fa057f935ba671bca04163389046f1.json
Update documentation after repository split.
share/doc/homebrew/Installation.md
@@ -29,7 +29,7 @@ not build when installed elsewhere. One of the reasons Homebrew just works relative to the competition is **because** we recommend installing to `/usr/local`. *Pick another prefix at your peril!* -`mkdir homebrew && curl -L https://github.com/Homebrew/homebrew/tarball/master | tar xz --strip 1 -C ...
true
Other
Homebrew
brew
276a797d37fa057f935ba671bca04163389046f1.json
Update documentation after repository split.
share/doc/homebrew/New-Maintainer-Checklist.md
@@ -25,8 +25,8 @@ A few requests: - still create your branches on your fork rather than in the main repository - if still in doubt please ask for help and we'll help you out - these are probably worth a read: - - https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Brew-Test-Bot-For-Core-Contribu...
true
Other
Homebrew
brew
276a797d37fa057f935ba671bca04163389046f1.json
Update documentation after repository split.
share/doc/homebrew/Querying-Brew.md
@@ -24,7 +24,7 @@ From the manpage: The current schema version is `v1`. Note that fields may be added to the schema as needed without incrementing the schema. Any significant breaking changes will cause a change to the schema version. -The schema itself is not currently documented outside of the code that generate...
true
Other
Homebrew
brew
276a797d37fa057f935ba671bca04163389046f1.json
Update documentation after repository split.
share/doc/homebrew/Tips-N'-Tricks.md
@@ -6,11 +6,11 @@ The preferred and supported method of installing specific versions of formulae is to use the [homebrew/versions](https://github.com/Homebrew/homebrew-versions) tap. If the version you’re looking for isn’t available, consider [opening a -pull request](https://github.com/Homebrew/homebrew/blob/maste...
true
Other
Homebrew
brew
276a797d37fa057f935ba671bca04163389046f1.json
Update documentation after repository split.
share/doc/homebrew/brew.1.html
@@ -73,7 +73,7 @@ <h2 id="COMMANDS">COMMANDS</h2> and version, but if it fails, you'll have to make your own template. The <code>wget</code> formula serves as a simple example. For the complete API have a look at</p> -<p><a href="http://www.rubydoc.info/github/Homebrew/homebrew/master/Formula" data-bare-link="true"...
true
Other
Homebrew
brew
276a797d37fa057f935ba671bca04163389046f1.json
Update documentation after repository split.
share/man/man1/brew.1
@@ -96,7 +96,7 @@ Show Homebrew and system configuration useful for debugging\. If you file a bug Generate a formula for the downloadable file at \fIURL\fR and open it in the editor\. Homebrew will attempt to automatically derive the formula name and version, but if it fails, you\'ll have to make your own template\. T...
true
Other
Homebrew
brew
e70a3552d3faddd0afd2535a03c31b8c50be901a.json
test-bot: exclude Taps dir from root cleanup
Library/Homebrew/cmd/test-bot.rb
@@ -645,7 +645,7 @@ def cleanup_before safe_system "git", "checkout", "-f", "master" # This will uninstall all formulae, as long as # HOMEBREW_REPOSITORY == HOMEBREW_PREFIX, which is true on the test bots - safe_system "git", "clean", "-ffdx" unless ENV["HOMEBREW_RUBY"] == "1.8.7" + ...
false
Other
Homebrew
brew
232eccc4285712697d66f72bd39fa196b5ba1f98.json
test-bot: fix path in cleanup_before We should remove PR lock files in the test tap rather than HOMEBREW_REPOSITORY.
Library/Homebrew/cmd/test-bot.rb
@@ -640,7 +640,7 @@ def cleanup_before git "reset", "--hard" git "checkout", "-f", "master" git "clean", "-ffdx" unless ENV["HOMEBREW_RUBY"] == "1.8.7" - pr_locks = "#{HOMEBREW_REPOSITORY}/.git/refs/remotes/*/pr/*/*.lock" + pr_locks = "#{@repository}/.git/refs/remotes/*/pr/*/*.lock" ...
false
Other
Homebrew
brew
9f79c05656a44f926898774c6029025002bcd621.json
diagnostic: improve check for 'install_name_tool' `install_name_tool` location depends on the location of the active developer directory managed by `xcode-select`. Closes Homebrew/homebrew#50509. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/diagnostic.rb
@@ -454,13 +454,15 @@ def check_for_stray_developer_directory def check_for_bad_install_name_tool return if MacOS.version < "10.9" - libs = Pathname.new("/usr/bin/install_name_tool").dynamically_linked_libraries + install_name_tool = OS::Mac.install_name_tool + libs = Pathname.new...
false
Other
Homebrew
brew
bdd26d04468e6bbd3cf5e9841a1f163d33884e67.json
test-bot: ensure tap is full clone
Library/Homebrew/cmd/test-bot.rb
@@ -874,9 +874,17 @@ def test_bot p ARGV tap = resolve_test_tap - # Tap repository if required, this is done before everything else - # because Formula parsing and/or git commit hash lookup depends on it. - safe_system "brew", "tap", tap.name unless tap.installed? + if tap.installed? + # ma...
false
Other
Homebrew
brew
deed8e566c096da391a92060f19e5093ec3cd1f6.json
test-bot: handle legacy formulae PR from Homebrew/homebrew Closes Homebrew/homebrew#50635. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/cmd/test-bot.rb
@@ -11,6 +11,8 @@ # --junit: Generate a JUnit XML test results file. # --no-bottle: Run brew install without --build-bottle # --keep-old: Run brew bottle --keep-old to build new bottles for a single platform. +# --legacy Bulid formula from legacy Homebrew/homebrew repo. +# (...
false
Other
Homebrew
brew
2bb30fc5f0ab4146190e65d017ea0ad4eac40dbf.json
--version/config: show core tap information
Library/Homebrew/cmd/config.rb
@@ -1,6 +1,7 @@ require "hardware" require "software_spec" require "rexml/document" +require "tap" module Homebrew def config @@ -57,6 +58,18 @@ def origin Homebrew.git_origin || "(none)" end + def core_tap_head + CoreTap.instance.git_head || "(none)" + end + + def core_tap_last_commit + Cor...
true
Other
Homebrew
brew
2bb30fc5f0ab4146190e65d017ea0ad4eac40dbf.json
--version/config: show core tap information
Library/Homebrew/utils.rb
@@ -229,6 +229,18 @@ def self.homebrew_version_string end end + def self.core_tap_version_string + require "tap" + tap = CoreTap.instance + return "N/A" unless tap.installed? + if pretty_revision = tap.git_short_head + last_commit = tap.git_last_commit_date + "(git revision #{pretty_rev...
true
Other
Homebrew
brew
2bb30fc5f0ab4146190e65d017ea0ad4eac40dbf.json
--version/config: show core tap information
Library/brew.rb
@@ -7,6 +7,7 @@ if ARGV == %w[--version] || ARGV == %w[-v] puts "Homebrew #{Homebrew.homebrew_version_string}" + puts "Homebrew/homebrew-core #{Homebrew.core_tap_version_string}" exit 0 end
true
Other
Homebrew
brew
63c0a9fa92c100e505cc2a53e752b5a448c61473.json
Tap#install: set autocrlf to false Ensure we don't munge line endings on checkout regardless with user's global git config. Closes Homebrew/homebrew#50514. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/tap.rb
@@ -182,7 +182,7 @@ def install(options = {}) Utils.ensure_git_installed! ohai "Tapping #{name}" unless quiet remote = options[:clone_target] || "https://github.com/#{user}/homebrew-#{repo}" - args = %W[clone #{remote} #{path}] + args = %W[clone #{remote} #{path} --config core.autocrlf=false] ...
false
Other
Homebrew
brew
a87eb23a3b613de803f249aee2c9941f5190aef6.json
bump-formula-pr: fix typo in spec existence check Closes Homebrew/homebrew#50472. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/dev-cmd/bump-formula-pr.rb
@@ -25,7 +25,7 @@ def bump_formula_pr else [:stable, formula.stable] end - odie "#{formula}: no #{requested_spec} specification found!" unless formula + odie "#{formula}: no #{requested_spec} specification found!" unless formula_spec hash_type, old_hash = if (checksum = formula_spec.checks...
false
Other
Homebrew
brew
6135da800e4f93ded3a5a331d0efa691f4822afb.json
utils, gist-logs: improve/fix credential handling. The API used (`Net::HTTP::Post`) does not handle basic authentication credentials in the same way as `open` so fix both cases so they work. Also, do some general usability tweaks to point out to people what could be wrong with their tokens or credentials to help them...
Library/Homebrew/cmd/gist-logs.rb
@@ -37,12 +37,12 @@ def gistify_logs(f) if ARGV.include?("--new-issue") || ARGV.switch?("n") auth = :AUTH_TOKEN - unless GitHub.api_credentials + if GitHub.api_credentials_type == :none puts "You can create a personal access token: https://github.com/settings/tokens" puts "and ...
true
Other
Homebrew
brew
6135da800e4f93ded3a5a331d0efa691f4822afb.json
utils, gist-logs: improve/fix credential handling. The API used (`Net::HTTP::Post`) does not handle basic authentication credentials in the same way as `open` so fix both cases so they work. Also, do some general usability tweaks to point out to people what could be wrong with their tokens or credentials to help them...
Library/Homebrew/utils.rb
@@ -484,7 +484,7 @@ module GitHub class RateLimitExceededError < Error def initialize(reset, error) super <<-EOS.undent - GitHub #{error} + GitHub API Error: #{error} Try again in #{pretty_ratelimit_reset(reset)}, or create a personal access token: #{Tty.em}https://githu...
true
Other
Homebrew
brew
ca2abb2be6686a8f2e7c64f5d334ab70be97a1b7.json
bump-formula-pr: add new command. Add a new developer command (i.e. requires `HOMEBREW_DEVELOPER` set in your environment) to bump the version of a formula and create a new pull request with the new version. Closes Homebrew/homebrew#49848.
Library/Homebrew/dev-cmd/bump-formula-pr.rb
@@ -0,0 +1,114 @@ +# Creates a pull request with the new version of a formula. +# +# Usage: brew bump [options...] <formula-name> +# +# Requires either `--url` and `--sha256` or `--tag` and `--revision`. +# +# Options: +# --dry-run: Print what would be done rather than doing it. +# --devel: Bump a `devel` rathe...
false
Other
Homebrew
brew
eda70673ea695013480ffec285257e28a86c0203.json
Fix backticks to prevent missing rendered text The backticks being where they were, or not, caused text like `<formula>` to not be shown when viewing the rendered text in a browser. Closes Homebrew/homebrew#50428. Signed-off-by: Baptiste Fontaine <batifon@yahoo.fr>
share/doc/homebrew/Querying-Brew.md
@@ -15,8 +15,8 @@ To enable users to do rich queries without the problems above, Homebrew provides From the manpage: - * `info --json=<version>` (--all|--installed|<formula>): - Print a JSON representation of <formula>. Currently the only accepted value + * `info --json=<version> (--all|--installed|<formula>)...
false
Other
Homebrew
brew
b896629da40177a1a9c6c0c6ed05889110fef817.json
connect 1.105 (migrate from boneyard) connect is a utility that provides SOCKS and HTTPS proxy support to SSH. I have created a new formula for version 1.104 that works unlike the formula for 1.100 that is currently in the boneyard. Closes Homebrew/homebrew#49716. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.c...
Library/Homebrew/tap_migrations.rb
@@ -32,7 +32,6 @@ "clusterit" => "homebrew/x11", "cmucl" => "homebrew/binary", "comparepdf" => "homebrew/boneyard", - "connect" => "homebrew/boneyard", "coremod" => "homebrew/boneyard", "curlftpfs" => "homebrew/x11", "cwm" => "homebrew/x11",
false
Other
Homebrew
brew
760c596a8e75c6126e95cb9897eb9b66faffbb0c.json
Checksum_Deprecation: add guiding document Closes Homebrew/homebrew#50282. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
share/doc/homebrew/Checksum_Deprecation.md
@@ -0,0 +1,27 @@ +# Checksum Deprecation + +During early 2015 Homebrew started the process of deprecating _SHA1_ for package +integrity verification. Since then every formulae under the Homebrew organisation +has been moved onto _SHA256_ verification; this includes both source packages +and our precompiled packages (bo...
false
Other
Homebrew
brew
478f18a8f57705a0c16b27b257f022f91c0b630b.json
software_spec: add ExternalPatch to dependency_collector Since we support `apply` DSL in the `patch` block, external patch files could be any compressed archive. As result, it could introduce dependencies like xz, 7z etc. Add the resource of ExternalPatch to dependency_collector, so we could track these resource depe...
Library/Homebrew/software_spec.rb
@@ -165,7 +165,9 @@ def requirements end def patch(strip = :p1, src = nil, &block) - patches << Patch.create(strip, src, &block) + p = Patch.create(strip, src, &block) + dependency_collector.add(p.resource) if p.is_a? ExternalPatch + patches << p end def fails_with(compiler, &block)
false
Other
Homebrew
brew
ca5b7440c69a37b5f03f7b8949df27d8824d307d.json
diagnostic: make `chown` recommendation consistent This is the only place we advise `:admin` as well so might as well change this one. Closes Homebrew/homebrew#50279. Closes Homebrew/homebrew#50295. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
Library/Homebrew/diagnostic.rb
@@ -523,7 +523,7 @@ def check_access_usr_local You should probably change the ownership and permissions of /usr/local back to your user account. - sudo chown -R $(whoami):admin /usr/local + sudo chown -R $(whoami) /usr/local EOS end end
false
Other
Homebrew
brew
142be05c0f6070c71fa3dc38e86711bdca372fb5.json
diagnostic: trim unnecessary 'the'
Library/Homebrew/diagnostic.rb
@@ -501,7 +501,7 @@ def check_access_share_man def check_access_homebrew_repository unless HOMEBREW_REPOSITORY.writable_real? then <<-EOS.undent - The #{HOMEBREW_REPOSITORY} is not writable. + #{HOMEBREW_REPOSITORY} is not writable. You should probably change the ownersh...
false
Other
Homebrew
brew
99155c3b5fb7f956b40d35f3723bfae97c8dc06b.json
update: use git from ENV/scm/git The idea is to let `scm/git` to handle all of git location resolution throughout Homebrew codebase. Closes Homebrew/homebrew#50116. Signed-off-by: Xu Cheng <xucheng@me.com>
Library/Homebrew/cmd/update.sh
@@ -3,42 +3,7 @@ brew() { } git() { - [[ -n "$HOMEBREW_GIT" ]] || odie "HOMEBREW_GIT is unset!" - "$HOMEBREW_GIT" "$@" -} - -which_git() { - local git_path - local active_developer_dir - - if [[ -n "$HOMEBREW_GIT" ]] - then - git_path="$HOMEBREW_GIT" - elif [[ -n "$GIT" ]] - then - git_path="$GIT" - ...
false
Other
Homebrew
brew
ce7b32cec835bb658df75a0c691db9a97921163c.json
add HOMEBREW_ENV_PATH internal variable `Library/ENV` like `Library/Homebrew` is part of Homebrew basecode. It should be able to be accessed during the `brew tests`. By adding HOMEBREW_ENV_PATH variable, we allow test suit to locate these codes.
Library/Homebrew/config.rb
@@ -39,6 +39,7 @@ def mkpath HOMEBREW_REPOSITORY = Pathname.new(ENV["HOMEBREW_REPOSITORY"]) HOMEBREW_LIBRARY = Pathname.new(ENV["HOMEBREW_LIBRARY"]) +HOMEBREW_ENV_PATH = HOMEBREW_LIBRARY/"ENV" HOMEBREW_CONTRIB = HOMEBREW_REPOSITORY/"Library/Contributions" # Where we store built products
true
Other
Homebrew
brew
ce7b32cec835bb658df75a0c691db9a97921163c.json
add HOMEBREW_ENV_PATH internal variable `Library/ENV` like `Library/Homebrew` is part of Homebrew basecode. It should be able to be accessed during the `brew tests`. By adding HOMEBREW_ENV_PATH variable, we allow test suit to locate these codes.
Library/Homebrew/extend/ENV/std.rb
@@ -77,7 +77,7 @@ def determine_pkg_config_libdir paths = [] paths << "#{HOMEBREW_PREFIX}/lib/pkgconfig" paths << "#{HOMEBREW_PREFIX}/share/pkgconfig" - paths << "#{HOMEBREW_LIBRARY}/ENV/pkgconfig/#{MacOS.version}" + paths << "#{HOMEBREW_ENV_PATH}/pkgconfig/#{MacOS.version}" paths << "/usr/lib...
true
Other
Homebrew
brew
ce7b32cec835bb658df75a0c691db9a97921163c.json
add HOMEBREW_ENV_PATH internal variable `Library/ENV` like `Library/Homebrew` is part of Homebrew basecode. It should be able to be accessed during the `brew tests`. By adding HOMEBREW_ENV_PATH variable, we allow test suit to locate these codes.
Library/Homebrew/extend/ENV/super.rb
@@ -28,7 +28,7 @@ def self.extended(base) def self.bin return unless MacOS.has_apple_developer_tools? - bin = (HOMEBREW_REPOSITORY/"Library/ENV").subdirs.reject { |d| d.basename.to_s > MacOS::Xcode.version }.max + bin = HOMEBREW_ENV_PATH.subdirs.reject { |d| d.basename.to_s > MacOS::Xcode.version }.max ...
true
Other
Homebrew
brew
ce7b32cec835bb658df75a0c691db9a97921163c.json
add HOMEBREW_ENV_PATH internal variable `Library/ENV` like `Library/Homebrew` is part of Homebrew basecode. It should be able to be accessed during the `brew tests`. By adding HOMEBREW_ENV_PATH variable, we allow test suit to locate these codes.
Library/Homebrew/test/lib/config.rb
@@ -14,6 +14,7 @@ HOMEBREW_REPOSITORY = HOMEBREW_PREFIX HOMEBREW_LIBRARY = HOMEBREW_REPOSITORY+"Library" HOMEBREW_LIBRARY_PATH = Pathname.new(File.expand_path("../../..", __FILE__)) +HOMEBREW_ENV_PATH = HOMEBREW_LIBRARY_PATH.parent+"ENV" HOMEBREW_LOAD_PATH = [File.expand_path("..", __FILE__), HOM...
true
Other
Homebrew
brew
ce7b32cec835bb658df75a0c691db9a97921163c.json
add HOMEBREW_ENV_PATH internal variable `Library/ENV` like `Library/Homebrew` is part of Homebrew basecode. It should be able to be accessed during the `brew tests`. By adding HOMEBREW_ENV_PATH variable, we allow test suit to locate these codes.
Library/Homebrew/test/testing_env.rb
@@ -6,7 +6,7 @@ require "formulary" # Test environment setup -%w[ENV Formula].each { |d| HOMEBREW_LIBRARY.join(d).mkpath } +HOMEBREW_LIBRARY.join("Formula").mkpath %w[cache formula_cache cellar logs].each { |d| HOMEBREW_PREFIX.parent.join(d).mkpath } # Test fixtures and files can be found relative to this path
true