Merge pull request #2419 from pikasTech/test-2416-go-launcher-comment-skip

test: skip Go env build for launcher comment
This commit is contained in:
Lyon
2026-07-07 02:25:08 +08:00
committed by GitHub
@@ -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);