Traceback (most recent call last): 2: from /usr/local/bin/bundle:23:in `<main>' 1: from /usr/local/lib/ruby/2.6.0/rubygems.rb:302:in `activate_bin_path' /usr/local/lib/ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': Could not find 'bundler' (2.2.15) required by your /app/Gemfile.lock. (Gem::GemNotFoundException) To update to the latest version installed on your system, run `bundle update --bundler`. To install the missing version, run `gem install bundler:2.2.15` !! exit status 1
$ docker-compose run --rm web gem install bundler Creating app_web_run ... done Traceback (most recent call last): 2: from /usr/local/bin/bundle:23:in `<main>' 1: from /usr/local/lib/ruby/2.6.0/rubygems.rb:302:in `activate_bin_path' /usr/local/lib/ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': Could not find 'bundler' (2.2.15) required by your /app/Gemfile.lock. (Gem::GemNotFoundException) To update to the latest version installed on your system, run `bundle update --bundler`. ... (中略) ... To install the missing version, run `gem install bundler:2.2.15` !! exit status 1
メッセージは変わりません…
bundle update –bundler
もう1つの方法、bundle update —bundlerを行なってみましょう
1 2 3 4 5 6 7 8 9
$ docker-compose run --rm web bundle update --bundler Creating app_web_run ... done Traceback (most recent call last): 2: from /usr/local/bin/bundle:23:in `<main>' 1: from /usr/local/lib/ruby/2.6.0/rubygems.rb:302:in `activate_bin_path' /usr/local/lib/ruby/2.6.0/rubygems.rb:283:in `find_spec_for_exe': Could not find 'bundler' (2.2.15) required by your /app/Gemfile.lock. (Gem::GemNotFoundException) To update to the latest version installed on your system, run `bundle update --bundler`. To install the missing version, run `gem install bundler:2.2.15` !! exit status 1
$ bundle update --bundler Warning: the running version of Bundler (2.1.4) is older than the version that created the lockfile (2.2.15). We suggest you to upgrade to the version that created the lockfile by running `gem install bundler:2.2.15`.
Error: The `set-env` command is disabled. Please upgrade to using Environment Files or opt into unsecure command execution by setting the `ACTIONS_ALLOW_UNSECURE_COMMANDS` environment variable to `true`. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
Rubyのセットアップ自体は
1 2
- name: Set up Ruby uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby, # change this to (see https://github.com/ruby/setup-ruby#versioning): # uses: ruby/setup-ruby@v1 uses: ruby/setup-ruby@473e4d8fe5dd94ee328fdfca9f8c9c7afc9dae5e