-
-
Couldn't load subscription status.
- Fork 1.8k
Make sure rubygems/package can be directly required reliably #3670
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
Conversation
|
Maybe we can add a little test of requiring |
|
I just tested this and If I put it before every require I hit: But doing So maybe we should |
|
That's weird because Either way, we should change our internal requires to use |
|
does this works for you |
|
Oh, right! I always get confused with this. In the case of |
|
@eregon Thoughts? |
|
Interesting. So the only reason I agree we should just require the full RubyGems here, but that introduces a cycle if we add it in EDIT: that's over-complicated, because package.rb is not loaded by rubygems.rb, see comment below. |
|
I see, just I initially tried to solve the problem for Note that Not sure if that's a proper entry point, but it's used in 636 + 47 gems,
And So that one seems hard and I'd tend to say A possible fix could be to split rubygems.rb in smaller 2 parts, and require the first part in specification.rb, and the second part requires specification.rb + code depending on it, and rubygems.rb requires both parts. But (!) |
|
I updated the above, I only searched for |
|
Let's fix this one for now then by |
|
Agreed 👍 |
aaa31b0 to
73c199b
Compare
|
|
a8abe79 to
5e6d82b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Found a little issue with the require location. Other than that is great!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome!
* Partially reverts 8962ca0 * See #2014 and ruby/rubygems#3650 and ruby/rubygems#3670
Description:
closes #3650
I will abide by the code of conduct.