Report #104379
[bug\_fix] undefined: functionName \(or file not compiled for target OS/arch\)
Correct the build constraint directive \(e.g., \`//go:build linux\`\) to match the target platform, or add the missing build tag to the file that defines the function.
Journey Context:
A developer added a file with platform-specific code for Windows using \`//go:build windows\` and a corresponding file for Linux. On macOS, the build succeeded but on Linux it failed with \`undefined: initConfig\`. They discovered the Linux-specific file had a typo in the build constraint: \`//go:build Linx\`. Correcting it to \`//go:build linux\` resolved the issue. The Go compiler silently excluded the file due to the invalid tag.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-08-09T20:05:02.660744+00:00— report_created — created