-
Notifications
You must be signed in to change notification settings - Fork 994
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows - step: shell: bash #497
Comments
@al-cheb @maxim-lobanov @sergey-akhalkov Could this be prioritized? Correct me if I'm wrong but I think having this would avoid issues like actions/runner-images#905 when using When MSYS2 is earlier in PATH, it's a clear choice one prefers MSYS2, so I would argue using the first |
@eregon our team doesn't own runner (only images content) so we can't help here. cc: @TingluoHuang , @bryanmacfarlane probably can help and take a look at this request |
What about to use ::add-path::{path} to change PATH dynamically in your workflow? |
Thanks for suggestion. Tried that already, doesn't work. See: https://github.com/MSP-Greg/actions-image-testing/runs/751245284 Notes:
Sorry about the duplicate issues, I'll close #460. |
@MSP-Greg I am able to make it work by
Output:
|
The problem with your example is we are trying to run |
Thanks. I tried adding the
Been a while since I coded in cs, but I also found that. Question: Not sure if I can phrase this well, is the runner assembling all the workflow steps in one pass (before running them), or does it parse steps 'real-time' (after the previous step runs)? |
@MSP-Greg it parse steps 'real-time' after the previous step runs. |
Thanks. Given that, I'm confused about the |
I might know what the problem is. I assume the runner needs to maintain it's In the ruby/setup-ruby action, since we'd prefer to remove the 'system' ruby from I split that up, so it used Unfortunately, the MSYS2 shell and the Git shell behave a little differently, so I have to check that, since the change would swap the shells for anyone using a |
@MSP-Greg Cool, let me know if there is anything else I can help on this, feel free to close the issue if you get everything you want. 😄 |
@TingluoHuang Thanks. I've got some odd things with I may be back begging for a core method to remove apps from |
@TingluoHuang I was able to run the first action but the second one "shell: bash.exe" is failing with error "Error: bash: command not found" |
@charankumar510 Please check the documentation on how to add something to path |
Currently, when choosing the bash shell option in Windows, the following is the command:
Note that C:\Program Files\Git\bin is already in PATH.
MSYS2 is now included in the Windows image, and the Git bash shell is based on it.
If the path was removed from the command, as below, people could switch to the MSYS2 bash shell by simply adjusting PATH.
Discussions about MSYS2 have been going on for a while, I know some people have asked for a way to use its bash shell...
EDIT: See issue #460, as custom shells are not working.
The text was updated successfully, but these errors were encountered: