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

Compile mongosh binary does not work in MONGOSH_RUN_NODE_SCRIPT mode

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.0.6
    • Affects Version/s: 1.0.5
    • Component/s: CLI Module
    • None
    • Iteration Kampala
    • Not Needed

      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.

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

              Created:
              Updated:
              Resolved: