fix saving inputs with no metadata
save build inputs on build start
save build input metadata
deps