Searching for a previously...">

How to remove a small clone warning from HomeBrew

➜ ~ brew info test Error: No available formula with the name "test" ==> Searching for a previously deleted formula... Warning: homebrew/core is shallow clone. To get complete history run: git -C "$(brew --repo homebrew/core)" fetch --unshallow Error: No previously deleted formula found. 

I changed the remote git address for the mirrored homebrew address before. Maybe this applies to this, but I do not know.

+5
source share
1 answer

Like what he says

To complete a complete history run:

 git -C "$(brew --repo homebrew/core)" fetch --unshallow 

Thus, brew info could look for a formula that existed only in the past, but was deleted at some point.

In some cases, this may help, but probably not so much. For example, an error may be caused by a typo in the name of the formula you are trying to find. In these cases, I simply ignore this error, instead of retrieving the whole story.

+6
source

Source: https://habr.com/ru/post/1271033/


All Articles