theoremlp / rules_multitool

Bazel rules for ergonomic tool definitions
Apache License 2.0
22 stars 6 forks source link

Unused tools are fetched #59

Open alexeagle opened 1 week ago

alexeagle commented 1 week ago

I'd expect that if I add an entry to multitool.lock.json which is not referenced anywhere, the corresponding toolchain will be defined but the tool itself is never fetched.

However https://github.com/theoremlp/rules_multitool/pull/58 shows a reproduction adding a new entry and it DOES get fetched. This means users with a big lockfile (or who accumulate third-party lockfiles into their hub, such as from rules_lint) will spend time fetching tools they don't need.