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

Make solver errors explicit #10

Closed
rmarquis opened this issue Feb 17, 2018 · 4 comments
Closed

Make solver errors explicit #10

rmarquis opened this issue Feb 17, 2018 · 4 comments
Labels
enhancement New feature or request

Comments

@rmarquis
Copy link

One aspect of pacaur that is quite useful is that the solver pinpoints encountered errors, helping the user to know which package should be fixed by its maintainer. This is especially useful when upgrading a set of AUR packages, with one of them having an erroneous dependency deeply hidden in the tree.

Note that I'm using a very simple case here, but a more extreme case has been decribed here.

Compare:

$ pacaur -S aura
:: Package aura not found in repositories, trying AUR...
:: resolving dependencies...
:: no results found for haskell-aur>=6.0 (dependency tree: aura haskell-aur)
$ aurman -S --pk aura

analyzing installed packages...
fetching upstream repo packages...
fetching needed aur packages...
calculating solutions...
2018-02-17 15:36:47,561 - classes - validate_and_choose_solution - ERROR - No valid solutions found
we could not find a solution.
if you think that there should be one, rerun aurman with the --deep_search flag

Note: Using the --deep_search flag produces the same output.

I'd suggest adding more explicit error messages with the following objectives:

  • make it easy to locate the faulty PKGBUILD
  • determine which is the target requiring that dependency, so it can be --ignored allowing the update of the others packages
  • instead of stopping at the first detected error, find all errors at once then stops
@polygamma
Copy link
Owner

polygamma commented Feb 17, 2018

8d1a4cd

How do you think about this?

@polygamma
Copy link
Owner

polygamma commented Feb 17, 2018

Added example screenshot for plasma-git-meta

screenshot from 2018-02-17 21-09-15

@rmarquis
Copy link
Author

Much better, thanks!

While searching for solutions the following errors occurred:
Not provided: haskell-aur>=6.0 but needed by aura-1.4.0-1

@polygamma
Copy link
Owner

Should be fine now.

screenshot from 2018-02-23 16-13-20

@polygamma polygamma added the enhancement New feature or request label Mar 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants