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

Try resolve before nuking the manifest #3071

Open
aplavin opened this issue Oct 23, 2024 · 0 comments
Open

Try resolve before nuking the manifest #3071

aplavin opened this issue Oct 23, 2024 · 0 comments

Comments

@aplavin
Copy link
Contributor

aplavin commented Oct 23, 2024

Whenever Pluto cannot instantiate the env, it removes the manifest completely:

Operation failed. Updating registries and trying again...
  exception = 
    Unsatisfiable requirements detected for package Statistics [10745b16]:
     Statistics [10745b16] log:
     ├─possible versions are: 1.11.0 - 1.11.1 or uninstalled
     └─restricted to versions 1.10.0 by an explicit requirement — no versions left
    Updating registry at `~/.julia/registries/General.toml`
Warning: Operation failed. Removing Manifest and trying again...
  exception = 
    Unsatisfiable requirements detected for package Statistics [10745b16]:
     Statistics [10745b16] log:
     ├─possible versions are: 1.11.0 - 1.11.1 or uninstalled
     └─restricted to versions 1.10.0 by an explicit requirement — no versions left

I believe the most common scenario when it happens is a Julia version update (like in this example).

This automatic behavior is much more destructive compared to the Julia REPL suggestion of running ]resolve. Removing manifest leads to up/downgrading of all dependencies, basically whatever the Pkg resolver wants to do from scratch.

Can Pluto at least try ]resolve first to keep the manifest as long as possible?
And potentially – ask the user for an explicit confirmation before performing the destructive action of dropping the manifest...

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