modm-io / lbuild

lbuild: a generic, modular code generator in Python 3

Home Page:https://pypi.org/project/lbuild

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove previously build files when configuration changes

dergraaf opened this issue · comments

If a file has been previously been build by lbuild, it should be removed if the configuration is changed (e.g. when a module is no longer included). Currently the files stay there until they are manually deleted. Other files which have been added by a user should not be removed.

YES! I've been meaning to add file hashes to the build log of both the repository files (ie. module.lb and file operation inputs) as well as the output files, so that you can have a better understanding of what exactly changed.

lbuild can then correctly warn you about files that would be overwritten.
And lbuild may also rebuild just one module and it's dependencies.