ianmiell / shutit

Automation framework for programmers
http://ianmiell.github.io/shutit/
MIT License
2.15k stars 111 forks source link

Functionality to check compatibility of modules #100

Closed ianmiell closed 10 years ago

ianmiell commented 10 years ago

Since we have allowed_modules we should be able to indicate in the GUI whether a build "makes sense" and advise to change the base image or whatever.

ianmiell commented 10 years ago

def config_collection_for_built(shutit): """Collect configuration for modules that are being built. When this is called we should know what's being built (ie after dependency resolution). """ for mid in module_ids(shutit): if (not shutit.shutit_map[mid].get_config(shutit) and shutit.cfg[mid]['build']): shutit.fail(mid + ' failed on get_config')

Above needs to be changed to read in the build.cnf. The build auto-config can stay and the build can be removed from the build.cnfs.