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

Error message in case of circular dependencies #387

Open
nbenn opened this issue Oct 7, 2024 · 0 comments
Open

Error message in case of circular dependencies #387

nbenn opened this issue Oct 7, 2024 · 0 comments

Comments

@nbenn
Copy link

nbenn commented Oct 7, 2024

This is a duplicate of #357 (with a different scope for a possible "fix"):

Having two packages (A and B) directly depend on each other, as part of a call to pak::lockfile_install(), will generate an error as

Error: 
! error in pak subprocess
Caused by error in `select_next_task(state)`:
! Cannot select new package installation task.
ℹ 2 packages still waiting to install: A and B.
ℹ This is an internal error in pkgdepends, please report an issue at
  <https://github.com/r-lib/pkgdepends/issues>.

Ofc this is a "user error". Nevertheless: a more specific error msg could very much help getting to the underlying issue quicker.

The same issue also came up in #306, where a more telling error message could have been helpful as well.

(I am opening this here even though the problem came up with pak, on account of clear directions to do so in the mentioned error msg.)

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

No branches or pull requests

1 participant