mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-23 22:16:48 +00:00
fix(builds): include explicit target as part of build id
This commit is contained in:
@@ -349,7 +349,11 @@ BuildsCacher.create = function ({ ALL_TERMS, installers, caches }) {
|
||||
return null;
|
||||
}
|
||||
|
||||
let buildId = `${pkg.name}@${build.download}`;
|
||||
// because some packages are shimmed to match a single download against
|
||||
let preTarget = Object.assign({ os: '', arch: '', libc: '' }, build);
|
||||
|
||||
let targetId = `${preTarget.os}:${preTarget.arch}:${preTarget.libc}`;
|
||||
let buildId = `${pkg.name}:${targetId}@${build.download}`;
|
||||
let target = bc._targetsByBuildIdCache[buildId];
|
||||
if (target) {
|
||||
Object.assign(build, { target: target, triplet: target.triplet });
|
||||
|
||||
Reference in New Issue
Block a user