(lifecycleDescriptor LifecycleDescriptor, allExtensions []dist.ModuleInfo, extsToValidate []buildpack.BuildModule)
| 931 | } |
| 932 | |
| 933 | func validateExtensions(lifecycleDescriptor LifecycleDescriptor, allExtensions []dist.ModuleInfo, extsToValidate []buildpack.BuildModule) error { |
| 934 | extLookup := map[string]interface{}{} |
| 935 | |
| 936 | for _, ext := range allExtensions { |
| 937 | extLookup[ext.FullName()] = nil |
| 938 | } |
| 939 | |
| 940 | for _, ext := range extsToValidate { |
| 941 | extd := ext.Descriptor() |
| 942 | if err := validateLifecycleCompat(extd, lifecycleDescriptor); err != nil { |
| 943 | return err |
| 944 | } |
| 945 | } |
| 946 | |
| 947 | return nil |
| 948 | } |
| 949 | |
| 950 | func validateLifecycleCompat(descriptor buildpack.Descriptor, lifecycleDescriptor LifecycleDescriptor) error { |
| 951 | compatible := false |
no test coverage detected