Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Local clones make and missing clone of extracted gem build install fail #961

Closed
ghost opened this issue Mar 24, 2016 · 5 comments
Closed
Labels
🐛 bug Defect / Bug

Comments

@ghost
Copy link

ghost commented Mar 24, 2016

Summary

Extracted wire-protocol-gem makes bundle install fail.

Expected Behavior

bundle install

should succeed.

Current Behavior

bundle install

fails with

The path `/home/user/data/projects/cucumber-ruby-wire` does not exist.

Possible Solution

Since I opened another PR #960 a few minutes ago which affects the same lines
but because of a different thing, I just openened an issue.

gem "cucumber-pro", "0.0.13", :group => :test
source "https://rubygems.org"
gemspec
unless ENV['CUCUMBER_USE_RELEASED_CORE']
  core_path = File.expand_path("../../cucumber-ruby-core", __FILE__)
  wire_path = File.expand_path("../../cucumber-ruby-wire", __FILE__)

  if File.exist?(core_path) && !ENV['CUCUMBER_USE_GIT_CORE']
    gem 'cucumber-core', :path => core_path
  else
    gem 'cucumber-core', :git => "git://github.com/cucumber/cucumber-ruby-core.git"
  end

  if File.exist?(wire_path) && !ENV['CUCUMBER_USE_GIT_CORE']
    gem 'cucumber-wire', :path => wire_path
  else
    gem 'cucumber-wire', :git => "git://github.com/cucumber/cucumber-ruby-wire.git"
  end
end

Additionally we could add a bootstrap-script. Something really simple:

script/bootstrap

#!/usr/bin/env bash

git clone https://github.com/cucumber/cucumber-ruby
git clone https://github.com/cucumber/cucumber-ruby-core
git clone https://github.com/cucumber/cucumber-ruby-wire

This might be even useful for other cucumber projects. Maybe something similar like Github does.

Steps to Reproduce (for bugs)

  1. git clone https://github.com/cucumber/cucumber-ruby
  2. git clone https://github.com/cucumber/cucumber-ruby-core
  3. cd cucumber-ruby
  4. bundle install

Context

I had cucumber-ruby-* locally before the wire-protocol was extracted to a separate gem.

Your Environment

  • Version used: master
  • Operating System and version: Not relevant in this case
  • Link to your project: Not relevant in this case
@ghost ghost added the Developer Experience label Mar 24, 2016
@danascheider danascheider added the 🐛 bug Defect / Bug label May 26, 2016
@danascheider
Copy link
Contributor

I was able to repro this on my machine. I'm going to take a look at the code, @dg-ratiodata - I don't really think this is an acceptable state of affairs so let's get it fixed!

@mattwynne
Copy link
Member

I think the changes suggested to the Gemfile are the way to go - we'll hopefully never need to touch the wire protocol code again, so there's not much point in making the bootstrap script to make it easy to hack on.

@danascheider danascheider mentioned this issue May 28, 2016
5 tasks
@ghost
Copy link
Author

ghost commented Jun 7, 2016

Thanks a lot.

@danascheider
Copy link
Contributor

Closing this since I merged #983

@lock
Copy link

lock bot commented Oct 25, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐛 bug Defect / Bug
Projects
None yet
Development

No branches or pull requests

2 participants