Using Bzlmod (Recommended)
Add to your MODULE.bazel
file:
bazel_dep(name = "depend_on_what_you_use", version = "0.3.0")
Using WORKSPACE (Legacy)
Add to your WORKSPACE
file:
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
http_archive(
name = "depend_on_what_you_use",
sha256 = "b56cdfaed0d74967fefb54bdd3f05bd167c4c4ebaa2a67af962d969e6a51962b",
strip_prefix = "depend_on_what_you_use-0.3.0",
url = "https://github.com/martis42/depend_on_what_you_use/releases/download/0.3.0/depend_on_what_you_use-0.3.0.tar.gz",
)
load("@depend_on_what_you_use//:setup_step_1.bzl", dwyu_setup_step_1 = "setup_step_1")
dwyu_setup_step_1()
load("@depend_on_what_you_use//:setup_step_2.bzl", dwyu_setup_step_2 = "setup_step_2")
dwyu_setup_step_2()
Breaking Changes
- Automatic fixes: Change how arguments are forwarded to buildozer. This is done to achieve a consistent API to how arguments are forwarded to the bazel commands. #251
Noteworthy Changes
- Analysis: Update standard library headers which are ignored by DWYU #248
- Automatic fixes: Support
cquery
to find missing dependencies. Also we allow now forwarding arguments to the bazel commands which are executed by the apply_fixes script #249, #252 - Analysis: Fix bug for analyzing implementation_deps when using target mappings #254
- Automatic fiixes: Add a new method for discovering DWYU report files which should be more efficient for large workspaces. This is based on creating an execution log for the analysis done by the DWYU aspect and then forwarding this log to the apply_fixes script #255
What's Changed
- chore(deps): update quality tooling dependencies by @renovate in #244
- chore(deps): update dependency bazel_skylib to v1.6.1 by @renovate in #243
- Remove stray "is" by @steple in #247
- Update standard headers by @martis42 in #248
- apply_fixes: Support cquery and custom bazel arguments by @martis42 in #249
- Minor quality of life by @martis42 in #250
- Apply_fixes: Consistent CLI by @martis42 in #251
- apply_fixes: More flexible bazel-info usage by @martis42 in #252
- Fix target_mapping not working with implementation_deps by @martis42 in #254
- apply_fixes can parse report files from a DWYU execution log by @martis42 in #255
New Contributors
Full Changelog: 0.2.0...0.3.0