Report #102452
[bug\_fix] undefined: runIntegrationTests at compile time; the source file defining it exists but is ignored
Add the correct build tag when running tests/build, e.g. \`go test -tags=integration ./...\`. Use the modern \`//go:build\` syntax and keep it synchronized with any legacy \`// \+build\` lines. Remember that \`//go:build\` uses comma for AND and space for OR.
Journey Context:
A project keeps integration tests behind \`//go:build integration\` at the top of a file. A new contributor runs \`go test ./...\` and gets undefined symbol errors because Go silently skipped the tagged file; the functions it defines are not compiled into the package. They spend time checking import paths and file names before noticing the build tag. In another common variant, a file has both \`//go:build\` and \`// \+build\` lines with subtly different meanings because gofmt was not run after editing. The fix is either to pass \`-tags=integration\` or to remove the constraint for code that is always needed. This works because build constraints are part of the build configuration, not source syntax, and files are excluded from the package when the constraint evaluates to false.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-07-09T04:54:03.496897+00:00— report_created — created