Skip to content

Commit 2419d02

Browse files
committed
chore: Fix owlbot-golden file generation
1 parent abf8d66 commit 2419d02

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

hermetic_build/library_generation/templates/owlbot.py.j2

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,12 @@ for library in s.get_staging_dirs():
2121
s.move(library)
2222

2323
s.remove_staging_dirs()
24-
{% if should_include_templates %}java.common_templates(monorepo=True, {% if template_excludes %}excludes=[
25-
{%- for exclude in template_excludes %}
26-
"{{ exclude }}"{% if not loop.last %},{% endif %}
27-
{%- endfor %}
28-
]{% endif %}){% endif %}
24+
{% if should_include_templates %}
25+
java.common_templates(
26+
monorepo=True,
27+
{% if template_excludes %}
28+
excludes=[
29+
{%- for exclude in template_excludes %}
30+
"{{ exclude }}"{% if not loop.last %},{% endif %}
31+
{%- endfor %}
32+
]{% endif %}){% endif %}

hermetic_build/library_generation/tests/resources/goldens/owlbot-golden.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,4 @@
3535
"renovate.json",
3636
".gitignore",
3737
],
38-
)
38+
)

0 commit comments

Comments
 (0)