Compile mongosh binary does not work in MONGOSH_RUN_NODE_SCRIPT mode

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
            Reporter:
            Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: