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)
def goarch_to_platform_mapping(self): return DefaultKeyDict( (descriptor['architecture'], descriptor['platform']) for descriptor in self.platform_descriptors)