You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 5, 2019. It is now read-only.
During the firmware flash process, we parse the module.json files from downloaded modules, but don't really use those definitions. This is because we must already have the module type described via fixture/db for the module type folder to have been downloaded in the first place. This is an unfortunate duplication.
Here's what I would like to do to simplify it:
Define modules as we do today, but within module, have a "firmware_repository" field that contains a git or pio dependency descriptor. This replaces the "type" field.
During install, fetch that dependency
Read the module type from the dependency's module.json
This way we don't have to manually write module types in our fixture files. All we have to do is describe a type dependency for each module config. Specifying a type is unnecessary in this scheme. The type is described in the firmware's module.json. Only the repository needs to be described.