Fix depgraph bug

This commit is contained in:
Radon Rosborough 2021-07-03 04:36:39 +00:00
parent dd99bdf778
commit 4c8bee2c86
1 changed files with 5 additions and 0 deletions

View File

@ -120,11 +120,16 @@ async function getImageArtifact({ tag, isBaseImage, isLangImage }) {
}
let salt = null;
if (isLangImage) {
const installContents = await fs.readFile(
`build/lang/${isLangImage.lang}/install.bash`,
"utf-8"
);
salt = {
langHash: dependencyHashes[`deb:lang-${isLangImage.lang}`],
sharedHashes: isLangImage.sharedDeps.map(
(name) => dependencyHashes[`deb:shared-${name}`]
),
installHash: crypto.createHash("sha1").update(installContents).digest("hex"),
};
}
return await hashDockerfile(name, dependentDockerHashes, { salt });