RaspberryPiFoundation / lesson_format

Lesson formatter
17 stars 28 forks source link

Clean up output as we go #71

Closed andylolz closed 5 months ago

andylolz commented 9 years ago

If lessons are reordered or filenames change, lesson_format will create new directories but it won’t clean up the old ones. This results in a big mess of stale files.

andylolz commented 9 years ago

This is actually addressed by @codeclubrobot. By deleting everything and rebuilding from from scratch, there’s no chance that any stale files can hang around. UPDATE: it turns out doing this full rebuild is very slow, so @codeclubrobot doesn’t do it anymore.

UPDATE UPDATE: Currently, this cleanup is always done. It is slow, and a bit bodgy. Rewriting build.py to use git would be great, but I am going to hold off on that one for now.