Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuel44 committed Jul 16, 2024
1 parent b78da47 commit 9e87de4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions utils/compare_dependency_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,8 @@ def compare_constraints(images_contained_in_native: list[str]):
| parse_constraints(NATIVE_IMAGE)
)
native_constraint_keys = set(native_constraints.keys())

discrepancies: list[Discrepancy] = []
for image in images_contained_in_native:
discrepancies: list[Discrepancy] = []

constraints = parse_constraints(image)
constraint_keys = set(constraints.keys())
Expand Down Expand Up @@ -96,7 +95,7 @@ def compare_constraints(images_contained_in_native: list[str]):

for discrepancy in discrepancies:
print(str(discrepancy))
print( # noqa: T201
print(
f"::error file=docker/{discrepancy.image}/Dockerfile,line=1,endLine=1,title=Native Image Discrepancy::{discrepancy}"
)
return int(bool(discrepancies))
Expand Down

0 comments on commit 9e87de4

Please sign in to comment.