fossas / fossa-cli

Fast, portable and reliable dependency analysis for any codebase. Supports license & vulnerability scanning for large monoliths. Language-agnostic; integrates with 20+ build systems.
https://fossa.com
Other
1.27k stars 174 forks source link

Don't put files in subdir when extracting #1425

Closed jssblck closed 5 months ago

jssblck commented 5 months ago

Overview

Updates the EmbeddedBinary logic to suffix the fossa-vendor directory name with a UUID instead of nesting a UUID folder inside.

This provides complete isolation to multiple callers, such that even if they (or a system process) cleans up the parent after they're done they don't mess with other callers.

Acceptance criteria

Integration tests pass again

Testing plan

Relying on integration tests- if this breaks anything with extraction we'll get way more errors, if this fixes the issue observed in other PRs we'll get none.

Risks

None

Metrics

None

References

Resolves https://fossa.atlassian.net/browse/ANE-1742

Checklist