docs: clarify go env launcher avoids npm installs

This commit is contained in:
UniDesk Codex
2026-07-07 00:47:04 +08:00
parent 0373d493fd
commit 1db1ca8ec0
@@ -17,6 +17,7 @@ if (!/^[A-Za-z0-9._/-]+$/u.test(bootRef) || bootRef.startsWith("-") || bootRef.i
const readUrl = process.env.HWLAB_BOOT_READ_URL || mirrorReadUrl(bootRepo);
mkdirSync(path.dirname(checkoutDir), { recursive: true });
rmSync(checkoutDir, { recursive: true, force: true });
// Go env images intentionally avoid npm dependency installation; Go modules are prepared by Docker/BuildKit layers.
run("git", ["clone", "--no-checkout", "--single-branch", "--branch", bootRef, readUrl, checkoutDir], "/");
run("git", ["checkout", "--detach", bootCommit], checkoutDir);