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

2023-01-12 - asdf の plugin を main や master といった default ブランチ以外を指定して使う #201

Closed kachick closed 1 year ago

kachick commented 1 year ago

asdf は plugin ベースで、各 plugin は git で管理することになっている。 当然、開発時なんかは作業用ブランチを指定したくなる。 動作確認用のコマンドとして plugin test というのがあり、これには --asdf-plugin-gitref で指定できるようになっているんだけど、そもそも暫く fork して様子見したいような時には実際に使用するブランチを指定したくなる。 が、 plugin add にはこの機能がない。安定版以外を使わせるなーということなのかもだけれど、どうしたもんかなと思ったら plugin update 側には指定できる機能が用意されていた。ということで、一旦普通に add してから ref 指定の update をかければ済む。

❯ asdf plugin add my-awesome-plugin git@github.com:kachick/asdf-my-awesome-plugin.git
❯ asdf plugin update my-awesome-plugin struggling-branch
kachick commented 1 year ago

PR出てた https://github.com/asdf-vm/asdf/pull/1204