-
Notifications
You must be signed in to change notification settings - Fork 13
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
fix: Avoid crash when file in repo contains non-unicode characters #59
Conversation
I agree that this seems safe, but would like confirmation from one more dev just in case there's a use case I'm missing. |
I was able to reproduce this by attempting to read a Linux executable (or shared library, or similar binary). |
src/rapids_dependency_file_generator/rapids_dependency_file_generator.py
Outdated
Show resolved
Hide resolved
src/rapids_dependency_file_generator/rapids_dependency_file_generator.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Discussed with @vyasr and this seems like a reasonable fix. I found a way to reproduce this locally, so we're good to merge once my suggestion is applied.
…nerator.py Co-authored-by: Bradley Dice <[email protected]>
Committed. Thanks! |
🎉 This PR is included in version 1.7.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
## [1.7.2](rapidsai/dependency-file-generator@v1.7.1...v1.7.2) (2023-12-13) ### Bug Fixes * Avoid crash when file in repo contains non-unicode characters ([#59](rapidsai/dependency-file-generator#59)) ([f178845](rapidsai/dependency-file-generator@f178845)), closes [#58](rapidsai/dependency-file-generator#58)
This fix prevents a crash when using
--clean
on a repo where a file contains non-unicode characters. Fix seems benign since any file with non-unicode characters likely wasnt created by this tool.Closes #58