Closed clickot closed 3 weeks ago
i don't understand what cirrus is complaining about the code formatting, original and reformatted code looks equal to me... @PF4Public i'll double check if this PR is really needed
@PF4Public My main concern at the time was there were 76 files that would be listed.
When there are a lot files that will be listed you can end up in a situation where that list is longer than your terminal buffer, which pushed off the original error and leaves you with less helpful information. Maybe we could instead list the first half-dozen files with a following message saying something like "plus X more files" if there's more than that.
@clickot There's some whitespace at the end of the first line. I couldn't see the difference at first either.
Maybe we could instead list the first half-dozen files with a following message saying something like "plus X more files" if there's more than that.
That is a good idea! @clickot Would you be able to add this condition?
done as requested :) btw: after @Ahrotahn s question in #3069 and @PF4Public hint I noticed that the node_modules.tar.gz file exists after runing the clone script on it's own. so i restarted my build from scratch without removing the line from the pruning list and things went fine. So the reason for this PR has disappeared in a way... but nonetheless it might be useful in future cases :-)
Would it then make sense to keep listing all of the files with debug flag?
but nonetheless it might be useful in future cases :-)
absolutely! the original idea was even improved :)
Would it then make sense to keep listing all of the files with debug flag?
good idea, i'll add that line
@PF4Public @Ahrotahn since i have no write access, would one of you be so kind and merge this?
I guess we're both implicitly waiting for @networkException's comments or silent approval ;)
in case of missing files to prune the prune_binary.py should log their paths together with the error message to ease fixing this. Until now these paths were only logged when debug level is enabled.