juliaup icon indicating copy to clipboard operation
juliaup copied to clipboard

Handle environments when upgrading across a minor version bump

Open davidanthoff opened this issue 3 years ago • 3 comments

This suggestion comes from here.

I think one option would be that if juliaup update detects an update that increases the minor version of Julia, that it copies the older environment file to the new Julia minor version. I think I would limit it to this scenario, i.e. not do anything with downgrades or stuff like that.

One question is whether just copying the env is actually a good user experience? Or would we have to instantiate, build or do other things as well?

davidanthoff avatar May 27 '21 14:05 davidanthoff

I think that it would be good to instantiate the environment, too, so that the user is ready to use it.

Restricting to upgrades is fine for me, for downgrades one might run into issues with dependencies requiring newer Julia versions.

lungben avatar May 27 '21 14:05 lungben

I guess one other question, though, is whether this wouldn't be better handled in Julia itself? Not sure...

davidanthoff avatar May 27 '21 16:05 davidanthoff

I think at the end of the day this would be better handled in Julia itself. For example, if Julia 1.9.0 started, detected that no shared env for 1.9 exists, but there is one for 1.8, it could offer to migrate it, or something like that. But I do think this belongs into Julia, not Juliaup.

davidanthoff avatar May 10 '23 18:05 davidanthoff