Project

General

Profile

Actions

Bug #16101

closed

Following the README in setting up hammer-cli-katello, you get a gem dependency conflict

Added by David Davis over 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Hammer
Target version:
Fixed in Releases:
Found in Releases:

Description

If you follow hammer-cli-katello's README, you get a bundler error:

[!] There was an error parsing `Gemfile`: You cannot specify the same gem twice coming from different sources.
You specified that hammer_cli (>= 0) should come from https://github.com/theforeman/hammer-cli.git (at master) and source at `../hammer-cli`
. Bundler cannot continue.

 #  from /home/vagrant/Projects/hammer-cli-katello/Gemfile:25
 #  -------------------------------------------
 #    local_gemfile = File.join(File.dirname(__FILE__), file_name)
 >    self.instance_eval(Bundler.read_file(local_gemfile)) if File.exist?(local_gemfile)
 #  end
 #  -------------------------------------------

It's because we added these lines to Gemfile:

group :development, :test do
  gem 'hammer_cli_foreman', :git => 'https://github.com/theforeman/hammer-cli-foreman.git'
  gem 'hammer_cli', :git => 'https://github.com/theforeman/hammer-cli.git'
end

I propose we remove these lines and document how users can use either local checkouts or git repos.

Actions

Also available in: Atom PDF