asdf-community / asdf-golang

Go plugin for the asdf version manager
https://github.com/asdf-vm/asdf
MIT License
545 stars 92 forks source link

slow asdf which go #141

Open rekby opened 2 months ago

rekby commented 2 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce

  1. install asdf with brew: brew install asdf
  2. asdf plugin add golang https://github.com/asdf-community/asdf-golang.git (i have installed from commit 0e86b1d5a7b2bf9ce39fc43b0ff6a744eaa269b8)
  3. check time
time asdf which go
/Users/rekby/.asdf/installs/golang/1.23.0/go/bin/go

________________________________________________________
Executed in  817.84 millis    fish           external
   usr time   28.10 millis    0.11 millis   27.99 millis
   sys time   71.79 millis    1.18 millis   70.61 millis

Expected behavior execute under 50ms

Desktop (please complete the following information):

Additional context After install ~/.asdf/plugins/golang/set-env.fish command asdf which go called every time when I do cd command and additional pause 0.8 second very visible.