docs: clarify go env launcher avoids npm installs
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user