-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
http, tls, stream, test, build: refactor lib/ underscore files into directories #16745
Conversation
8868bd2
to
4a81a01
Compare
I don't understand this part. It works the same as loading a module from disk. |
Sorry but I'm -1 on this — seems like churn for pretty much no benefit. I would understand if we literally had 10s or 100s of files here but that's not even close to being the case. This also breaks anyone using Given we haven't been able to come to an agreement on creating sub folders for tests, I don't see how the core code is going to be easier. |
@mscdex when i first encountered /lib i was confused about why |
@devsnek If anything, that sounds like more of a documentation change PR for the contributing guide or something. This PR does not change how built-in modules are loaded, so the same "issue" still exists... |
@mscdex thats a good point, maybe i'll make a pr to that as well, but this is also just a nice change. I agree it isn't needed, but it keeps the source organized, which is always a nice thing. |
@devsnek Maybe, but IMHO it's not worth the potential breakage. |
At this point, I'm -1 on this due to the extremely likely chance this will break existing userland code... which is unfortunate. What I'd like to see us be able to do is move these Even if this PR does move forward, a deprecation for the current require paths would be a requirement to land. |
There is #11957 that is prior art on this. |
I can definitely add stubs, and maybe moving them to internal is a good idea to give more freedom in the future |
4a81a01
to
d3b4e1f
Compare
It seems like there are multiple -1 and it is not likely that this is going to land. I am closing this therefore. |
this is really just a small cleanup, no actual functionality was
changed. I think this would mostly be a nice change for people who are
new to the node.js source, as peeking into /lib with all that can be a
bit confusing unless you understand how modules's builtin resolving works.
This will also require a change to nodejs/github-bot
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
http, tls, stream