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

Makes sure go build manifest file is generated with POSIX separators #687

Merged
merged 1 commit into from
May 16, 2023

Conversation

academo
Copy link
Member

@academo academo commented May 16, 2023

What this PR does / why we need it:
It makes sure the generated go manifest file outputs POSIX paths in all systems.
With the previous version, manifests generated in windows machines would use back slashes instead of forward slashes.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

I tested this change using a windows 11 virtual machine with the latest go 1.20.x. It looks like pathfile.ToSlash behaves different based on the OS. In linux doesn't convert backslashes to forward-slashes.

@academo academo requested a review from a team as a code owner May 16, 2023 14:40
@academo academo requested review from wbrowne and andresmgot and removed request for a team May 16, 2023 14:40
@academo academo self-assigned this May 16, 2023
@academo academo added the bug Something isn't working label May 16, 2023
@academo academo requested review from xnyo and removed request for andresmgot May 16, 2023 14:41
Copy link
Member

@xnyo xnyo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just to confirm, this is only being used by the validator as of right now (it is not being used by grafana backend), right?

Copy link
Member

@wbrowne wbrowne left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noice 👍

@academo
Copy link
Member Author

academo commented May 16, 2023

LGTM! Just to confirm, this is only being used by the validator as of right now (it is not being used by grafana backend), right?

yes you are correct.

@academo academo merged commit e600743 into main May 16, 2023
2 checks passed
@academo academo deleted the academo/fix-go-manifest-windows-paths branch May 16, 2023 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

3 participants