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

repeated versions in solution failure print #302

Open
pawelru opened this issue Jan 25, 2023 · 1 comment
Open

repeated versions in solution failure print #302

pawelru opened this issue Jan 25, 2023 · 1 comment
Labels
bug an unexpected problem or unintended behavior

Comments

@pawelru
Copy link
Contributor

pawelru commented Jan 25, 2023

minimal reprex:

x <- pkgdepends::new_pkg_installation_proposal(c("cran/[email protected]", "cran/[email protected]", "cran/[email protected]", "cran/[email protected]", "cran/[email protected]"), config = list(library = tempfile()))
x
x$solve()
x$get_solution()

outcome:

r$> x$get_solution()
<pkg_solution>
+ result: FAILED
(...)
x failures:
* cran/[email protected]: Can't install dependency rlang (>= 0.4.0)
* rlang: Conflicts with cran/[email protected]
* cran/[email protected]:
  * Can't install dependency purrr
  * Can't install dependency tibble
* purrr:
  * Can't install dependency cli (>= 3.4.0) (>= 1.0.3) (>= 1.5.0) (>= 0.4.10)
  * Can't install dependency lifecycle (>= 1.0.3) (>= 1.5.0) (>= 0.4.10)
  * Can't install dependency magrittr (>= 1.5.0) (>= 0.4.10)
  * Can't install dependency rlang (>= 0.4.10)
* cli: Conflicts with cran/[email protected]
* lifecycle: Conflicts with cran/[email protected]
* magrittr: Conflicts with cran/[email protected]
* tibble:
  * Can't install dependency lifecycle (>= 1.0.0) (>= 1.0.2)
  * Can't install dependency rlang (>= 1.0.2)

Please have a look at the report for purr. For the very first child rows it lists all the versions (i.e. cli (>= 3.4.0) (>= 1.0.3) (>= 1.5.0) (>= 0.4.10) whereas it should be cli (>= 3.4.0) only.

@gaborcsardi
Copy link
Member

For the record, that happens because different packages have different version requirements. We could "collapse" them into a single one, it is not entirely straightforward, though.

@gaborcsardi gaborcsardi added the bug an unexpected problem or unintended behavior label Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants