circular dependency in latest rolling with rules_cc and bazel_tools
- Dominant language
- Java
- Stars
- 25.8k
- Forks
- 4.6k
- Avg merge
- 2d 20h
- Merged PRs (30d)
- 72
Description
### Description of the bug:
A brief FYI about what might be a circular dependency in the latest rolling release between rules_cc and some bazel_tools builtins.
https://buildkite.com/bazel/rules-python-python/builds/13179/steps/canvas?sid=019993d3-a320-4956-b3dc-d931638405cf
```
(04:57:18) ERROR: /var/lib/buildkite-agent/.cache/bazel/_bazel_buildkite-agent/ec321eb2cc2d0f8f91b676b6d4c66c29/external/bazel_tools/tools/def_parser/BUILD:14:10: in filegroup rule @@bazel_tools//tools/def_parser:def_parser: cycle in dependency graph:
//tests/base_rules/py_test:test_basic_windows (722aae7b58f320c4025775439ffbbc44b718a0727831fd3b9f0f2593de80affa)
//tests/base_rules/py_test:test_basic_windows_subject (8de3dd7f088b7db02a9715c1ba66e744d6e018213843b90df818a136d2d80af3)
@@bazel_tools//tools/test:collect_coverage (3f39976c4854c2284611ebcb922204620a6649d745456440f11f29d2c3c9bc7f)
@@bazel_tools//tools/test:collect_coverage (149f681a57ed8d9c55d6ae20c0aea56dadf6cabd8a97d3b3f8a254821522eab5)
@@rules_shell++sh_configure+local_config_shell//:windows_sh (149f681a57ed8d9c55d6ae20c0aea56dadf6cabd8a97d3b3f8a254821522eab5)
@@bazel_tools//tools/launcher:launcher (149f681a57ed8d9c55d6ae20c0aea56dadf6cabd8a97d3b3f8a254821522eab5)
@@bazel_tools//tools/launcher:2_source_launcher_toolchain_impl (149f681a57ed8d9c55d6ae20c0aea56dadf6cabd8a97d3b3f8a254821522eab5)
@@bazel_tools//src/tools/launcher:launcher (149f681a57ed8d9c55d6ae20c0aea56dadf6cabd8a97d3b3f8a254821522eab5)
@@bazel_tools//src/tools/launcher:bash_launcher (149f681a57ed8d9c55d6ae20c0aea56dadf6cabd8a97d3b3f8a254821522eab5)
@@bazel_tools//src/tools/launcher:launcher_base (149f681a57ed8d9c55d6ae20c0aea56dadf6cabd8a97d3b3f8a254821522eab5)
@@bazel_tools//src/main/cpp/util:filesystem (149f681a57ed8d9c55d6ae20c0aea56dadf6cabd8a97d3b3f8a254821522eab5)
@@bazel_tools//src/main/cpp/util:blaze_exit_code (149f681a57ed8d9c55d6ae20c0aea56dadf6cabd8a97d3b3f8a254821522eab5)
.-> @@bazel_tools//tools/def_parser:def_parser (149f681a57ed8d9c55d6ae20c0aea56dadf6cabd8a97d3b3f8a254821522eab5)
| @@bazel_tools//third_party/def_parser:def_parser (149f681a57ed8d9c55d6ae20c0aea56dadf6cabd8a97d3b3f8a254821522eab5)
| @@rules_cc+//:link_extra_lib (149f681a57ed8d9c55d6ae20c0aea56dadf6cabd8a97d3b3f8a254821522eab5)
`-- @@bazel_tools//tools/def_parser:def_parser (149f681a57ed8d9c55d6ae20c0aea56dadf6cabd8a97d3b3f8a254821522eab5)
```
### Which category does this issue belong to?
_No response_
### What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
_No response_
### Which operating system are you running Bazel on?
Linux
### What is the output of `bazel info release`?
9.0.0-pre.20250916.1
### If `bazel info release` returns `development version` or `(@non-git)`, tell us how you built Bazel.
_No response_
### What's the output of `git remote get-url origin; git rev-parse HEAD` ?
```text
```
### If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
_No response_
### Have you found anything relevant by searching the web?
_No response_
### Any other information, logs, or outputs that you want to share?
_No response_
Contributor guide
Research direction
Start with the linked Buildkite failure and the dependency path from //tests/base_rules/py_test:test_basic_windows through @@bazel_tools//tools/test:collect_coverage and the launcher targets. Compare the rolling release behavior around @@rules_cc+//:link_extra_lib and @@bazel_tools//tools/def_parser:def_parser; done requires identifying the cycle's cause and producing a minimal reproduction or confirmed fix.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100