我正在为 Elixir 使用 heroku 的 buildpack,其中一个依赖项失败了,mix deps.get
因为它来自一个私有的 Github 存储库。
当我尝试部署时,出现此错误:
remote: * Getting my_library (https://github.com/my_organization/my_library.git)
remote: fatal: could not read Username for 'https://github.com': No such device or address
remote: ** (Mix) Command "git --git-dir=.git fetch --force --quiet --progress" failed
remote: ! Push rejected, failed to compile Elixir app.
remote:
remote: ! Push failed
remote: Verifying deploy...
我尝试添加GITHUB_API_TOKEN
Heroku 的配置变量,但仍然遇到相同的错误。