Pythagora-io/pythagora

cmd/ps issue: expecting a bash terminal

Closed this issue · 2 comments

Running (via npx) in PowerShell or cmd fails, e.g.

PS C:\Users\Me\Projects\test\pythagora-poc> npx pythagora --unit-tests --func simple
/bin/bash: C:UsersMeProjectstestpythagora-pocnode_modulespythagorasrcbinrun.bash: No such file or directory
Bash script exited with code 127

Running from git bash works fine.

Not a huge deal, I was still able to try it out. I think digging around the issue is it detects bash on my system, but that is for WSL, and the Windows path to the bash script (run.bash) won't resolve in WSL.

hey @beejjacobs thank you for reporting issue and trying out Pythagora!

As you mentioned, solution is to run it in git bash, but we will try to fix that soon.
We are aware of that, issue is that we are running bash script while starting Pythagora and in Windows bash doesn't work unless you run it in git bash. We have in backlog to remove that bash script when running Pythagora which should solve this issue for good.

We had a "note:" section, saying to run command in git bash on Windows, in integration tests readme, but it's definitely good you pointed it out. I will add it to readme until we remove bash script.

Thank you!

Ah yes, I hadn't seen the note in the integration tests readme. Worth adding to the root readme for now perhaps?

If you've got an issue on the backlog, happy that this can be closed. Not a showstopper anyway!