久々に bundle install --path vendor/bundle で更新したらワーニングが出てきた。

[DEPRECATED] The --path flag is deprecated because it relies on being remembered across bundler invocations, which bundler will no longer do in future versions. Instead please use bundle config set path 'vendor/bundle', and stop using this flag The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java.

次からは

bundle config set path 'vendor / bundle`

これを使えとのこと。

--binstubs も同様に非推奨になったが使ってないので省略。

確認した環境

  • Bundler version 2.1.2