Closed tokoroga-dokkoi closed 2 years ago
Hey @MikiWaraMiki ! Thanks for raising this issue.
I was trying to reproduce this issue locally but I can't get it to occur. I started by created a very simple Gemfile
using your setup like this:
source 'https://rubygems.org'
gem 'aws-sdk', '~> 3' # We use this for uploading image to s3 and sending mail via ses
gem 'aws-xray-sdk', '~> 0.12.0', require: ['aws-xray-sdk/facets/rails/railtie']
When I run bundle install
this completes successfully, which makes me think it should work in a Docker build successfully as well.
Looking at your error output it looks like you have 3 requests for aws-sdk-xray
, not aws-xray-sdk
, which is slightly different in name 🙂
#15 28.99 In snapshot (Gemfile.lock):
#15 28.99 aws-sdk-xray (= 1.42.0)
...
#15 28.99 In Gemfile:
...
#15 28.99 aws-sdk-xray (~> 1)
...
#15 28.99 aws-sdk-xray (~> 1.4.0)
The ~> 1
and ~> 1.4.0
should not conflict, which means the aws-sdk
and aws-xray-sdk
don't have conflicting values, but the requirement you have in your Gemfile.lock
of aws-sdk-xray (= 1.42.0)
will definitely conflict with the other requirements.
Do you know why your Gemfile.lock
has this requirement? It might be worth it to delete this file and allow bundle install
to generate it again in hopes that this fixes the problem? Otherwise you can post the section of Gemfile.lock
which requires aws-sdk-xray
and we can see which part of your dependencies is requiring such a specific (and dependency-conflict error-causing) version of = 1.42.0
.
Let me know if that helps!
Hello, @NathanielRN !
The ~> 1 and ~> 1.4.0 should not conflict, which means the aws-sdk and aws-xray-sdk don't have conflicting values, but the requirement you have in your Gemfile.lock of aws-sdk-xray (= 1.42.0) will definitely conflict with the other requirements.
Noted with thanks! Your explanation really helped!
Thank you for your support in your busy time.
Hello,
We have a rails application and run in docker.
We add 'aws-xray-sdk' (version 0.12.0) and re-build docker image, but build is failed.
What should I do?
Gemfile
Docker build log