Skip to content

Should we backport node_module_version to v4.x? #124

Closed

Description

@MylesBorins

This question was raised in an issue over at https://github.com/nodejs/node

Thoughts @nodejs/lts?

/cc @bnoordhuis

Activity

  1. rvagg commented on Jul 19, 2016

    @rvagg
    Member

    I believe this will come across if we pull in nodejs/node#6994 which is already on the agenda.

  2. Fishrock123 commented on Jul 19, 2016

    @Fishrock123
    Contributor

    Anyone able to provide a synopsis of that that does? I'm not familiar with it.

  3. saper commented on Jul 20, 2016

    @saper

    @Fishrock123 This adds process.config.variables.node_module_version to config.gypi. This information is available as process.versions.modules if the node is running, but we don't know the value if we are for example cross-compiling a module for some node version other than currently running. See nodejs/node-gyp#855 and nodejs/node-gyp#855 (comment)

  4. saper commented on Jul 20, 2016

    @saper

    (Proof of concept: backport of node_module_version to node v0.10: nodejs/node#7808 )

  5. jasnell commented on Jul 20, 2016

    @jasnell
    Member

    It is worth noting that process.config is frequently overridden by certain userland modules and depending on process.config is unwise. We've had regressions creep up recently in v4 because of the addition of FIPS mode checks in process.config that failed because a userland module decided to overwrite process.config entirely.

  6. bnoordhuis commented on Jul 20, 2016

    @bnoordhuis
    Member

    The difference though is that node_module_version is also available in a binding.gyp.

  7. mhdawson commented on Jul 20, 2016

    @mhdawson
    Member

    Does seem useful and as a backport at least for 4.x

  8. jasnell commented on Aug 8, 2016

    @jasnell
    Member

    The @nodejs/lts WG discussed this today, and while we didn't see a pressing justification for backporting it, we also couldn't come up with any objections. So... SGTM

  9. saper commented on Aug 19, 2016

    @saper

    v4.x version is in nodejs/node#8171

  10. MylesBorins commented on Nov 14, 2016

    @MylesBorins
    ContributorAuthor

    This landed 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions