-
-
Notifications
You must be signed in to change notification settings - Fork 74
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
Warn about Pwsh quoting of Go commands arguments on Windows #24
Comments
That is... interesting. When we add the warning, it would be good to also link to some docs explaining how the Powershell syntax conflicts with very simple POSIX shell without expansions or quoting. |
So far I found no document to confirm my hypothesis. I only have experimental results: |
Those two pages from the PowerShell documentation don't mention something special about (the second one tells about |
Nothing mentioned about |
In fact the default shell on Windows is Pwsh (Powershell Core). |
Powershell Core seems to have issues with parameter "-coverprofile=coverage.out". The failure I'm fixing: $ go test -v -race -coverprofile=coverage.out -covermode=atomic ./... no required module provides package .out; to add it: go get .out See mvdan/github-actions-golang#24
- name: Run coverage
run: go --% test -v -race -coverprofile=coverage.out -covermode=atomic ./... |
I had the bad experience that this doesn't work on Windows:
Output:
But this works:
The only difference is that
=
is replaced with space.I suspect this is a PowerShell quoting issue.
The text was updated successfully, but these errors were encountered: