Skip to content
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

output: convert backslashes to forward slashes for GitHub Action annotations printer #4149

Merged
merged 2 commits into from
Oct 24, 2023

Conversation

surik
Copy link
Contributor

@surik surik commented Oct 22, 2023

This commit addresses an issue in the GitHub Actions printer where file paths were using backslashes on Windows systems.
As result we didn't see correct annotations in the PRs. To ensure proper formatting we always convert to forward slash separator in filepathes.

This commit addresses an issue in the GitHub Actions printer where file paths
were using backslashes on Windows systems.
As result we didn't see correct annotations in the PRs.
To ensure proper formatting we always convert to forward slash separator
in filepathes.
@boring-cyborg
Copy link

boring-cyborg bot commented Oct 22, 2023

Hey, thank you for opening your first Pull Request !

@CLAassistant
Copy link

CLAassistant commented Oct 22, 2023

CLA assistant check
All committers have signed the CLA.

@surik
Copy link
Contributor Author

surik commented Oct 22, 2023

Example of the issue I am trying to solve here:

There is an error annotation which is not shown in the PR changes when running on Windows. With the forward slashes on Linux it works fine.

I'm assuming the GitHub always wants it with forward slashes.

@surik surik changed the title Convert backslashes to forward slashes in GitHub Action annotations Convert backslashes to forward slashes for GitHub Action annotations printer Oct 22, 2023
@ldez ldez added enhancement New feature or improvement platform: windows Issue that is related to Windows area: output Related to issue output labels Oct 22, 2023
@ldez ldez changed the title Convert backslashes to forward slashes for GitHub Action annotations printer output: convert backslashes to forward slashes for GitHub Action annotations printer Oct 22, 2023
@ldez ldez self-requested a review October 22, 2023 19:45
@ldez ldez added bug Something isn't working and removed enhancement New feature or improvement labels Oct 23, 2023
@ldez ldez merged commit 9b20d49 into golangci:master Oct 24, 2023
11 checks passed
@ldez ldez modified the milestone: v1.55 Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: output Related to issue output bug Something isn't working platform: windows Issue that is related to Windows
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants