From 41a14ac1ae8775a2a68e262fc996c9d62f4c9599 Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Sat, 3 Jul 2021 17:28:04 +0000 Subject: [PATCH] Oops --- tools/build-lang-image.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/build-lang-image.js b/tools/build-lang-image.js index d9016aa..2fb24c1 100644 --- a/tools/build-lang-image.js +++ b/tools/build-lang-image.js @@ -1,3 +1,4 @@ +import crypto from "crypto"; import { promises as fs } from "fs"; import http from "http"; import url from "url"; @@ -26,6 +27,10 @@ async function main() { program.option("--debug", "interactive debugging"); program.parse(process.argv); const { lang, debug } = program.opts(); + const installContents = await fs.readFile( + `build/lang/${lang}/install.bash`, + "utf-8" + ); const hash = await hashDockerfile( "lang", { @@ -42,6 +47,7 @@ async function main() { ) ) ).sort(), + installHash: crypto.createHash("sha1").update(installContents).digest("hex"), }, } );