eclipse-score / eclipse-score/devcontainer

relax run-tool

クローズ
#148 コメント 1 件 リアクション 0 件 担当者 1 名 @naveena456 が担当を希望しています GitHub で見る
good first issue
主要言語
Shell
スター
5
フォーク
9
平均マージ
16時間 28分
マージ済み PR(30日)
5

説明

When executed without a devcontainer `run-tool` will run it via bazel, even if the tool is installed locally. Thats a waste of time, considering how slow bazel is.

At the time of writing this https://github.com/eclipse-score/devcontainer/tree/main/tools lists `pre-commit` with version `4.5.1`. So If I have that already installed, there is no reason to run uv via bazel.

Suggested approach:
* if the tool is available, query its version. Beware that version flags are inconsistent across tools
* if the version matches exactly, use the tool directly. Future enhancement: fuzzy match, e.g. same major or same major+minor.
* add a --strict flag to the script, which will not use local tools

Note: this is labeled `good first issue` not because its trivial, but because it has a very clear scope.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。