在 heroku 上部署,dpl 不适用于新的 farady 版本

Deploy on heroku with dpl not working with new farady version

我的 CI/CD 在 gitlab 上使用 dpl 在 heroku 上部署代码。在 faraday 的新版本(我想这是原因)被获取之前,它一直像一个魅力一样工作。

这是我的 gitlab CI 终端运行时(昨天)的内容:

...
$ dpl --provider=heroku --app=$HEROKU_STAGING_APP --api-key=$HEROKU_API_KEY
Installing deploy dependencies
Successfully installed rendezvous-0.1.3
Successfully installed netrc-0.11.0
Successfully installed multipart-post-2.1.1
Successfully installed faraday-rack-1.0.0
Successfully installed faraday-patron-1.0.0
Successfully installed faraday-net_http_persistent-1.2.0
Successfully installed faraday-net_http-1.0.1
Successfully installed faraday-httpclient-1.0.1
Successfully installed faraday-excon-1.1.0
Successfully installed faraday-em_synchrony-1.0.0
Successfully installed faraday-em_http-1.0.0
Successfully installed faraday-1.8.0
Successfully installed dpl-heroku-1.10.16
13 gems installed
authentication succeeded
checking for app XXX
found app XXX
Preparing deploy
...

这是我今天得到的:

...
$ dpl --provider=heroku --app=$HEROKU_STAGING_APP --api-key=$HEROKU_API_KEY
Installing deploy dependencies
Successfully installed rendezvous-0.1.3
Successfully installed netrc-0.11.0
Successfully installed faraday-2.0.0
Successfully installed dpl-heroku-1.10.16
4 gems installed
Preparing deploy
No stash entries found.
/usr/local/bundle/gems/faraday-2.0.0/lib/faraday/rack_builder.rb:230:in `ensure_adapter!': An attempt to run a request with a Faraday::Connection without adapter has been made. (RuntimeError)
Please set Faraday.default_adapter or provide one when initializing the connection.
...

我试图将 --skip_cleanup 添加到 dpl 调用 as seen here 但它不起作用。也许我可以强制重新使用旧版本的法拉第?但是我找不到任何来源来尝试这个。

这可能对这种情况有用

https://github.com/travis-ci/dpl/issues/1247