Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typosをアップデートできるようにする #2585

Closed
Hiroshiba opened this issue Mar 2, 2025 · 1 comment · Fixed by #2595
Closed

typosをアップデートできるようにする #2585

Hiroshiba opened this issue Mar 2, 2025 · 1 comment · Fixed by #2595

Comments

@Hiroshiba
Copy link
Member

内容

typosはnpm install時にdownload7z.mtsでダウンロードする方式を取っています。
download7z.mtsは現状typosのバージョン管理をしていません。

typosは見逃す単語がバージョンごとに異なり、ちゃんとアップデートもされているため、たまにアップデートしたくなります。
毎回開発者に手動更新してもらっても良いのですが、自動更新できるように作れると便利そうです。

ちなみに手動更新は以下のように行えます:

rm -r "./vendored/typos"
pnpm i

Pros 良くなる点

開発がより便利になる

実現方法

@sevenc-nanashi さんのコメントを転載:

  • 今URLを入れてるところをtar.gzについてるtriplet(x86_64-pc-windows-msvc)だけにして、
  • バージョンを定数としてURLの外に出して、
  • URLをバージョンとtripletから生成するようにして、
  • バージョンの書いたテキストファイルをtyposの隣に置くようにして、
  • ダウンロード時に更新チェック

あたりになるかと思います。

その他

関連:

@nanae772
Copy link
Contributor

nanae772 commented Mar 5, 2025

こちら私の方でやってみます~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants