-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
src: add NODE_VERSION_IS_LTS to node_version.h #16697
Conversation
FWIW, when these were first introduced, the decision was to not have them in master at all. For the codename, the idea was that if the macro is missing, the value of the process property is undefined rather than an empty string, so someone would be able to determine if a release is LTS simply by checking for the presence of the property (without checking the value). |
Hmm, okay, so that's to make things easier for core collaborators? I could be wrong, but I don't see how that makes sense. If you don't define in master, you can do In fact AFAICT Lines 3172 to 3175 in 3a977fc
|
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.
As a separate commit or separate PR, could you add a note to doc/releases.md
about these values. That document already talks about updating the other values in this file.
Yep, I'm working on an update to include all the stuff that isn't in that doc that you need to do for a first LTS release, including this! |
heh, I didn't argue that it still makes sense ;-) I just explained the history ;-) ... adding these is fine I think |
I'm not fussed either way but I think I can confirm that this isn't going to break anything if introduced. The only other place I'm aware of it being used is in dist-indexer which makes index.json and index.tab in the download directories and that'll still work fine after this. iirc pulling in release commits back to master can be a pain when you have to reset src/node_version.h. I seem to remember occasionally having trouble with these missing lines. I'm not sure this will make much of a difference; although it could introduce the possibility of accidentally turning it to |
f699301
to
b4f2aaf
Compare
This is defined in LTS releases, but should really be defined in master too. PR-URL: nodejs#16697 Reviewed-By: Colin Ihrig <[email protected]>
b4f2aaf
to
e51216d
Compare
This is defined in LTS releases, but should really be defined in master too. PR-URL: #16697 Reviewed-By: Colin Ihrig <[email protected]>
This is defined in LTS releases, but should really be defined in master too.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
cc/ @nodejs/lts