New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Faraday dependency breaks Danger in ruby 2.x containers #1476
Comments
Hmm, I'm wondering if this issue is due to Danger or not. Yes, Faraday 2.9.0 drops support for Ruby 2.x but it should work because its gemspec says it supports Ruby 3.0 or above. Bundler recognizes Ruby version and installs older Faraday if you use Ruby 2.7.
No, it's versioned.
It sounds weird. I think Bundler version mismatch occurs before installing Danger as reported in #1472 🤔 |
A possible scenario is that
Please double-check if your environment satisfies the above conditions. If it does, this is not a bug in Danger. You need to install dependencies in Ruby as the same version of the Docker container or just not copy Gemfile.lock to the container. |
Report
Danger is unable to run due to the updated transitive faraday dependency release v 2.9.0. The faraday release 2.9.0 drops support for ruby v. 2.x.
The faraday dependency is included through the unversioned faraday-http-cache, that in turn also unversioned includes faraday.
What did you do?
Executed Danger in Gitlab CI. The Gitlab CI will by default use the Gitlab-supported container file. However, testing with the latest Danger v9.4.2 container image does yield the same result.
What did you expect to happen?
Danger is able to execute.
What happened instead?
Danger is unable to start with the following error message:
Your Environment
Which CI are you running on?
Gitlab CI
Are you running the latest version of Danger?
Yes, v. 9.4.2
The simplest Dangerfile will do, e.g. https://github.com/danger/danger/blob/master/Dangerfile
The text was updated successfully, but these errors were encountered: