Skip to content

Commit b162377

Browse files
committed
Bump bundler inside the devcontainer
This commit updates the Bundler version in Gemfile.lock and modifies the boot.sh script to install the latest Bundler version to avoid similar warnings in the future. - Steps to reproduce 1. Startup the devcontainer 2. Run ```bash $ bundle exec rake test ``` - Actual result This results in the following warning: ``` /home/vscode/.rbenv/versions/3.4.2/lib/ruby/gems/3.4.0/gems/bundler-2.5.16/lib/bundler/rubygems_ext.rb:250: warning: method redefined; discarding old encode_with /home/vscode/.rbenv/versions/3.4.2/lib/ruby/3.4.0/rubygems/dependency.rb:341: warning: previous definition of encode_with was here ``` - Background: When Ruby is upgraded, the gem command is updated as well. However, Bundler installs the version specified in Gemfile.lock under BUNDLED WITH, which can cause outdated versions and trigger the warning above. The fix in rubygems/rubygems#7867 has been available since RubyGems 3.6.0 and Bundler 2.6.0. Since Bundler 2.5.16 lacks this commit, upgrading is necessary to prevent these warnings.
1 parent 2098cb0 commit b162377

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.devcontainer/boot.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/bin/sh
22

3+
bundle update --bundler
34
bundle install
45

56
if [ -n "${NVM_DIR}" ]; then

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -815,4 +815,4 @@ DEPENDENCIES
815815
websocket-client-simple
816816

817817
BUNDLED WITH
818-
2.5.16
818+
2.6.5

0 commit comments

Comments
 (0)