{"record":{"id":"d19b95e840111f05","repo":"santifer/career-ops","slug":"dashboard-build-skipped-go-compiler-not-in-env","errorCode":null,"errorMessage":"Dashboard build skipped — go compiler not in env","messagePattern":"Dashboard build skipped — go compiler not in env","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"test-all.mjs","lineNumber":1721,"sourceCode":"\n  if (typeof installEgressGuard !== 'function') {\n    fail('archive-posting does not export installEgressGuard');\n  }\n} catch (e) {\n  fail(`archive-posting egress guard tests crashed: ${e.message}`);\n}\n\n// ── 4. DASHBOARD BUILD ──────────────────────────────────────────\n\nif (!QUICK) {\n  console.log('\\n4. Dashboard build');\n  let hasGo = false;\n  try {\n    execSync('go version', { stdio: 'ignore' });\n    hasGo = true;\n  } catch {}\n  if (!hasGo) {\n    warn('Dashboard build skipped — go compiler not in env');\n  } else {\n    const isWindows = process.platform === 'win32';\n    const dashboardBuildTmp = mkdtempSync(join(tmpdir(), 'career-dashboard-build-'));\n    const outPath = join(dashboardBuildTmp, isWindows ? 'career-dashboard-test.exe' : 'career-dashboard-test');\n    const goEnv = { ...process.env };\n    if (isWindows && !goEnv.GOCACHE) {\n      goEnv.GOCACHE = join(tmpdir(), 'career-ops-go-build-cache');\n    }\n    if (goEnv.GOCACHE) {\n      try { mkdirSync(goEnv.GOCACHE, { recursive: true }); } catch (e) {}\n    }\n    const goBuild = run('go', ['build', '-o', outPath, '.'], {\n      cwd: join(ROOT, 'dashboard'),\n      env: goEnv,\n      stdio: ['pipe', 'pipe', 'pipe'],\n      timeout: 60000,\n    });\n    if (goBuild !== null) {","sourceCodeStart":1703,"sourceCodeEnd":1739,"githubUrl":"https://github.com/santifer/career-ops/blob/e7abd431fce9348a95261acac9e0c14779c35df8/test-all.mjs#L1703-L1739","documentation":"test-all.mjs probes for a Go toolchain by running `go version`; if that fails, it warns that the dashboard Go build test was skipped instead of failing the suite. The suite degrades gracefully because Go is an optional build dependency, not a requirement to validate the rest of the repo.","triggerScenarios":"`execSync('go version', { stdio: 'ignore' })` throws — the go binary is not installed, not on PATH for the current shell/CI image, or a broken GOROOT makes it exit non-zero.","commonSituations":"Fresh CI containers (e.g. a node:* Docker image with no Go), contributors who never installed Go, PATH differences between login shells and CI steps, or upgrading to a Node-only environment after the dashboard was added.","solutions":["Install the Go toolchain (golang.org/dl or the OS package manager) so the dashboard build test runs.","If installed, verify `go version` works in the exact shell running test-all.mjs; fix PATH if not.","Accept the skip if you do not work on dashboard/: it is an intentional warning, not an error.","Pin Go in CI by adding a setup step (e.g. actions/setup-go) so the test is not silently skipped."],"exampleFix":"// before (CI workflow)\n- run: npm test\n// after\n- uses: actions/setup-go@v5\n  with: { go-version: 'stable' }\n- run: npm test","handlingStrategy":"fallback","validationCode":"let hasGo = false; try { execSync('go version', { stdio: 'ignore' }); hasGo = true; } catch {} if (!hasGo) console.warn('go not available; dashboard build tests will be skipped');","typeGuard":null,"tryCatchPattern":"try { execSync('go version', { stdio: 'ignore' }); } catch { console.warn('Dashboard build skipped — install Go to run this test'); }","preventionTips":["Install Go in dev containers and CI images (actions/setup-go)","Verify `go version` resolves in the same shell that runs the suite","Document Go as an optional dependency in the README","Cache the Go toolchain in CI to keep the test enabled"],"tags":["go","environment","missing-tool","ci"],"backgroundTag":"command-not-found","analyzedSha":"e7abd431fce9348a95261acac9e0c14779c35df8","analyzedAt":"2026-09-16T06:35:29.214Z","contentChangedAt":"2026-09-16T06:35:29.214Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}