dotfiles icon indicating copy to clipboard operation
dotfiles copied to clipboard

`pkgx` transformation

Open felipecrs opened this issue 2 years ago • 6 comments

pkgx can solve a bunch of problems. It can potentially replace SDKMAN!, Volta and even Homebrew in my dotfiles, which would be a huge plus for me.

Also, installing tools with it is very fast since only shims are created. When running such tools for the first time, then it takes care of downloading them.

TODOs

  • [x] Support for symbolic links for shims on Linux (https://github.com/teaxyz/cli/issues/620)
    • I gave up on this, I'm ok with shims for now.
  • [x] https://github.com/teaxyz/cli/issues/667
    • Is not going to happen soon, but I'm ok for now.
  • [x] https://github.com/teaxyz/cli/issues/664
  • [x] https://github.com/teaxyz/cli/pull/675
    • Is not going to happen, but it is not a problem.
  • [x] Support for installing Java (so that I can replace SDKMAN!) (https://github.com/teaxyz/pantry/issues/89)
  • [ ] https://github.com/pkgxdev/pkgx/pull/980 (so that I can replace Volta)
  • [x] Remove SDKMAN!, use pkgx instead
  • [ ] Remove Volta, use pkgx instead
  • [ ] Remove Homebrew, use pkgx instead

felipecrs avatar Jul 26 '23 15:07 felipecrs

Did you take a look at asdf? for us, it was the holy grail :D

jrpedrianes avatar Jul 31 '23 17:07 jrpedrianes

Oh, yeah, I knew asdf. Thank you.

Whilst definitively better than SDKMAN! and NVM, I didn't want to integrate it because it suffers of the same problems that SDKMAN!, NVM and others do: they need instructions to be injected in the shell to work.

That's why I switched away from NVM to Volta.

While tea.xyz also injects to the shell, it's actually optional. Tea can also work through symbolic links.

felipecrs avatar Jul 31 '23 17:07 felipecrs

I'm going to deep into tea.xyz to know how it's works under the hood and know if it has all the features/integrations that we have available with asdf.

Thanks for your feedback 🥳

Thanks to asdf we remove all tools manager that we was using: pyenv, nvm, sdk... and use only one for all: one tool to rule them all 😂

Maybe is time to change? 🤔

jrpedrianes avatar Jul 31 '23 18:07 jrpedrianes

I would say that, if it's working for you and you have no complaints about it, don't change.

Also, Tea is very new, it will most likely miss some feature from asdf.

By the way, as you mentioned pyenv, one thing that I never liked about it is that it takes a lot of time to install new Python versions (because it builds Python from source, and so does asdf).

Tea on the other hand installs Python from precompiled binaries. It's so much faster! :)

felipecrs avatar Jul 31 '23 19:07 felipecrs

https://github.com/felipecrs/dotfiles/assets/29582865/b4c356a3-e437-44a6-b722-17257fed630e

felipecrs avatar Jul 31 '23 19:07 felipecrs

Now for me install a new python 🐍 version is a coffee ☕️ break 😂

Thanks for the feedback

jrpedrianes avatar Aug 01 '23 10:08 jrpedrianes