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

oss-detect-cryptography directory issues #383

Closed
vturecek opened this issue Dec 22, 2022 · 0 comments · Fixed by #384
Closed

oss-detect-cryptography directory issues #383

vturecek opened this issue Dec 22, 2022 · 0 comments · Fixed by #384

Comments

@vturecek
Copy link
Contributor

Ran into a couple breaking issues with the way directories are handled (Windows and Linux).

  • When a destination directory is not provided, a temp directory name is generated. However, the temp directory is not created before attempting to open a file stream to a file in a subdirectory in the temp directory, leading to an IO exception.
  • When extracting archives for packages with a forward slash in the name (e.g., most golang packages), the extractor ignores the parent path segments in the name, so the resulting extraction directory does not match the returned path, and the operation fails because it can't find the directory that was just extracted.
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 a pull request may close this issue.

1 participant