-
Notifications
You must be signed in to change notification settings - Fork 156
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
Race condition in reuse lint
causes unnecessary failures
#1121
Comments
Reuse is about ensuring that all files have proper licensing and copyright information. Having files appear/disappear while reuse is running seems to undermine that goal. Personally, I'd really not want reuse to try to be clever in such cases, and I want it to fail. |
Hmm, my use case is that I'd like to run Also, if files are created after |
Run reuse before anything else. There should be no need to do it concurrently, as reuse does not take a long time to finish. Alternatively - how about list the (I guess) files generated by other parts of the build system into |
Hmm, but they are... Ah, I think I see the problem: the particular situation in which this arose for me was testing generated projects from a template, and the generation does not do |
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:reuse-tool/src/reuse/report.py
Line 730 in a7896a5
I think this situation should not cause
reuse lint
to fail but rather be handled gracefully by simply ignoring files that no longer exist.The text was updated successfully, but these errors were encountered: