에러모음

[homebrew] homebrew-core is a shallow clone 에러 해결.

코딩하는흑구 2022. 10. 26. 15:41

Mac OS 로컬환경에 Redis를 설치하는 도중 home brew update를 진행하고자

 

brew update 명령문을 날리는 순간.

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 command may take a few minutes to run due to the large size of the repository. 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

 

해당 명령어를 terminal cli 에 입력하고 brew update 명령어를 입력했더니 무사히 진행되었다.

 

그리고 Redis 또한 무사히 로컬에 설치할 수 있었따. (생각보다 친절한 error 메시지였따..)