Skip to content

docs(go): document test_race/xtest_race and the cctool option - #96

Merged
raphaelvigee merged 1 commit into
mainfrom
claude/eager-galileo-o5qpko
Aug 13, 2026
Merged

docs(go): document test_race/xtest_race and the cctool option#96
raphaelvigee merged 1 commit into
mainfrom
claude/eager-galileo-o5qpko

Conversation

@raphaelvigee

Copy link
Copy Markdown
Member

Summary

  • Documents the race-detector feature added by hephbuild/heph#390 (commit 5767f26): every Go package with tests now also gets :test_race/:xtest_race targets — the same as :test/:xtest, built with Go's race detector — labelled test-race/go-test-race instead of test/go-test so label(test) keeps meaning the ordinary suite.
  • Documents the new cctool provider option: the C compiler a race build stages where it needs cgo (Linux only — darwin's race runtime stays hermetic). Defaults to the host's cc via the hostbin provider (//@heph/bin:cc).
  • Notes the Linux-only buildmode override: a race build always links exe, even if the selected variant declares pie, since Go's race detector doesn't support PIE on Linux.
  • Updated both doc copies per the reference-drift rule:
    • website/docs/plugins/go.md — added cctool to the plugin Options table and a new "Race detector" section.
    • plugins/heph-go/skills/heph-go/references/go-plugin.md — mirrored the same additions in the heph-go skill's distilled reference.

Test plan

  • Docs-only change; no build required per instructions.
  • Reviewer sanity-check: test_race/xtest_race labels and the cctool option match crates/plugin-go/src/plugingo/{provider.rs,factors.rs,cc_toolchain.rs,variant.rs} as of hephbuild/heph@5767f26.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XataMo5yVgDy1U3H1bGpFZ


Generated by Claude Code

Documents the race detector feature added by hephbuild/heph#390 (commit
5767f260b518cb5bf27af7bd5e41cbb49341ef34): every package with tests now
also gets `test_race`/`xtest_race` targets (labels `test-race`,
`go-test-race`), and a new `cctool` provider option picks the C compiler
a race build stages on Linux (only where race needs cgo; darwin stays
hermetic). Updated both doc copies per the reference-drift rule.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XataMo5yVgDy1U3H1bGpFZ
@github-actions

Copy link
Copy Markdown

⚡ Cloudflare Pages preview

Preview https://220f6754.hephbuild.pages.dev
Commit a7cb6e5

@raphaelvigee
raphaelvigee merged commit 9968074 into main Aug 13, 2026
3 checks passed
@raphaelvigee
raphaelvigee deleted the claude/eager-galileo-o5qpko branch August 13, 2026 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants