Skip to content
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

tests/core/cgo: do not assume test is being run from main repo #2956

Merged
merged 1 commit into from
Oct 15, 2021
Merged

tests/core/cgo: do not assume test is being run from main repo #2956

merged 1 commit into from
Oct 15, 2021

Conversation

siddharthab
Copy link
Contributor

Currently, the generated headers import paths assume that opts_test is
being run from the main repo, but that may not be the case. When
specifying include paths for header files in bazel, we generally have to
specify both prefixes.

What type of PR is this?

Bug fix

What does this PR do? Why is it needed?

The PR is a minor enhancement to the tests such that they can be used by other projects.

Which issues(s) does this PR fix?

Fixes #2955

Other notes for review

@google-cla google-cla bot added the cla: yes label Sep 20, 2021
@robfig robfig added the cgo label Sep 23, 2021
@robfig robfig self-assigned this Sep 23, 2021
tests/core/cgo/BUILD.bazel Outdated Show resolved Hide resolved
Currently, the generated headers import paths assume that `opts_test` is
being run from the main repo, but that may not be the case. When
specifying include paths for header files in bazel, we generally have to
specify both prefixes.
@robfig robfig assigned steeve and unassigned robfig Sep 28, 2021
@robfig robfig merged commit e82f2ea into bazelbuild:master Oct 15, 2021
@robfig
Copy link
Contributor

robfig commented Oct 15, 2021

This LGTM. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@io_bazel_rules_go//tests/core/cgo:opts does not build from another repo
3 participants