Use `--deployment` mode for bundle install
This MR switches deployment
mode on CI which is suggested in https://gitlab.com/gitlab-org/gitlab-exporter/-/issues/88.
Gemfile.lock
Frozen Now, if one changes Gemfile
without updating Gemfile.lock
they see:
bundle
You are trying to install in deployment mode after changing
your Gemfile. Run `bundle install` elsewhere and add the
updated Gemfile.lock to version control.
If this is a development machine, remove the /home/peter/devel/gitlab/gitlab-exporter/Gemfile freeze
by running `bundle config unset deployment`.
The gemspecs for path gems changed
Gemfile.lock
is now frozen.
Deprecation warning
This also fixes the following deprecation warning:
[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 --local path 'vendor'`, and stop using this flag
The deployment
mode use vendor/bundle
by default.
Edited by Peter Leitzen