Oops
This commit is contained in:
parent
e92b2aea4f
commit
41a14ac1ae
|
@ -1,3 +1,4 @@
|
||||||
|
import crypto from "crypto";
|
||||||
import { promises as fs } from "fs";
|
import { promises as fs } from "fs";
|
||||||
import http from "http";
|
import http from "http";
|
||||||
import url from "url";
|
import url from "url";
|
||||||
|
@ -26,6 +27,10 @@ async function main() {
|
||||||
program.option("--debug", "interactive debugging");
|
program.option("--debug", "interactive debugging");
|
||||||
program.parse(process.argv);
|
program.parse(process.argv);
|
||||||
const { lang, debug } = program.opts();
|
const { lang, debug } = program.opts();
|
||||||
|
const installContents = await fs.readFile(
|
||||||
|
`build/lang/${lang}/install.bash`,
|
||||||
|
"utf-8"
|
||||||
|
);
|
||||||
const hash = await hashDockerfile(
|
const hash = await hashDockerfile(
|
||||||
"lang",
|
"lang",
|
||||||
{
|
{
|
||||||
|
@ -42,6 +47,7 @@ async function main() {
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
).sort(),
|
).sort(),
|
||||||
|
installHash: crypto.createHash("sha1").update(installContents).digest("hex"),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue