以下のエラーで削除も更新も出来ない場合
Error: Cask 'eclipse-jee' definition is invalid: invalid 'depends_on macos' value: ":leopard"
以下を実行する
/usr/bin/find "$(brew --prefix)/Caskroom/"*'/.metadata' -type f -name '*.rb' -print0 | /usr/bin/xargs -0 /usr/bin/sed -i '' '/depends_on macos:/d'
I also had the problem hinted on in the first line (I don't understand the description) and the second line solved it.