redmine-git-hosting / redmine_git_hosting

A Redmine plugin which makes configuring your own Git hosting easy ;)
http://redmine-git-hosting.io
MIT License
275 stars 116 forks source link

Installation failure of 1.2.3 with redmine-3.4.5 #716

Closed pva closed 4 years ago

pva commented 6 years ago

Hi. running bundle install --without development test with redmine-3.4.5 and redmine_git_hosting v1.2.3 return error:

[!] There was an error parsing `Gemfile`: 
[!] There was an error parsing `Gemfile`: You cannot specify the same gem twice with different version requirements.
You specified: redcarpet (~> 3.4.0) and redcarpet (~> 3.3.2). Bundler cannot continue.

 #  from /var/lib/redmine/plugins/redmine_git_hosting/Gemfile:7
 #  -------------------------------------------
 #  gem 'gitlab-grack', git: 'https://github.com/jbox-web/grack.git', require: 'grack', branch: 'fix_rails4'
 >  gem 'redcarpet', '~> 3.3.2'
 #  
 #  -------------------------------------------
. Bundler cannot continue.

 #  from /var/lib/redmine/Gemfile:113
 #  -------------------------------------------
 #  Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
 >    eval_gemfile file
 #  end
 #  -------------------------------------------
wilibox commented 6 years ago

Just remove that line: sed -i '/3.3.2/d' Gemfile and installation will start

PowerKiKi commented 4 years ago

As discussed in https://github.com/jbox-web/redmine_git_hosting/issues/732#issuecomment-532362560, issues related to Redmine < 4.0 or severely outdated issues are being closed to help clean up the issue tracker.

If this issue is still relevant to you and you are running Redmine >= 4.0, please open a new issue including all new relevant information.