Minor: deprecated flags used by 'bundle'

This is minor, but I keep spotting these two DEPRECATED warnings every time I do an upgrade, and I suppose sooner or later it’ll need to be fixed.

$ bundle install --deployment --jobs 4 --without test development
[DEPRECATED] The `--deployment` 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 --local deployment 'true'`, and stop using this flag
[DEPRECATED] The `--without` 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 --local without 'test development'`, and stop using this flag

Possibly it’s this line here which needs a tweak:
https://github.com/discourse/discourse/blob/a0bbc346cb5d5b89d1a3efdfa89869349a8b067f/script/switch_container_ruby#L49

1 Like