Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error graph for failed solve #1474

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

jonjohnsonjr
Copy link
Contributor

We were missing a couple of edges that would help make it clearer why we were solving a constraint.

In particular, this DepError was problematic:

return nil, nil, &DepError{pkg, err}

We were returning an error for the outer "pkg" and not including the context of the constraint within that package being solved or the failure of the selected package to solve its deps.

We were missing a couple of edges that would help make it clearer why
we were solving a constraint.

In particular, this DepError was problematic:

https://github.com/chainguard-dev/apko/blob/995ee5a40608591b2c4d2e7893abdffeca93f6ff/pkg/apk/apk/repo.go#L798

We were returning an error for the outer "pkg" and not including the
context of the constraint within that package being solved or the
failure of the selected package to solve its deps.

Signed-off-by: Jon Johnson <[email protected]>
@imjasonh imjasonh merged commit bf582ad into chainguard-dev:main Jan 9, 2025
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants