Skip to content
  • Tristan Van Berkom's avatar
    _cas/cascache.py: Use utils._tempdir() and utils._tempnamedfile() · 8ce483d4
    Tristan Van Berkom authored
    The direct usage of tempfile.TemporaryDirectory() and
    tempfile.NamedTemporaryFile() here causes leakage of any temporary
    data when the process operating on temporary data is terminated
    with SIGTERM.
    
    Using the utilities ensures that trash is not left behind in
    ~/.cache/buildstream/artifacts/tmp when the user terminates
    BuildStream with ^C.
    8ce483d4