kachick / times_kachick

`#times_kachick channel in chat` as a public repository. Personal Note and TODOs
https://github.com/kachick/times_kachick/issues?q=is%3Aissue+is%3Aclosed
6 stars 0 forks source link

2022-07-14 - asdf の shims で corepack だけ asdf のバージョンがハードコーディングされてて reshim 出来なかった & そもそも asdf で yarn を使うのに捻りが必要らしい #177

Closed kachick closed 2 years ago

kachick commented 2 years ago
❯ grep Cellar/asdf /home/kachick/.asdf/shims/*
/home/kachick/.asdf/shims/corepack:exec /home/linuxbrew/.linuxbrew/Cellar/asdf/0.9.0/libexec/bin/asdf exec "corepack" "$@"

更にこれも要る

https://github.com/asdf-vm/asdf-nodejs/issues/42#issuecomment-1136701667 https://github.com/kachick/public_dotfiles/commit/50447ac873a40b63a7141c59522207bfa37e6a41

どこでこの辺作られてるのかよくわかんなかった。 brew install と asdf の verup を asdf 自身にやらせることとかの合わせ技でおかしくなってるのかも?

https://github.com/asdf-vm/asdf-nodejs/tree/05f99c37d0de29e8ca2b9e90bb36910f56be34d0/shims

取り敢えず他の shim 同様 exec /home/kachick/.asdf/bin/asdf exec "corepack" "$@" とかに書き換えたら通った。