1include "library"; 2 3# This filters out modules with "interesting" deps 4def filterVariantTransitions: 5 .[] | transformModuleReferences(emptyIfNull | removeLinkVariation | removeEmptyVariations) | 6 filterMatchingDeps | select(.Deps | length > 0) | 7 depDelta(.Variations) | depDelta(.DependencyVariations) | 8 transformModule(flattenVariations) | 9 deleteDependencyVariations | 10 .Deps |= map(deleteDependencyVariations) | 11 .Deps |= groupDeps 12; 13 14[filterVariantTransitions] | sort_by(.Name) | sort_by(.Type) | .[] 15