Skip to content

Commit

Permalink
Merge pull request #6334 from NomicFoundation/get-build-infos
Browse files Browse the repository at this point in the history
chore: deduplicate build ids before getting build infos
  • Loading branch information
galargh authored Feb 18, 2025
2 parents 60426f8 + 87dd3b2 commit 2a3ae0f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ export async function getBuildInfos(
compilationJob.getBuildId(),
),
);
const uniqueBuildIds = Array.from(new Set(buildIds));

return Promise.all(
buildIds.map(async (buildId) => {
uniqueBuildIds.map(async (buildId) => {
const buildInfoPath = await artifactManager.getBuildInfoPath(buildId);
const buildInfoOutputPath =
await artifactManager.getBuildInfoOutputPath(buildId);
Expand Down

0 comments on commit 2a3ae0f

Please sign in to comment.