Repository navigation
Alternative approach: a separate repo with --deleted_packages #780
pauldraper
started this conversation in
Ideas
Replies: 1 comment
|
Yes that's an interesting approach! Repos like rules_pkg that manually maintain a tree of "all_files" filegroups would benefit too. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This an approach I've been doing for years. Maybe it's help to consider, maybe not, but thought I'd share.
You can see it in action here: https://github.com/redoapp/bazel-util
@files) that has a symlink to your workspace https://github.com/redoapp/bazel-util/blob/main/tools/file/file.MODULE.bazel@files) repo: https://github.com/redoapp/bazel-util/blob/main/tools/file/files.bazelrcglob()anything in that repo: https://github.com/redoapp/bazel-util/blob/main/tools/file/files.BUILD.bazel.The nice part is that it just works for everything. Even things aren't part of Bazel rules....non-Bazel projects, Markdown files, example snippets, GitHub Actions YAML, whatever.
The downside is that you have to update a (very long) bazelrc file. (Hopefully one day that will be improved: bazelbuild/bazel#28844)
All reactions