CE GDK installation fails due to merge requests seed file
Summary
When installing CE with GDK, it fails when trying to process the merge requests seed file due to a rescue block being used improperly.
Steps to reproduce
I hit it by:
gem install gitlab-development-kit
gdk init gdk-ce
cd gdk-ce
gdk install
What is the current bug behavior?
Failure:
== Seed from /Users/tpazitny/Dropbox/coding/GitLab/gdk-ce/gitlab/db/fixtures/development/10_merge_requests.rb
rake aborted!
SyntaxError: (eval):30: syntax error, unexpected keyword_rescue, expecting keyword_end
rescue Repository::AmbiguousRefError
^
(eval):61: syntax error, unexpected keyword_end, expecting end-of-input
/Users/tpazitny/Dropbox/coding/GitLab/gdk-ce/gitlab/lib/tasks/gitlab/setup.rake:36:in `setup_db'
/Users/tpazitny/Dropbox/coding/GitLab/gdk-ce/gitlab/lib/tasks/gitlab/setup.rake:5:in `block (2 levels) in <main>'
/Users/tpazitny/Dropbox/coding/GitLab/gdk-ce/gitlab/lib/tasks/dev.rake:7:in `block (2 levels) in <main>'
/Users/tpazitny/.rbenv/versions/2.4.4/bin/bundle:23:in `load'
/Users/tpazitny/.rbenv/versions/2.4.4/bin/bundle:23:in `<main>'
Tasks: TOP => db:seed_fu
(See full trace by running task with --trace)
support/bootstrap-rails failed
make: *** [postgresql/data] Error 1
What is the expected correct behavior?
GDK installation should complete successfully.
Possible fixes
db/fixtures/development/10_merge_requests.rb:30
- rescue should be used with a begin block.
Edited by Tanya Pazitny