You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.
If the path to your project has a space in it and you keep your gems in your project, then bundle exec fails when trying to run any binaries. Below is a zsh script that shows the issue. (It looks like it also happens with bash.)
#!/bin/zsh
mkdir -p '/tmp/sp ace/project/'cd'/tmp/sp ace/project/'
mkdir 'spec/'
cat > Gemfile <<EOFsource 'http://rubygems.org'gem 'rspec'EOF
bundle install --path vendor
# Expected behavior: should work# Observed behavior: errors with rspec not executable
bundle exec rspec
# If you execute the following, you'll see the space isn't escaped#bundle exec env | grep PATH
Here is my bundle env
Environment
Bundler 1.11.2
Rubygems 2.4.5.1
Ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14]
GEM_HOME /Users/username/.gem/ruby/2.2.3
GEM_PATH /Users/username/.gem/ruby/2.2.3:/Users/username/.rubies/ruby-2.2.3/lib/ruby/gems/2.2.0
Git 2.5.1
Bundler settings
gem.coc
Set for the current user (/Users/username/.bundle/config): "true"
gem.mit
Set for the current user (/Users/username/.bundle/config): "false"
gem.test
Set for the current user (/Users/username/.bundle/config): "rspec"
build.nokogiri
Set for the current user (/Users/username/.bundle/config): "--use-system-libraries"
path
Set for your local app (/private/tmp/sp ace/project/.bundle/config): "vendor"
disable_shared_gems
Set for your local app (/private/tmp/sp ace/project/.bundle/config): "1"
Gemfile
source 'http://rubygems.org'
gem 'rspec'
Gemfile.lock
GEM
remote: http://rubygems.org/
specs:
diff-lcs (1.2.5)
rspec (3.4.0)
rspec-core (~> 3.4.0)
rspec-expectations (~> 3.4.0)
rspec-mocks (~> 3.4.0)
rspec-core (3.4.1)
rspec-support (~> 3.4.0)
rspec-expectations (3.4.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-mocks (3.4.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-support (3.4.1)
PLATFORMS
ruby
DEPENDENCIES
rspec
BUNDLED WITH
1.11.2
The text was updated successfully, but these errors were encountered:
If the path to your project has a space in it and you keep your gems in your project, then
bundle exec
fails when trying to run any binaries. Below is a zsh script that shows the issue. (It looks like it also happens with bash.)Here is my
bundle env
The text was updated successfully, but these errors were encountered: