Added comment explaining why emitting optional locations

This commit is contained in:
Nir Gazit
2021-03-01 09:27:01 +02:00
parent ecdd407b1f
commit 2eab0de645
@@ -94,6 +94,9 @@ export class GithubDiscoveryProcessor implements CatalogProcessor {
type: 'url',
target: `${repository.url}${catalogPath}`,
},
// Not all locations may actually exist, since the user defined them as a wildcard pattern.
// Thus, we omit them as optional and let the downstream processor find them while not outputting
// an error if it couldn't.
true,
),
);