Closed singularitti closed 1 year ago
export HOMEBREW_NO_INSTALL_FROM_API=1
and try brew lc ...
again.
@Homebrew/brew, this is a weird side-effect of the API install migration. I can't figure out why the base command works perfectly, but the internal alias seems to take another path. Setting HOMEBREW_NO_INSTALL_FROM_API
"restores harmony" somehow.
It works now:
$ export HOMEBREW_NO_INSTALL_FROM_API=1
$ brew lc alfred
alfred: 5.0.6,2110 ==> 5.0.6,2110
$ brew lc dash
Warning: Treating dash as a formula. For the cask, use homebrew/cask/dash
dash: 0.5.12 ==> 0.5.12
I am having some livechecks hang indefinitely and when I Ctrl+C out of it I see errors similar to the following:
Error: macupdater: Directory not empty @ dir_s_rmdir - /private/tmp/d20230130-13581-1f82q6m
Also a strange behavior:
linuxbrew@28113b04b932:~$ brew lc -h
Usage: brew livecheck, lc [options] [formula|cask ...]
Check for newer versions of formulae and/or casks from upstream.
If no formula or cask argument is passed, the list of formulae and casks to
check is taken from HOMEBREW_LIVECHECK_WATCHLIST or
~/.brew_livecheck_watchlist.
--full-name Print formulae and casks with fully-qualified
names.
--tap Check formulae and casks within the given
tap, specified as user/repo.
--eval-all Evaluate all available formulae and casks,
whether installed or not, to check them.
--installed Check formulae and casks that are currently
installed.
--newer-only Show the latest version only if it's newer
than the formula/cask.
--json Output information in JSON format.
-r, --resources Also check resources for formulae.
-q, --quiet Suppress warnings, don't print a progress bar
for JSON output.
--formula, --formulae Only check formulae.
--cask, --casks Only check casks.
-d, --debug Display any debugging information.
-v, --verbose Make some output more verbose.
-h, --help Show this message.
linuxbrew@28113b04b932:~$ brew developer
Developer mode is disabled.
linuxbrew@28113b04b932:~$ brew livecheck -h
Warning: livecheck is a developer command, so
Homebrew's developer mode has been automatically turned on.
To turn developer mode off, run brew developer off
Usage: brew livecheck, lc [options] [formula|cask ...]
Check for newer versions of formulae and/or casks from upstream.
If no formula or cask argument is passed, the list of formulae and casks to
check is taken from HOMEBREW_LIVECHECK_WATCHLIST or
~/.brew_livecheck_watchlist.
--full-name Print formulae and casks with fully-qualified
names.
--tap Check formulae and casks within the given
tap, specified as user/repo.
--eval-all Evaluate all available formulae and casks,
whether installed or not, to check them.
--installed Check formulae and casks that are currently
installed.
--newer-only Show the latest version only if it's newer
than the formula/cask.
--json Output information in JSON format.
-r, --resources Also check resources for formulae.
-q, --quiet Suppress warnings, don't print a progress bar
for JSON output.
--formula, --formulae Only check formulae.
--cask, --casks Only check casks.
-d, --debug Display any debugging information.
-v, --verbose Make some output more verbose.
-h, --help Show this message.
linuxbrew@28113b04b932:~$ brew developer
Developer mode is enabled.
Different behavior is probably caused by differences between: https://github.com/Homebrew/brew/blob/7a5f6143d3e7447a64255c548d2e51138c83acd3/Library/Homebrew/brew.sh#L692-L708 and https://github.com/Homebrew/brew/blob/7a5f6143d3e7447a64255c548d2e51138c83acd3/Library/Homebrew/commands.rb#L14-L32
Should be resolved. Let us know if not.
It works for me now!
brew gist-logs <formula>
link ORbrew config
ANDbrew doctor
outputVerification
brew doctor
output" saysYour system is ready to brew.
and am still able to reproduce my issue.brew update
and am still able to reproduce my issue.brew doctor
and that did not fix my problem.What were you trying to do (and why)?
I was trying to
brew livecheck
my formulae and casks.What happened (include all command output)?
I run the following command
What did you expect to happen?
brew lc
return the same results asbrew livecheck
.Step-by-step reproduction instructions (by running
brew
commands)