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

Unable to specify a target_pattern_file #207

Open
FBorowiec opened this issue Aug 12, 2024 · 0 comments
Open

Unable to specify a target_pattern_file #207

FBorowiec opened this issue Aug 12, 2024 · 0 comments

Comments

@FBorowiec
Copy link

FBorowiec commented Aug 12, 2024

Hi! First of all let me tell you your tool is very useful and I've been relying on it for all my c++ Bazel projects! :)

As far as I understood the refresh_bazel_commands requires a target list otherwise it will default to all the targets in the main workspace: hedronvision/bazel-compile-commands-extractor/refresh_compile_commands.bzl#L70

I would like to use the target_pattern_file with the list of targets I want to build bazel.build/reference/command-line-reference#flag--target_pattern_file

As per the docu:
If set, build will read patterns from the file named here, rather than on the command line. It is an error to specify a file here as well as command-line patterns.

Currently I load all my targets into a separate .bzl file that contains a dict of the same targets as my target file (with the proper configs)

Is there a way of doing that?

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

No branches or pull requests

1 participant