Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-981

Compile mongosh binary does not work in MONGOSH_RUN_NODE_SCRIPT mode

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 1.0.5
    • Fix Version/s: 1.0.6
    • Component/s: CLI Module
    • Labels:
      None
    • Documentation Changes:
      Not Needed
    • Sprint:
      Iteration Kampala

      Description

      When running in MONGOSH_RUN_NODE_SCRIPT mode as a compiled binary, mongosh does not handle process.argv properly and instead tries to execute itself as a JS script.

      This breaks running snippets in scenarios where npm is not available globally.

        Attachments

          Activity

            People

            Assignee:
            anna.henningsen Anna Henningsen
            Reporter:
            anna.henningsen Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: