Provide a rule to construct a JSON formatted mapping of components
To allow for dependency resolution and batch processing of components based on fmris it would be useful to build a mapping between fmris and component directories.
This mapping consists of a JSON formatted file containing component entries with:
mapping.json file is constructed by bass-o-matic by iterating on the component directories and reading the pkg5 JSON file holding metadata:
- the file is created using
print-required-packagesif it does not exist,
- an error is thrown if the list of supplied packages is empty.