-
Notifications
You must be signed in to change notification settings - Fork 1
refactor: properly report more error types from dep solver #149
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
Open
andrius-puksta-sensmetry
wants to merge
27
commits into
main
Choose a base branch
from
ap/solver-errors
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5b8b3a8 to
8b75a11
Compare
This was referenced Dec 29, 2025
7590c2d to
1e7b3ce
Compare
e8eba6f to
2e45160
Compare
Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
… validation Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
…nsure that we don't generate invalid lockfiles Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
Uses Debug impl, since Display impl does not include all details Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
…ired version is not found Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
2e45160 to
a27503f
Compare
…n constraint Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
…versions Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
7092059 to
e10a482
Compare
Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
e10a482 to
0660cad
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note for reviewers: this is best reviewed commit-by-commit, since commits are largely self-contained.
Changes:
Example lockfile fragment before:
Example after:
cargo test, since we have none. This cleans upcargo testoutput.Fixes
Report a proper error when package was not found:
instead of previous:
Error message could be improved, but at least now it's explicitly checked and handled.
Report a proper error when required package version was not found:
instead of previous:
Fixes #108.
Use
Debugimpls ofreqwest(_middleware)errors to get all error details, sinceDisplayimpls give no details. This makes errors look uglier. Current:Previous:
Other fixes:
sysand add: run package and dependency resolver before adding the requested package to.project.jsonRefactor
sysand syncto not re-read lockfile it just generatedDeps
logosto 0.16; this version changes semantics of regexes to work properly and (probably) no longer be too greedy. This PR does not change our usage oflogos, asidde from fixing line comment parsing.