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
Github action throws "ambiguous redirect" on windows #1280
Comments
I'd guess that the problem is that you've installed a different version of bash on your build system. Normal runs use bash at |
In your case, you could replace the action with
|
yeah, that's what I did :) But it's still a bug |
No idea how we'd fix it, though. If it is indeed a line-ending thing, it seems like an incompatibility between GHA and cygwin bash. |
You are running GitHub Actions on a flavor of bash it does not support. Actions are pretty tolerant to different environments (I've used them inside various docker images), but it's impossible to support everything if you are customizing the environment around them. You could see if they'd be interested in also supporting that if it's possible, but it's not something we can/should do. I wonder if we would avoid triggering the bug without the (I think PYTHONUNBUFFERED would help, but haven't succeeded with using it for this - and it might be hard to set it in a cross platform way in the action anyway) |
Yeah, I suspect that the cygwin bash lexer is chomping a |
It doesn't have any newlines, we are using YAML's |
Yeah, pretty sure we tried that. Actually I think we apply more-or-less the same thing in code internally, the |
But why is it even running on cygwin? why not just adjust our action to run on PowerShell on widows, and provide a different command for that? |
The github action now uses powershell thanks to #1346 |
Description
When running the github action on a windows runner, it throws an error:
Build log
https://github.com/raptor-ml/raptor/actions/runs/3118890385/jobs/5058490814
CI config
https://github.com/raptor-ml/raptor/blob/228ba6f6b23b9941de01bce29116973d319ed4a2/.github/workflows/labsdk-release.yaml
The text was updated successfully, but these errors were encountered: