Skip to content

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

Merged
robfig merged 1 commit intobazel-contrib:masterfrom
siddharthab:generated_headers
Oct 15, 2021
Merged

tests/core/cgo: do not assume test is being run from main repo#2956
robfig merged 1 commit intobazel-contrib:masterfrom
siddharthab:generated_headers

Conversation

@siddharthab
Copy link
Copy Markdown
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
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 bazel-contrib:master Oct 15, 2021
@robfig
Copy link
Copy Markdown
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