This repository has been archived by the owner on Apr 14, 2021. It is now read-only.
Getting undefined constant RbConfig
when using --standalone on bundler 1.3
#2382
Comments
you always have the craziest edge cases :) yeah, sounds like we just need to require it before it gets used. |
indirect
added a commit
that referenced
this issue
Mar 11, 2013
fixed, I hope |
Thanks for addressing this issue so quickly! |
For anyone else running into this, I was able to work around the issue on travis by setting RUBYOPT:
|
mvz
pushed a commit
to mvz/rspec-core
that referenced
this issue
Jan 19, 2014
- Bundler 1.3 needs rbconfig to be required to run `bin/rspec` after installing with `--standalone --binstubs`. rubygems/bundler#2382 - The Travis VMs no longer have 32-bit JVMs available. Aruba 0.4.11 forced the -d32 flag. 0.5 just documents it and makes a file available to require that will set it. We've updated Aruba here so that the jruby ENV vars aren't set automatically; we've kept the flag to disable JIT but removed -d32. - Aruba now has a "the file xyz shoudl contain" step.
kchien
pushed a commit
to kchien/rspec-expectations
that referenced
this issue
Mar 7, 2014
- Bundler 1.3 needs rbconfig to be required to run `bin/rspec` after installing with `--standalone --binstubs`. rubygems/bundler#2382 - The Travis VMs no longer have 32-bit JVMs available. Aruba 0.4.11 forced the -d32 flag. 0.5 just documents it and makes a file available to require that will set it. We've updated Aruba here so that the jruby ENV vars aren't set automatically; we've kept the flag to disable JIT but removed -d32.
pat
pushed a commit
to pat/rspec-mocks
that referenced
this issue
Jun 28, 2017
Fix travis CI build. - Bundler 1.3 needs rbconfig to be required to run `bin/rspec` after installing with `--standalone --binstubs`. rubygems/bundler#2382 - The Travis VMs no longer have 32-bit JVMs available. Aruba 0.4.11 forced the -d32 flag. 0.5 just documents it and makes a file available to require that will set it. We've updated Aruba here so that the jruby ENV vars aren't set automatically; we've kept the flag to disable JIT but removed -d32.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Travis recently upgraded their VMs to bundler 1.3. This is breaking our rspec builds because we use
bundle install --standalone --binstubs
to install our bundle and run things w/o bundler loaded at runtime (there's a history I won't go into here about why that matters for us). I've traced it back to this commit, where @hone added some code to the generated setup.rb file that referencesRbConfig
. Problem is, you apparently have to requirerbconfig
before on some rubies:...so we're suddenly getting lots of undefined constant errors on travis:
https://travis-ci.org/rspec/rspec-expectations/jobs/5400894/#L118
I think maybe you just need to add the require to fix it?
The text was updated successfully, but these errors were encountered: