Skip to content

Fix hardcoded /tmp paths for cross-platform compatibility using osTempDir #606

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

Closed

Conversation

asutosh2203
Copy link
Contributor

Replaced all instances of hardcoded "/tmp/..." paths with filepath.Join(os.TempDir(), ...) to ensure compatibility on Windows systems. This aligns with Go's cross-platform best practices and addresses issue #562.

Also added clarifying comments in examples where code was unreachable due to panic.

…mpDir

Replaced all instances of hardcoded "/tmp/..." paths with filepath.Join(os.TempDir(), ...)
to ensure compatibility on Windows systems. This aligns with Go's cross-platform best practices
and addresses issue mmcgrana#562.

Also added clarifying comments in examples where code was unreachable due to panic.
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.

2 participants