Skip to content

Conversation

@nirinchev
Copy link
Collaborator

@nirinchev nirinchev commented Mar 10, 2025

On windows with node 22/23, when running mongodb-runner with npx, the -- will be applied to npx command rather than the exec, so we need another set of dashes to make yargs happy.

Copy link
Collaborator

@addaleax addaleax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assumed that npx would already handle this since it seems to do this locally, but maybe this works a bit differently on Windows?

(If this is about Windows-specific behavior, and this doesn't do the trick, it might also be worth explicitly setting the shell to bash for this command)

@nirinchev nirinchev changed the title chore(ci): correctly pass args to mongodb-runner chore(ci): correctly pass args to mongodb-runner MONGOSH-2011 Mar 10, 2025
@nirinchev
Copy link
Collaborator Author

Yeah, it seems like this is only happening on Windows with node 22/23. I didn't test with bash (only pwsh) since I figured this is a good enough solution.

@nirinchev nirinchev marked this pull request as ready for review March 10, 2025 13:03
@nirinchev nirinchev merged commit 5dd0e8d into main Mar 10, 2025
15 of 16 checks passed
@nirinchev nirinchev deleted the ni/smoke-tests branch March 10, 2025 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants