Merge branch 'doc-fix-db-gem-install-instructions' into 'master'
Update patch_versions.md with explicit --with statement for db gem group ## What does this MR do? Updates `patch_versions.md`'s instructions on installing gems to explicitly install either the postgres or mysql groups. ## Are there points in the code the reviewer needs to double check? No, but thank you for your time. ## Why was this MR needed? I performed the steps listed in `patch_versions.md` and ran the command for updating postgres gems. Bundler told me at the end that it had not installed the postgres gem group, which caused the next step, migrating the DB, to fail for obvious reasons. Changing the command to `--with postgres` made it install the postgres gem group, and db:migrate then passed. ## What are the relevant issue numbers? None ## Screenshots (if relevant) N/A See merge request !3955
-
🔴 @rymaiAuthor Maintainer@nicolas.aspert Hmm, that's weird. Could you provide us more info about the failure?
-
@rymai same on my system.
My error is
Unknown switches '--with'
and probably @nicolas.aspert is the same.Do you need more info about it?
-
@nicolas.aspert @rymai I've updated bundler, and it works now.
#bundle -v Bundler version 1.12.3
But I think it should be in the instruction specified.
-
@nicolas.aspert Try to update your Bundler. It seems you need at least 1.10 (see http://bundler.io/v1.10/whats_new.html#optional-groups)
-
🔴 @rymaiAuthor MaintainerI've tested the original command locally and the
pg
gem was installed, so I believe the user that opened the original MR ran the wrong command (i.e.sudo -u git -H bundle install --without development test postgres --deployment
instead ofsudo -u git -H bundle install --without development test mysql --deployment
. -
🔴 @rymaimentioned in merge request !4144 (merged)
-
🔴 @rymaimentioned in merge request !4144 (merged)
-
🔴 @rymaiAuthor Maintainer@nicolas.aspert @kusmierz FYI I've opened !4144 (merged) to revert this commit.
-
mentioned in commit d7a28f3c
-
mentioned in commit d7a28f3c
-
🔴 @rymaiMentioned in commit pfjason/gitlab-ce@935c684a
-
Mentioned in commit pfjason/gitlab-ce@d7a28f3c