Ejemplo n.º 1
0
def get_goarch_to_platform_mapping(workflow, descriptors_fallback=NO_FALLBACK):
    platform_descriptors = get_platform_descriptors(
        workflow,
        fallback=descriptors_fallback,
    )
    return DefaultKeyDict((descriptor['architecture'], descriptor['platform'])
                          for descriptor in platform_descriptors)
Ejemplo n.º 2
0
 def goarch_to_platform_mapping(self):
     return DefaultKeyDict(
         (descriptor['architecture'], descriptor['platform'])
         for descriptor in self.platform_descriptors)