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

Avoid using filepath.Dir function #616

Merged
merged 3 commits into from
Jan 4, 2024
Merged

Avoid using filepath.Dir function #616

merged 3 commits into from
Jan 4, 2024

Conversation

kke
Copy link
Contributor

@kke kke commented Jan 3, 2024

When running on windows, functions like filepath.Dir will use backslash as the path separator, which is not what is desired when the target host is linux.

@kke kke added the bug Something isn't working label Jan 3, 2024
pkg/paths/dirname.go Outdated Show resolved Hide resolved
@kke kke force-pushed the no-filepath branch 2 times, most recently from 505456a to 5abd5e7 Compare January 3, 2024 09:10
Signed-off-by: Kimmo Lehto <[email protected]>
Signed-off-by: Kimmo Lehto <[email protected]>
@kke
Copy link
Contributor Author

kke commented Jan 3, 2024

There's now a test and the CI has been modified to run on all three OSes. A bit unorthodox to test unexported functions.

@kke kke merged commit 3dcf3f0 into main Jan 4, 2024
33 checks passed
@kke kke deleted the no-filepath branch January 4, 2024 07:40
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
None yet
Development

Successfully merging this pull request may close these issues.

2 participants