Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bazel: stage all go source files in a temp dir named after the package
This works around an issue where Go source file names as stored in the `cockroach` binary were truncated (e.g., with the leading `github.com/cockroachdb/cockroach` prefix, or even the entire package name prefix, removed). This breaks unit tests (#61913) and some other internal stuff. We solve this by staging all Go source files during the build in a temporary directory named after the package. This incurs an additional I/O cost, but for now while our codebase isn't able to deal with the differing file names, we can deal with it. Fixes #64379 See also #64383 Release note: None
- Loading branch information