asdf icon indicating copy to clipboard operation
asdf copied to clipboard

[feature request ]asdf migrate command

Open cocoonkid opened this issue 3 years ago • 3 comments

Is your feature request related to a problem? Please describe

I'm changing python version relatively often and I'd like to move all pip installed packages with me.

Or at least have an easy way to reinstall them with the new version.

Describe the proposed solution

A "asdf migrate 3.9.4 3.9.6" command would be a real helper.

Same goes for npm, gem etc.

I hope that makes sense :)

Describe similar asdf features and why they are not sufficient

none

Describe other workarounds you've considered

only manually migrating the packages by listing them into a file , switching version and then reinstalling them.

Every time, for multiple package managers.

cocoonkid avatar Aug 07 '21 13:08 cocoonkid

Some plugins (nodejs, python and other common ones) implement a "default packages" feature which gives this type of feature but at install time - https://github.com/danhper/asdf-python#default-python-packages

jthegedus avatar Aug 08 '21 01:08 jthegedus

thanks @jthegedus , this already helps a little but does not solve the whole idea for me.

cocoonkid avatar Aug 22 '21 07:08 cocoonkid

It would be nice if this default packages feature could be native to asdf, maybe integrating them in the .tool-versions file.

KlausEverWalkingDev avatar Aug 22 '21 15:08 KlausEverWalkingDev