-
Notifications
You must be signed in to change notification settings - Fork 58
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
custom .clang-tidy
config not used for specific targets
#69
Comments
Hi, thanks for the report. I fetched redpanda, but couldn't repro the issue. Bazel aquery shows that the config file is in the input set, and it is passed on the command line, regardless the target spec. How do you know it isn't picked up? |
@erenon thanks for taking a look.
I put garbage into the Here is how I reproduced the issue:
Here is the version that fails, as expected (notice it chokes on .clang-tidy input):
then in this version it passes
|
any thoughts on this? i'll probably have some time to take a closer look, but just wondering if this experiment is valid or not. |
I'm unable to repro this. I can't build redpanda completely, so I removed the deps from
I think there's something else going on with a different target. can you narrow down the target that doesn't fail as expected? |
Great project, thanks!
I'm using the following setup with the latest HEAD and bazel 7.3.1.
What I'm seeing is that the
.clang-tidy
file in the root of our project is being used when I runBut it is not being used when I build targets in subprojects like
The method I used to verify this is to add an explicit syntax error into
.clang-tidy
. The former invocation fails as expected, the later ones do not. Presumably they are using the.clang-tidy
file that ships with this project.Is this expected? Is there a way to fix it?
The text was updated successfully, but these errors were encountered: