Skip to content

Export a list of all tools in a hub as a Starlark constant#75

Merged
apalmer-theorem merged 1 commit intobazel-contrib:mainfrom
fmeum:tools-constant
May 5, 2025
Merged

Export a list of all tools in a hub as a Starlark constant#75
apalmer-theorem merged 1 commit intobazel-contrib:mainfrom
fmeum:tools-constant

Conversation

@fmeum
Copy link
Copy Markdown
Member

@fmeum fmeum commented May 4, 2025

This makes it easy to consume all available tools in other rules, such as bazel_env.bzl.

Strict visibility between modules using rules_multitool is preserved by requiring a load from the hub repo, which explicitly doesn't allow discovery of hub names.

Fixes buildbuddy-io/bazel_env.bzl#32

This makes it easy to consume all available tools in other rules, such as `bazel_env.bzl`.

Strict visibility between modules using rules_multitool is preserved by requiring a `load` from the hub repo, which explicitly doesn't allow discovery of hub names.
@fmeum fmeum marked this pull request as ready for review May 4, 2025 09:12
@fmeum
Copy link
Copy Markdown
Member Author

fmeum commented May 4, 2025

@apalmer-theorem Could you take a look? The linked issue provides more context, rules_multitool would work pretty well with bazel_env.bzl after this PR.

@alexeagle
Copy link
Copy Markdown
Contributor

Awesome thanks @fmeum

@apalmer-theorem apalmer-theorem enabled auto-merge (squash) May 5, 2025 17:08
@apalmer-theorem apalmer-theorem merged commit b447304 into bazel-contrib:main May 5, 2025
18 checks passed
@fmeum fmeum deleted the tools-constant branch May 5, 2025 19:18
@fmeum
Copy link
Copy Markdown
Member Author

fmeum commented May 5, 2025

@apalmer-theorem I would highly appreciate a release with this change. I would then be able to add test coverage and an example using rules_multitool to bazel_env.bzl.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Accept a tools_file

4 participants