1

我正在为 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_TOKENHeroku 的配置变量,但仍然遇到相同的错误。

4

1 回答 1

3

Elixir webpack 不包含处理私有 GitHub 依赖项的步骤。您可以包含此构建包以相应地设置 GitHub:https ://github.com/timshadel/heroku-buildpack-github-netrc

于 2019-06-07T10:36:45.110 回答