Commit 525a803
authored
### What does this PR do?
Drop `_output_config_dir` and its `DEFAULT_OUTPUT_CONFIG_DIR` default from `bazel/rules/dd_agent_pkg_mklink.bzl`.
### Motivation
Bazel's dependency tracking has no visibility into whether a read build-setting value is ever actually used in a rule's output.
Merely calling `ctx.attr._output_config_dir` and reading its `BuildSettingInfo` registers a real dependency on
`--//:output_config_dir`, forcing re-analysis of every `dd_agent_pkg_mklink` target whenever that flag's value changes, even though the substitution it feeds is never consumed.
The flag itself, `//:output_config_dir`, stays alive and used elsewhere (`dd_agent_expand_template.bzl`).
Only this rule's dead, never-exercised dependency on it goes away.
### Additional Notes
Found by working on:
- #53850.
Co-authored-by: regis.desgroppes <regis.desgroppes@datadoghq.com>
1 parent 7f9d2a8 commit 525a803
1 file changed
Lines changed: 0 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | 7 | | |
12 | 8 | | |
13 | 9 | | |
| |||
17 | 13 | | |
18 | 14 | | |
19 | 15 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 16 | | |
26 | 17 | | |
27 | 18 | | |
| |||
53 | 44 | | |
54 | 45 | | |
55 | 46 | | |
56 | | - | |
57 | 47 | | |
58 | 48 | | |
59 | 49 | | |
| |||
70 | 60 | | |
71 | 61 | | |
72 | 62 | | |
73 | | - | |
74 | 63 | | |
75 | 64 | | |
0 commit comments