-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
1 parent
5817ba2
commit 1b78c30
Showing
3 changed files
with
6 additions
and
28 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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