Bundle Install Fails, but gem install works?

Circle CI complains that it cannot install one of the gem dependencies when I am intended to install aws-sdk:
Could not find aws-sdk-core-2.3.0 in any of the sources

So I have decided to SSH into the Circle CI container and see what is going on.

ubuntu@box161:~/regions-credit-scorer$ bundle install
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Fetching dependency metadata from https://rubygems.org/
Could not find aws-sdk-core-2.3.0 in any of the sources
ubuntu@box161:~/regions-credit-scorer$ gem install aws-sdk
Fetching: json_pure-1.8.3.gem (100%)
Successfully installed json_pure-1.8.3
Fetching: jmespath-1.2.4.gem (100%)
Successfully installed jmespath-1.2.4
Fetching: aws-sdk-core-2.3.0.gem (100%)
Successfully installed aws-sdk-core-2.3.0
Fetching: aws-sdk-resources-2.3.0.gem (100%)
Successfully installed aws-sdk-resources-2.3.0
Fetching: aws-sdk-2.3.0.gem (100%)
Successfully installed aws-sdk-2.3.0
5 gems installed

Notice that bundle install fails because “Could not find aws-sdk-core-2.3.0 in any of the sources”. Yet if I install aws-sdk by using gem install, aws-sdk-core installed perfect.

Can someone please provide an explanation why this is happening inside of Circle CI container?

I realized the bundle version is wrong. This is fixed.

1 Like