0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

エラー:homebrew-core is a shallow clone. が出た時の対処方

Posted at

はじめに

homebrewでインストールやアップデートをするときに「 homebrew-core is a shallow clone. 」のエラーが出る時がある。

Error: 
  homebrew-core is a shallow clone.
To `brew update`, first run:
  git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
This restriction has been made on GitHub's request because updating shallow
clones is an extremely expensive operation due to the tree layout and traffic of
Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you
automatically to avoid repeatedly performing an expensive unshallow operation in
CI systems (which should instead be fixed to not use shallow clones). Sorry for
the inconvenience!

解決方法

エラーの意味をざっと要約すると、下のコマンドを打ってね、不便かけてごめんねとのこと。
なので、長いエラーメッセージの中にある

git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow

このコマンドを打ってあげれば大抵解決する。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?