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

Change to globbed bazel targets #652

Draft
wants to merge 1 commit into
base: gz-math8
Choose a base branch
from

Conversation

mjcarroll
Copy link
Contributor

Draft until I can test downstream impacts

For ease of non-bazel maintainers lives

Signed-off-by: Michael Carroll <[email protected]>
@mjcarroll mjcarroll self-assigned this Dec 2, 2024
@github-actions github-actions bot added 🏛️ ionic Gazebo Ionic 🪵 jetty Gazebo Jetty labels Dec 2, 2024
hdrs = public_headers,
includes = [
"include",
"src",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to add src to includes? I don't think any of the headers there should be publicly accessible?

Copy link
Contributor

@shameekganguly shameekganguly left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Michael!

":Conversions",
"@googletest//:gtest",
"@googletest//:gtest_main",
private_headers = glob(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel 8 doesn't seem to like the empty glob:

ERROR: Traceback (most recent call last):
File "/home/runner/work/gz-math/gz-math/eigen3/BUILD.bazel", line 22, column 23, in
private_headers = glob(
Error in glob: glob pattern 'src/*.hh' didn't match anything, but allow_empty is set to False (the default value of allow_empty can be set with --incompatible_disallow_empty_glob).
ERROR: package contains errors: eigen3

Should we just remove the private_headers list from this file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏛️ ionic Gazebo Ionic 🪵 jetty Gazebo Jetty
Projects
Status: In review
Development

Successfully merging this pull request may close these issues.

2 participants