brew search xxx 报错:Error: Cask 'portfolioperformance' definition is invalid: invalid 'sha256' value:

1163人浏览 2022-11-30

今天通过brew想去搜索某个包,比如:

brew search mysql

结果直接报错如下:

Warning: Unexpected method 'arch' called on Cask portfolioperformance.
Follow the instructions here:
  https://github.com/Homebrew/homebrew-cask#reporting-bugs
Error: Cask 'portfolioperformance' definition is invalid: invalid 'sha256' value: {:arm=>"31a13f0c9b9acb53a92e6c802a08d249208944ed9ec16c153667a192caa1cb4d", :intel=>"6843f29ebf2c141c6063955014d6759ad17b366844352de19e345b60d59ccd9f"}

解决方案非常简单:

执行update即可

brew update

更新完成后再次执行搜索命令没问题了,不知道是不是我电脑系统升级导致。

推荐文章

GORM 自定义结构体关联的数据库表名称和自定义结构体字段对应的数据表字段名
2021-02-23
KChatRoom在线多人聊天室,项目是使用Websocket和Gin框架基于Golang开发的在线聊天室
2021-05-17
Gin框架下获取所有路由信息
2021-07-14
搜索文章