cockroachdb / cockroachdb/cockroach
build: debug information for `bazel`-built binaries have truncated paths in `cgo` packages
Open
A-build-system
C-bug
T-dev-inf
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
Setting a breakpoint in a `cgo`-enabled package works differently than one without `cgo`. Without `cgo`, the file paths are sensible (e.g. `pkg/path/to/file.go`), but with `cgo`, they are truncated (just `file.go`). This may be an issue with one of our patches to `rules_go`.
[Internal discussion](https://cockroachlabs.slack.com/archives/CJ0H8Q97C/p1734558884062459)
Epic: CRDB-17171
Jira issue: CRDB-45718
Contributor guide
Assessment
This issue has not been assessed yet.