-
Notifications
You must be signed in to change notification settings - Fork 409
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
Print All Outdated Packages #8031
Comments
I agree that it would be useful. Quick question about the semantics however: If you use a switch, should it use the version installed in the switch? Or should it require the packaging support? I would somewhat prefer the latter, as it is an easier problem to tackle especially with potentially pinned dependencies. But it also makes the command less generally useful. |
Could the command be used to update the lockfile too? If it is exposed in Dune RPC, we could even have a code action in the editors to upgrade the packages to the latest version. |
Just a reminder that we will make no references to existing opam switches in the released version. So the latest version will be taken from the internally stored opam repository.
It could, but we first need to define what an "upgrade" is. It might help to remember that we only have this process for updating the build plan:
In particular, this process cannot refer to the existing build plan. All other high level operations such as upgrades, adding new packages, removing new packages must be imitated by that simple process above. Once we define what an upgrade is, we can add support to it via RPC, cli, etc. |
Do we want to query the repo and print outdated versions or run the solver and print versions that will be updated if locked again?
|
I can see a use case for both options. |
@gridbugs I've gone for the first as it isn't really up to this command to decide what can actually be upgraded. That's the job of |
Version selection aside, it would be independently useful to know which packages are currently out of date with respect to the opam-repository. I propose that we add a command:
dune pkg outdated
that would print all immediate dependencies that are out of date. It may also accept a--transitive
flag to print all outdated transitive dependencies as well. This command should not modify anything in the workspace.@Leonidas-from-XIV @gridbugs do you think this will be useful?
The text was updated successfully, but these errors were encountered: