def make_bake_jsonfile(self) -> typing.Optional[str]:
    d = self.make_bake_dict()
    if (not d['group']['default']['targets']):
        return None
    groups = '-'.join(self.group_info.names)
    versions = '-'.join(self.group_info.versions)
    path = os.path.join(tempfile.gettempdir(), f'docker-bake-{self.group_info.type.name}-{groups}-{versions}.json')
    with open(path, 'w', encoding='utf-8') as f:
        json.dump(d, f, indent=4, sort_keys=True)
    return path
def make_bake_jsonfile(self) -> typing.Optional[str]:
    d = self.make_bake_dict()
    if (not d['group']['default']['targets']):
        return None
    groups = '-'.join(self.group_info.names)
    versions = '-'.join(self.group_info.versions)
    path = os.path.join(tempfile.gettempdir(), f'docker-bake-{self.group_info.type.name}-{groups}-{versions}.json')
    with open(path, 'w', encoding='utf-8') as f:
        json.dump(d, f, indent=4, sort_keys=True)
    return path