docs(go): document test_race/xtest_race and the cctool option - #96
Merged
Conversation
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
⚡ Cloudflare Pages preview
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
:test_race/:xtest_racetargets — the same as:test/:xtest, built with Go's race detector — labelledtest-race/go-test-raceinstead oftest/go-testsolabel(test)keeps meaning the ordinary suite.cctoolprovider option: the C compiler a race build stages where it needs cgo (Linux only — darwin's race runtime stays hermetic). Defaults to the host'sccvia thehostbinprovider (//@heph/bin:cc).buildmodeoverride: a race build always linksexe, even if the selected variant declarespie, since Go's race detector doesn't support PIE on Linux.website/docs/plugins/go.md— addedcctoolto 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
test_race/xtest_racelabels and thecctooloption matchcrates/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