fix(setup-osuosl-ca): use pwsh on Windows to avoid Cygwin CRLF issue - #135
Open
bastelfreak wants to merge 1 commit into
Open
fix(setup-osuosl-ca): use pwsh on Windows to avoid Cygwin CRLF issue#135bastelfreak wants to merge 1 commit into
bastelfreak wants to merge 1 commit into
Conversation
The composite action used 'shell: bash' for all platforms. On windows runners with Cygwin, GitHub Actions generates the temp script with Windows CRLF line endings. Cygwin bash without '-o igncr' treats the \r as a command name, resulting in exit code 127. We switch to PowerShell on windows to use native tools instead of Cygwin. Fixes: https://github.com/OpenVoxProject/puppet-runtime/actions/runs/33179641401/job/98877289758 Error for future reference: ``` # Replace any backslashes with forward slashes so that a Windows path # is usable from both POSIX and WIN32 contexts. osuosl_ca="${RUNNER_TEMP//\\//}/osuosl-ca.pem" printf 'Downloading Mozilla CA bundle to: %s\n' "${osuosl_ca}" curl -sSL https://curl.se/ca/cacert.pem -o "${osuosl_ca}" printf 'AWS_CA_BUNDLE=%s' "${osuosl_ca}" >>$GITHUB_ENV shell: C:\cygwin64\bin\bash.EXE --noprofile --norc -e -o pipefail {0} env: VANAGON_LOCATION: https://github.com/openvoxproject/vanagon#main D:\a\_temp\dcb0f279-a648-4603-9fd7-75c1faa0e719.sh: line 4: $'\r': command not found Error: Process completed with exit code 127. ``` Signed-off-by: Tim Meusel <tim@bastelfreak.de>
Contributor
Author
|
The commit description is my guess. I had no time yet to test it. |
Contributor
Author
Contributor
Author
bastelfreak
enabled auto-merge
August 28, 2026 19:18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The composite action used 'shell: bash' for all platforms. On windows runners with Cygwin, GitHub Actions generates the temp script with Windows CRLF line endings. Cygwin bash without '-o igncr' treats the \r as a command name, resulting in exit code 127.
We switch to PowerShell on windows to use native tools instead of Cygwin.
Fixes: https://github.com/OpenVoxProject/puppet-runtime/actions/runs/33179641401/job/98877289758
Error for future reference:
Short description
Checklist
I have:
Signed-off-byannotation to each of my commitsGenerated-byorAssisted-byannotations to each of my commits created with the help of an AI agent