Skip to content

Commit

Permalink
Update bundler & rubygems in the CI
Browse files Browse the repository at this point in the history
We're seeing weird errors on ruby 3 which might come from specs stored
with a slightly different and older YAML format.

```
Fetching https://github.com/jejacks0n/teaspoon.git
Warning: Permanently added the ECDSA host key for IP address '140.82.114.3' to the list of known hosts.
Fetching gem metadata from https://rubygems.org/............
--- ERROR REPORT TEMPLATE -------------------------------------------------------

```
ArgumentError: undefined class/module YAML::
  /usr/local/lib/ruby/site_ruby/3.0.0/rubygems/specification.rb:1263:in `load'
  /usr/local/lib/ruby/site_ruby/3.0.0/rubygems/specification.rb:1263:in `_load'
  /usr/local/lib/ruby/site_ruby/3.0.0/bundler.rb:563:in `load'
  /usr/local/lib/ruby/site_ruby/3.0.0/bundler.rb:563:in `load_marshal'
```
  • Loading branch information
elia committed Oct 10, 2022
1 parent a134be3 commit 5254c38
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,23 +60,27 @@ commands:
- checkout
- browser-tools/install-chrome
- browser-tools/install-chromedriver
- run: |
gem install bundler -v"~> 2.1" --conservative
bundle lock
- run:
name: "Lock dependencies"
command: |
sudo gem update --system
gem install bundler -v"~> 2.3" --conservative
bundle lock
ruby -v > .ruby-version
- restore_cache:
keys:
- solidus-gems-v3-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
- solidus-gems-v3-{{ .Branch }}
- solidus-gems-v3-master
- solidus-gems-v3
- solidus-gems-v3-{{checksum ".ruby-version"}}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
- solidus-gems-v3-{{checksum ".ruby-version"}}-{{ .Branch }}
- solidus-gems-v3-{{checksum ".ruby-version"}}-master
- solidus-gems-v3-{{checksum ".ruby-version"}}

- run: |
bundle config set path 'vendor/bundle'
bundle check || bundle install
bundle clean
- save_cache:
key: solidus-gems-v3-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
key: solidus-gems-v3-{{checksum ".ruby-version"}}-{{ .Branch }}-{{ checksum "Gemfile.lock" }}
paths:
- vendor/bundle

Expand Down

0 comments on commit 5254c38

Please sign in to comment.