Skip to content

[container] Temp directories are no longer cleared #1234

@prabhu

Description

@prabhu

My laptop ran out of disk space. Noticed that the temp directories are not getting cleared for certain scan types any more. While I can't remember the original commit, I remember removing the clean up code to make createMultiXBom work (A method that needs to be rewritten!)

In particular the following temp directory patterns are not getting removed cleanly.

/tmp/docker-images-*
/tmp/jar-deps-*
/tmp/cdxgen-venv-*

To resolve this, we need to create a parent temp directory (or accept one via cli args), and pass this to the individual methods via options. This way, the directory can be consistently removed in postgen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Complete

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions