Closed fenak closed 4 years ago
Hello,
Version 1.0.0 of the Ruby orb has been released.
https://github.com/CircleCI-Public/ruby-orb/releases/tag/v1.0.0 https://circleci.com/orbs/registry/orb/circleci/ruby?version=1.0.0
We are now currently testing our orb/sample project against the latest version of bundler. Please upgrade to the new 1.0.0 version of the orb and let us know if you continue to experience any issue. Thank you.
I see this error when using Ruby orb 1.0.0
jobs:
build:
docker:
- image: 'cimg/ruby:2.6-node'
steps:
- checkout
- ruby/install-deps
# - node/install-packages:
# cache-key: yarn.lock
# pkg-manager: yarn
test:
docker:
- image: 'cimg/ruby:2.6-node'
- environment:
POSTGRES_DB: workstream
POSTGRES_PASSWORD: ''
POSTGRES_USER: root
image: 'circleci/postgres:9.5-alpine'
environment:
BUNDLE_JOBS: '3'
BUNDLE_RETRY: '3'
PGHOST: 127.0.0.1
PGPASSWORD: ''
PGUSER: root
RAILS_ENV: test
parallelism: 3
steps:
- checkout
- ruby/install-deps
# - node/install-packages:
# cache-key: yarn.lock
# pkg-manager: yarn
- run:
command: 'dockerize -wait tcp://localhost:5432 -timeout 1m'
name: Wait for DB
- run:
command: 'bundle exec rails db:schema:load --trace'
name: Database setup
- ruby/rspec-test
orbs:
# node: circleci/node@x.y
ruby: circleci/ruby@1.0.0
version: 2.1
workflows:
build_and_test:
jobs:
- build
- test:
requires:
- build
@KyleTryon
Orb Version 0.2.2
Describe the bug After the change introduced in #18 the deprecation warning goes away and the gems are installed in the correct path, but at least on
bundler 2.1.4
setting theBUNDLE_PATH
does not seem to make the configuration persistent, so runningruby/run-tests
fails asbundler
can't find therspec
executable.To Reproduce Using
bundler
version 2.1.4, call these steps in the following order:ruby/load-cache
ruby/install-deps
ruby/save-cache
(saves on the wrong path if path overwritten on step 2, as described on #19)ruby/run-tests
- fail to run as therspec
executable can't be found by BundlerExpected behavior Step 4 above runs successfully.
Additional context My current workaround:
Running this before the steps mentioned above.