-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bazel: stage all go source files in a temp dir named after the package #65094
Conversation
cc @knz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ooooh shiny ✨
I went to look at your change in rules_go: cockroachdb/rules_go@a94a425
this looks reasonable to me.
I think this change is generally beneficial even though it doesn't fix the failing test right away. Thank you a lot for looking into it.
Reviewed 1 of 1 files at r1.
Reviewable status:complete! 0 of 0 LGTMs obtained (waiting on @rail)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status:
complete! 1 of 0 LGTMs obtained (waiting on @rickystewart)
One broken unit test, let me take care of that really quick... |
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 (cockroachdb#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 cockroachdb#64379 See also cockroachdb#64383 Release note: None
414e861
to
1b78c30
Compare
bors r=rail,knz |
Build succeeded: |
This works around an issue where Go source file names as stored in the
cockroach
binary were truncated (e.g., with the leadinggithub.com/cockroachdb/cockroach
prefix, or even the entire packagename 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