-
Notifications
You must be signed in to change notification settings - Fork 600
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
Conflicting Base64 dependency in version 9.6.0 #2312
Comments
In my case, I fixed the issue by explicitily specifying |
Hi @Talha345, We're sorry to hear that you encountered issues when bundling with the new 9.6.0 version of the agent. The agent's newrelic_rpm.gemspec file was updated in v9.6.0 to declare a dependency on the We very deliberately did not impose any sort of version constraint on our The latest stable version (v7.1.1) of Ruby on Rails similarly declares dependencies on the gems that will not be distributed with Ruby v3.4. For example, Active Support has declared the base64 dependency without a version constraint just like we have. Using the Ruby (v3.2.2) and Rails (v7.0.2) versions you provided, I was unable to reproduce the problem you encountered. Here are the full steps taken from scratch to create a new empty directory, create a new Rails application with New Relic agent v9.6.0, and successfully bundle the gems and run a Rails command... mkdir base64_issue_repro
cd base64_issue_repro
bundle init
bundle add rails --version 7.0.2
bundle exec rails new demo --minimal
cd demo
bundle add newrelic_rpm
bundle exec rails runner "puts 'Hello, World!'" The smooth experience I had with this attempt at a reproduction of a problem matches the testing our team conducted with the I appreciate your sharing of a fix by adding a constraint on For now without a reproduction available to me, I am going to close this issue but leave it searchable for others who may encounter similar problems. We will certainly continue to monitor this particular GitHub issue and any other related correspondence and/or PRs we see against our repo or others that have began declaring dependencies in preparation for Ruby 3.3/3.4. If we get any additional feedback or reproduction steps, we'll happily investigate. I'm very glad you were able to get things working for your own application, and thank you for the valuable data point you've given us by bringing your experience to our attention. |
Description
Installing the new_relic gem version 9.6.0 gives the following error:
You have already activated base64 0.1.1, but your Gemfile requires base64 0.2.0. Since base64 is a default gem, you can either remove your dependency on it or try updating to a newer version of bundler that supports base64 as a default gem.
Ruby Version: 3.2.2
Rails Version: 7.0.2
Happens only in Staging and Production environments.
Expected Behavior
Gem should install and there should be no runtime error.
Troubleshooting or NR Diag results
Steps to Reproduce
Install the specific Gem versions as mentioned above in the description in a Rails application and try running the application.
Your Environment
Include as many relevant details about your environment as possible including the running version of the Ruby agent, the Ruby version being used and any other relevant environment information
Happens only in Staging and Production environments.
The text was updated successfully, but these errors were encountered: