Skip to content

Race condition in reuse lint causes unnecessary failures #1121

Open
@CobaltCause

Description

reuse lint appears to collect a list of paths to check and then iterate over the collected paths and generate a report for them. If a file is created in time for it to be collected into the list and deleted before its report gets generated, reuse lint fails. I believe the root cause is the exception raised here:

raise OSError(f"{path} is not a file")

I think this situation should not cause reuse lint to fail but rather be handled gracefully by simply ignoring files that no longer exist.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions