-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Cucumber Rake task creates invalid path to bundle command #386
Comments
Thanks for the thorough report. @os97673 do you want to look into this, since you're on Ubuntu? |
@mattwynne sure. |
I wrote a patch I mentioned at the end of Notes section, about using This patch worked for my environment where I'm not sure how to create an environment that the original issue #324 was trying to support (both This patch also changes the content of |
@y-higuchi imho this not a cucumber or rubygems problem. I'd say that this is a problem of Ubuntu's packages name. |
@os97673 I don't have Ruby+Windows environment, but I have Windows environment so I'll give it a try if I can setup a test environment when I have access to Windows environment.
About the "change" in the above comment. If it is the former case, modification to If it is the latter case, I'll try to do that when I come up with an additional patch for Windows. |
I've tested the patch on Windows environment, and it worked. But while creating the Ruby environment on Windows, handling a path containing space can be troublesome, About adding tests for changes, |
Thank you for the PR, let's move our discussion there |
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. |
Using cucumber rake task with bundler, fails with invalid bundle command path on Ubuntu.
This problem seems to be introduced in 1.2.2 as a side-effect of #324.
Steps to reproduce the problem
Environment
ruby
andgem
installed throughapt-get
rvm
or other ruby environment manager.bundler
installed bygem install bundler
Gemfile
Rakefile
Note that
bundle exec rake cucumber
runs without problem when "1.2.1" is specified as the cucumber version in theGemfile
Cause of the problem
When ruby and gem is installed on a Ubuntu environment through
apt-get
,binaries built with version suffix is installed,
but symbolic link with plain filename without suffix is also introduced with alternatives mechanism.
When I
gem install bundler
on above environment,bundle
command will be installed without any suffix.Maybe because
ruby
orgem
command with no suffix is on PATH?As a result, environment where
bundle
command without suffix is used onruby1.8
andgem1.8
binary is created.When cucumber try to determine the
bundle
command name byGem.default_exec_format % 'bundle'
,it creates a command name
bundle1.8
, which actually does not exist.Notes
I am not familiar with gem's best practice, so it may be true that this is not a cucumber problem, but a problem with bundler or gem, where they should have installed
bundle
with 1.8 suffix under such environment.I haven't checked in details, but there seems to be a way to get a absolute path to
bundle
command through Gem, so it may be possible to solve the problem on cucumber side using method in Gem module.The text was updated successfully, but these errors were encountered: