You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(resolver): Indicate dependency class in resolution constraint text
This commit introduces a String() method to the Predicate interface, implementations
of which are used to build clauses that are fed to the sat solver. Calling the
predicate.String() method enhances the error messages displayed when dependency
resolution fails.
For example, an error message previously due to an unsatisfyiable contraint was
diplayed as
```
ResolutionFailed' constraints not satisfiable: bundle etcdoperator-community.v0.6.1 has
a dependency without any candidates to satisfy it, subscription etcd requires
my-catalog/olm/alpha/etcdoperator-community.v0.6.1, subscription etcd exists
```
With this commit, the same error is displayed as:
```
ResolutionFailed' constraints not satisfiable: bundle etcdoperator-community.v0.6.1 requires
an operator with package:foo and with version in range:>0.27.0, subscription etcd requires
my-catalog/olm/alpha/etcdoperator-community.v0.6.1, subscription etcd exists
```
Signed-off-by: Anik Bhattacharjee <[email protected]>
0 commit comments