You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Q: Can I use it with go test -race?
Not directly in v0.1.0. You need to build your tests first:
racedetector build -o myapp.test .
./myapp.test
Direct go test integration is planned for a future version.
Q: Does it work with Go modules?
Yes, fully compatible with Go modules.
Q: Can I use it in CI/CD?
Yes! Example GitHub Actions workflow:
- name: Install racedetectorrun: go install github.com/kolkov/racedetector/cmd/racedetector@v0.1.0
- name: Build with race detectionrun: racedetector build -o app ./cmd/app
- name: Run testsrun: ./app --test
Troubleshooting
Q: I'm getting "undefined: race.Read" errors
Make sure you're using racedetector build, not regular go build. The race detector runtime is injected during instrumentation.
Q: Performance is very slow (>20x overhead)
This can happen with:
Q: I'm seeing a panic/crash
Please create an Issue with:
Go version: go version
OS: Linux/macOS/Windows
Command used
Full error output
Minimal reproduction code if possible
Advanced
Q: How do I instrument specific packages only?
v0.1.0 instruments all your code. Selective instrumentation is planned for v0.2.0.
Q: Can I use this with vendor dependencies?
Yes, but vendored dependencies won't be instrumented. Only your code and standard library calls are tracked.
Q: Does it detect races in CGO code?
No - this is a Pure-Go implementation. CGO code is opaque to the detector.
Ask Your Question
Please include:
Go version: go version
OS: Linux / macOS / Windows
What you tried
Error message (if any)
Minimal code example (if relevant)
The more details you provide, the faster we can help!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Getting started with racedetector? Having issues? Ask here and we'll help!
Before Asking
Please check these resources first:
Still stuck? Ask below!
Common Questions
Installation
Q: How do I install racedetector?
Q: What Go version do I need?
GOEXPERIMENT=jsonv2Q: Does it work on Windows/macOS?
Yes! Fully cross-platform (Linux, macOS, Windows).
Usage
Q: How do I use it instead of
go build -race?Q: Can I use it with
go test -race?Not directly in v0.1.0. You need to build your tests first:
racedetector build -o myapp.test . ./myapp.testDirect
go testintegration is planned for a future version.Q: Does it work with Go modules?
Yes, fully compatible with Go modules.
Q: Can I use it in CI/CD?
Yes! Example GitHub Actions workflow:
Troubleshooting
Q: I'm getting "undefined: race.Read" errors
Make sure you're using
racedetector build, not regulargo build. The race detector runtime is injected during instrumentation.Q: Performance is very slow (>20x overhead)
This can happen with:
Share your details in Performance Discussion and we'll investigate.
Q: I'm seeing a panic/crash
Please create an Issue with:
go versionAdvanced
Q: How do I instrument specific packages only?
v0.1.0 instruments all your code. Selective instrumentation is planned for v0.2.0.
Q: Can I use this with vendor dependencies?
Yes, but vendored dependencies won't be instrumented. Only your code and standard library calls are tracked.
Q: Does it detect races in CGO code?
No - this is a Pure-Go implementation. CGO code is opaque to the detector.
Ask Your Question
Please include:
go versionThe more details you provide, the faster we can help!
Found a bug? → Create an Issue
Want to request a feature? → See Roadmap Discussion
Have performance data? → Share in Show and Tell
Beta Was this translation helpful? Give feedback.
All reactions