Note that brew update will only report all without API.

It's not worth supporting this option any longer given the API
constraints.
This commit is contained in:
Mike McQuaid 2023-03-03 08:51:58 +00:00
parent 4a41f01e8b
commit 26182fd67a
No known key found for this signature in database
GPG Key ID: 3338A31AFDB1D829
5 changed files with 6 additions and 17 deletions

View File

@ -629,7 +629,12 @@ class ReporterHub
delegate empty?: :@hash delegate empty?: :@hash
def dump(updated_formula_report: true) def dump(updated_formula_report: true)
report_all = Homebrew::EnvConfig.update_report_all_formulae? report_all = ENV["HOMEBREW_UPDATE_REPORT_ALL_FORMULAE"].present?
if report_all && !Homebrew::EnvConfig.no_install_from_api?
odeprecated "HOMEBREW_UPDATE_REPORT_ALL_FORMULAE"
opoo "This will not report all formulae because Homebrew cannot get this data from the API."
report_all = false
end
dump_new_formula_report dump_new_formula_report
dump_new_cask_report dump_new_cask_report

View File

@ -378,11 +378,6 @@ module Homebrew
default_text: "macOS: `/private/tmp`, Linux: `/tmp`.", default_text: "macOS: `/private/tmp`, Linux: `/tmp`.",
default: HOMEBREW_DEFAULT_TEMP, default: HOMEBREW_DEFAULT_TEMP,
}, },
HOMEBREW_UPDATE_REPORT_ALL_FORMULAE: {
description: "If set, `brew update` lists changes to all formulae and cask files rather than only showing " \
"when they are new and not installed or outdated and installed.",
boolean: true,
},
HOMEBREW_UPDATE_TO_TAG: { HOMEBREW_UPDATE_TO_TAG: {
description: "If set, always use the latest stable tag (even if developer commands " \ description: "If set, always use the latest stable tag (even if developer commands " \
"have been run).", "have been run).",

View File

@ -4415,8 +4415,6 @@ module Homebrew::EnvConfig
def self.temp(); end def self.temp(); end
def self.update_report_all_formulae?(); end
def self.update_to_tag?(); end def self.update_to_tag?(); end
def self.verbose?(); end def self.verbose?(); end

View File

@ -2268,9 +2268,6 @@ example, run `export HOMEBREW_NO_INSECURE_REDIRECT=1` rather than just
*Default:* macOS: `/private/tmp`, Linux: `/tmp`. *Default:* macOS: `/private/tmp`, Linux: `/tmp`.
- `HOMEBREW_UPDATE_REPORT_ALL_FORMULAE`
<br>If set, `brew update` lists changes to all formulae and cask files rather than only showing when they are new and not installed or outdated and installed.
- `HOMEBREW_UPDATE_TO_TAG` - `HOMEBREW_UPDATE_TO_TAG`
<br>If set, always use the latest stable tag (even if developer commands have been run). <br>If set, always use the latest stable tag (even if developer commands have been run).

View File

@ -3357,12 +3357,6 @@ Use this path as the temporary directory for building packages\. Changing this m
\fIDefault:\fR macOS: \fB/private/tmp\fR, Linux: \fB/tmp\fR\. \fIDefault:\fR macOS: \fB/private/tmp\fR, Linux: \fB/tmp\fR\.
. .
.TP .TP
\fBHOMEBREW_UPDATE_REPORT_ALL_FORMULAE\fR
.
.br
If set, \fBbrew update\fR lists changes to all formulae and cask files rather than only showing when they are new and not installed or outdated and installed\.
.
.TP
\fBHOMEBREW_UPDATE_TO_TAG\fR \fBHOMEBREW_UPDATE_TO_TAG\fR
. .
.br .br