Skip to content

Commit 6a1dfa7

Browse files
committed
deps.ts: Fetch first-party and TypeScript dependencies before groking archives or building container
1 parent a62afad commit 6a1dfa7

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

deps.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ if(await exists(ROOT)) {
1010
Deno.exit(1);
1111
}
1212

13+
console.log("Downloading container management tools...")
14+
if(!await exists("chroot/jail"))
15+
await Deno.run({cmd: ["git", "submodule", "update", "--init"]}).status();
16+
17+
console.log("Vendoring TypeScript dependencies...");
18+
if(!await exists("vendor"))
19+
await Deno.run({cmd: ["deno", "vendor", "main.ts"]}).status();
20+
1321
const vscode = await releaseUrl("gitpod-io", "openvscode-server", "-linux-x64.tar.gz");
1422
await download(vscode);
1523
await unpack(basename(vscode), ["tar", "xf"]);
@@ -18,14 +26,6 @@ const rclone = await releaseUrl("rclone", "rclone", "-linux-amd64.zip");
1826
await download(rclone);
1927
await unpack(basename(rclone), ["unzip"]);
2028

21-
console.log("Vendoring TypeScript dependencies...");
22-
if(!await exists("vendor"))
23-
await Deno.run({cmd: ["deno", "vendor", "main.ts"]}).status();
24-
25-
console.log("Downloading container management tools...")
26-
if(!await exists("chroot/jail"))
27-
await Deno.run({cmd: ["git", "submodule", "update", "--init"]}).status();
28-
2929
console.log("Preparing root directory for jails...");
3030
Deno.renameSync(dropExtension(vscode), ROOT);
3131
Deno.renameSync(dropExtension(rclone) + "/rclone", ROOT + "/bin/rclone");

0 commit comments

Comments
 (0)