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

Add cross-platform path support for proxy certificates #201

Merged

Conversation

JamieMagee
Copy link
Contributor

This pull request to internal/infra/proxy.go includes changes to simplify the codebase and improve the handling of file paths. The most important changes include removing the strings package from the import block and replacing the usage of strings.HasPrefix with path.IsAbs to check if a file path is absolute.

Codebase simplification:

  • internal/infra/proxy.go: Removed the strings package from the import block as it is no longer needed.

Improvements in file path handling:

  • internal/infra/proxy.go: In the NewProxy function, replaced the usage of strings.HasPrefix with path.IsAbs to check if params.ProxyCertPath is an absolute path. This approach is more reliable and idiomatic for checking absolute paths in Go.

@JamieMagee JamieMagee requested a review from a team as a code owner December 1, 2023 05:41
Copy link
Member

@jakecoffman jakecoffman left a comment

Choose a reason for hiding this comment

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

Good call.

@jakecoffman jakecoffman merged commit 7a07ade into dependabot:main Dec 1, 2023
49 of 50 checks passed
@JamieMagee JamieMagee deleted the jamiemagee/cross-platform-check branch December 1, 2023 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants