test: keep go launcher comment out of env identity

This commit is contained in:
UniDesk Codex
2026-07-07 02:21:13 +08:00
parent 1f83c5707a
commit 9e48276522
@@ -17,7 +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.
// Go env images avoid npm dependency installation; Go modules stay in Docker/BuildKit layers.
run("git", ["clone", "--no-checkout", "--single-branch", "--branch", bootRef, readUrl, checkoutDir], "/");
run("git", ["checkout", "--detach", bootCommit], checkoutDir);