手动解决自制公式中的错误

Manually resolve error in homebrew formula

在尝试 运行 命令时 brew install mbedtls --HEAD 我遇到错误:

Error: An exception occurred within a child process:
  Errno::ENOENT: No such file or directory @ rb_sysopen - include/mbedtls/config.h

我检查了自制程序 formula,发现第 27 行引用了 mbedtlsinclude/mbedtls/config.h

我查看了 mbedtls git repo and sure enough, the file include/mbedtls/config.h no longer exists. I searched through the commit history and can see that config.h was renamed to to mbedtls_config.h

如何手动解决自制公式中的文件名错误?

我最初问题的答案是使用 this question 的答案找到的。

公式的本地来源可以使用 brew edit formula_name

即使更改 homebrew 仍然无法完成安装,但提供了更多有用的错误消息,使我能够找到相关资源:

READ THIS: https://docs.brew.sh/Troubleshooting

These open issues may also help:
mbedtls 3.0.0 https://github.com/Homebrew/homebrew-core/pull/80727
Please create pull requests instead of asking for help on Homebrew's GitHub,
Twitter or any other official channels.