Closed SeanSith closed 7 years ago
Because I forgot. Sorry.
brew cask doctor
:
$ brew cask doctor
==> macOS Release:
10.12.3
==> Hardware Architecture:
intel-64
==> Ruby Version:
2.0.0-p648
==> Ruby Path:
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
==> Homebrew Version:
Homebrew 1.1.9
Homebrew/homebrew-core (git revision 9f9a3; last commit 2017-02-02)
==> Homebrew Executable Path:
/usr/local/bin/brew
==> Homebrew Cellar Path:
/usr/local/Cellar
==> Homebrew Repository Path:
/usr/local/Homebrew
==> Homebrew Origin:
https://github.com/Homebrew/brew.git
==> Homebrew-Cask Version:
Homebrew-Cask 1.1.9
caskroom/homebrew-cask (git revision e7646; last commit 2017-02-02)
==> Homebrew-Cask Install Location:
<NONE>
==> Homebrew-Cask Staging Location:
/usr/local/Caskroom
==> Homebrew-Cask Cached Downloads:
/Users/ssmith/Library/Caches/Homebrew/Cask
13 files, 429.1M (warning: run "brew cask cleanup")
==> Homebrew-Cask Default Tap Path:
/usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask
==> Homebrew-Cask Alternate Cask Taps:
/usr/local/Homebrew/Library/Taps/caskroom/homebrew-drivers
/usr/local/Homebrew/Library/Taps/caskroom/homebrew-eid
/usr/local/Homebrew/Library/Taps/caskroom/homebrew-fonts
/usr/local/Homebrew/Library/Taps/caskroom/homebrew-versions
==> Homebrew-Cask Default Tap Cask Count:
3530
==> Contents of $LOAD_PATH:
/usr/local/Homebrew/Library/Homebrew/cask/lib
/usr/local/Homebrew/Library/Homebrew
/Library/Ruby/Site/2.0.0
/Library/Ruby/Site/2.0.0/x86_64-darwin16
/Library/Ruby/Site/2.0.0/universal-darwin16
/Library/Ruby/Site
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/x86_64-darwin16
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby/2.0.0/universal-darwin16
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/vendor_ruby
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/x86_64-darwin16
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin16
==> Contents of $RUBYLIB Environment Variable:
<NONE>
==> Contents of $RUBYOPT Environment Variable:
<NONE>
==> Contents of $RUBYPATH Environment Variable:
<NONE>
==> Contents of $RBENV_VERSION Environment Variable:
<NONE>
==> Contents of $CHRUBY_VERSION Environment Variable:
<NONE>
==> Contents of $GEM_HOME Environment Variable:
<NONE>
==> Contents of $GEM_PATH Environment Variable:
<NONE>
==> Contents of $BUNDLE_PATH Environment Variable:
<NONE>
==> Contents of $PATH Environment Variable:
PATH="~/.bin:/Users/ssmith/.pyenv/shims:/Users/ssmith/.pyenv/bin:/Users/ssmith/.nvm/versions/node/v6.9.4/bin:~/.pear/bin:/opt/chefdk/bin:/Users/ssmith/.rbenv/shims:/Users/ssmith/.rbenv/bin:/Users/ssmith/.composer/vendor/bin:/usr/local/opt/php56/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/MacGPG2/bin:/usr/local/opt/go/libexec/bin:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-boneyard/cmd:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-bundle/cmd:/usr/local/Homebrew/Library/Taps/homebrew/homebrew-services/cmd:/usr/local/Homebrew/Library/Homebrew/cask/cmd:/usr/local/Homebrew/Library/Homebrew/shims/scm"
==> Contents of $SHELL Environment Variable:
SHELL="/bin/bash"
==> Contents of Locale Environment Variables:
LANG="en_US.UTF-8"
brew cask update
is deprecated and simply an alias for brew update
, as the message tells you.
I see nothing wrong, here. Your brew cask update
states clearly ==> Updated 3 taps (caskroom/cask, caskroom/drivers, caskroom/versions)
. Since chefdk
was updated recently, this simply looks like it was updated between your info
and your following update
.
Unless you can reproduce with other casks, I don’t see anything out of the ordinary.
All of these steps were accomplished within about 2 minutes approximately 15 hours after https://github.com/caskroom/homebrew-cask/pull/29678 was merged. I don't see how this isn't a problem in some fashion.
@SeanSith But it may also have been a weird one-time occurrence due to something on your setup/connection/machine.
Like I said, can you reproduce this reliably? Because I can’t reproduce it at all. brew cask update
has always been an alias to brew update
.
To my recollection, yes (it finally got to the point where I decided to file an issue). I'll note one when the next Cask gets merged in github.com/caskroom/homebrew-cask.
@SeanSith Thank you, please do. But please use brew update
instead of brew cask update
, next time.
I did use brew upgrade
as a starting point, which has the effect of brew update
does it not?
Yes, I mean in that intermediary step where you used brew cask update
, use brew update
instead. By your report it seems like the second time you called it, the update was forced again to something it hadn’t done, so it’s just to check.
Note the brew upgrade
does not necessarily update tapped Cask repositories for speed reasons. Run brew update
to ensure you're up-to-date.
Note the
brew upgrade
does not necessarily update tapped Cask repositories for speed reasons.
I thought the automatic updates that now occur by default (unless given HOMEBREW_NO_AUTO_UPDATE=1
) ran the exact same thing as brew update
. So you’re saying it does not, and updates only a subset of repos?
If that’s the case, there’s the mystery solved right there.
So you’re saying it does not, and updates only a subset of repos?
Yep, only repos with formulae.
@MikeMcQuaid Thank you for the clarification.
@SeanSith So it’s expected behaviour, just not for the reason I initially thought.
@vitorgalvao @MikeMcQuaid Ok. I can follow that. Any chance we'd consider changing that behavior? I would imagine that new users might not have the brew update && brew upgrade
workflow in their fingers. I certainly dropped it whenever brew upgrade
started (sort of) doing both.
Any chance the analytics shows the average amount of time it takes to update the most frequently used/default taps?
Any chance we'd consider changing that behavior?
Yeh, I'll consider it if we see a few more confused reports like this.
Any chance the analytics shows the average amount of time it takes to update the most frequently used/default taps?
Sadly it does not.
Even if the non-update of casks is kept, maybe the auto-update message could point out what it hasn't updated. Something like this:
$ brew install foo
Updating Homebrew...
==> Auto-updated Homebrew!
Updated Homebrew from b38c52f9 to 30a2f270.
Updated 2 taps (homebrew/core, homebrew/science).
Note: Casks and external taps are not automatically updated. Do do so, run:
brew update
(...)
When looking to install newer versions of Casks, running
brew upgrade
thenbrew cask info [cask]
shows an older version of the cask untilbrew cask update
is run.Please follow the general troubleshooting steps first:
brew update
and retried your prior step?brew doctor
, fixed as many issues as possible and retried your prior step?Bug reports:
Having immediately run a
brew upgrade
just prior, an attempt to identify and install a newer cask shows the older version untilbrew cask update
is run. While I don't have the option to provide output to this effect, abrew update
fails to update casks in the same way.brew doctor
:brew config
: