cockroachdb / cockroachdb/cockroach

build: debug information for `bazel`-built binaries have truncated paths in `cgo` packages

Open
#137,718 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.