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

requiring library via library #1

Open
trans opened this issue Jan 10, 2012 · 0 comments
Open

requiring library via library #1

trans opened this issue Jan 10, 2012 · 0 comments

Comments

@trans
Copy link
Member

trans commented Jan 10, 2012

This is a bit esoteric but, if one is working on Library project itself such that is it is in the RUBYLIBS paths, requiring library again can cause a stack overflow.

Example of issue:

  $ gem install library
  $ export RUBYOPT="-rubylibs"
  $ export RUBYLIBS="~/workspace/library/"
  $ irb
  $ require 'library'

The reason is b/c the first RUBYOPT require is getting it form the gem, but the second is getting it from the workspace project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant