Skip to content

Commit

Permalink
[stable/2023.2] fix: sort patch files before apply (#1546)
Browse files Browse the repository at this point in the history
This is an automated cherry-pick of #1541
/assign mnaser
  • Loading branch information
vexxhost-bot authored Jul 9, 2024
1 parent a8ca903 commit 4101af3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion build/sync-charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,10 @@ async def _fetch_chart(self, chart: Chart, path="charts"):

patches_path = charts_path / "patches" / chart.name
if await patches_path.exists():
async for patch_path in patches_path.glob("*.patch"):
patch_paths = sorted(
[patch_path async for patch_path in patches_path.glob("*.patch")]
)
for patch_path in patch_paths:
async with patch_path.open(mode="rb") as patch_file:
patch_data = await patch_file.read()
await patch(input=patch_data, path=chart_path)
Expand Down

0 comments on commit 4101af3

Please sign in to comment.