Closed agoessling closed 2 months ago
I guess you're using WORKSPACE and not bzlmod, since the MODULE.bazel file in this repo already has a minimum of bazel-lib 2.5.0. See #354
I don't think so, the reproduction branch I linked above doesn't even have a WORKSPACE file, only MODULE.bazel:
Also note, the required dependency is >2.5.0, 2.5.0 is in the MODULE.bazel file and it doesn't work.
@alexeagle I'm not sure this should be closed. Did you take a look at the branch that is reproducing this issue? It is using bzlmod. The issue isn't with not having 2.5.0, 2.5.0 is not enough. 2.7.7 makes it work. Note: rules_lint contains an override to 2.7.7. Sorry I haven't done a good job explaining the issue. The reproduction steps above are probably the best way to demonstrate the problem.
What happened?
The
clang-tidy
aspect contains an undeclared dependency onbazel-lib
2.7.7 (or at least one >2.5.0). If you pare theexample
module down to just theclang-tidy
relevant code, you technically don't need to depend onbazel-lib
directly, but when you remove this dependency the version inrules_lint
(2.5.0) is insufficient. If you change the dependency inrules_lint
to 2.7.7, things work as expected.Version
Development (host) and target OS/architectures: linux x86
Output of
bazel --version
: bazel 7.2.1Language(s) and/or frameworks involved: C/C++ clang-tidy
How to reproduce
Any other information?
No response