We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc4ea8c commit f5fd438Copy full SHA for f5fd438
bazelrc-preset.bzl
@@ -67,17 +67,11 @@ def _generate_preset(ctx):
67
if type(meta) != type([]):
68
meta = [meta]
69
_verify_command_overrides(meta)
70
- flag_appears = False
71
for meta_item in meta:
72
content_with_flag = _generate_preset_flag(content, flag, meta_item)
73
if content_with_flag:
74
content = content_with_flag
75
- flag_appears = True
76
- break
77
- if flag_appears:
78
- content.add_all([
79
- "# Docs: https://registry.build/flag/bazel@{}?filter={}".format(version, flag),
80
- ])
+ content.add("# Docs: https://registry.build/flag/bazel@{}?filter={}".format(version, flag))
81
ctx.actions.write(ctx.outputs.out, content)
82
83
generate_preset = rule(
0 commit comments