Skip to content

Commit 45f17c4

Browse files
committed
minimal fix in fix_poms.py to exclude comments during extra module detection, preventing them from being
converted into broken tags fix lint
1 parent a9b737a commit 45f17c4

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • sdk-platform-java/hermetic_build/library_generation/owlbot/src

sdk-platform-java/hermetic_build/library_generation/owlbot/src/fix_poms.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,9 @@ def update_parent_pom(filename: str, modules: List[module.Module]):
219219

220220
module_names = [m.artifact_id for m in modules]
221221
extra_modules = [
222-
m.text for i, m in enumerate(existing) if m.text not in module_names
222+
m.text
223+
for i, m in enumerate(existing)
224+
if m.tag != etree.Comment and m.text not in module_names
223225
]
224226

225227
modules_to_write = module_names + extra_modules

0 commit comments

Comments
 (0)