-
Notifications
You must be signed in to change notification settings - Fork 8
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
BUILD.bazel files cause package identification problems #35
Comments
As far as I can tell, there are a few ways to solve it.
|
Another alternative is to use a
|
I remember having this issue before: gazebosim/gz-plugin#31 (review) Option 1. sounds like a tough ask for all users and I'd like to avoid option 3 so we don't have one more file to maintain. I didn't quite understand how a user can set the The |
+1 to both options, I also wonder if a different default priority for Bazel should be pushed upstream? While I understand that it would be an arbitrary choice to say what's higher priority between CMake and Bazel, it sounds like anything better than the current behavior (skipping the package altogether) would be better? |
Setting the priority wouldn't be a user choice. The bazel extension itself would have to be modified upstream so that it had a higher/lower priority than CMake so that one will always "win". From my observations, colcon is used more widely with cmake/ros projects, so it seems like that would be the sane default, and users could use one of the approaches above to "force" bazel. |
I believe the colcon-bazel pull request will address this. You can install that version via pip:
|
For future visitors to this issue, I needed to tweak @mjcarroll 's command to this:
in particular I needed to use |
Environment
Description
Steps to reproduce
colcon
as well as thecolcon-bazel
extension: https://github.com/colcon/colcon-bazelcolcon
Output
An example of
colcon list
shows thatign-math
andign-utils
are both ignored because they match against both CMake and Bazel.The text was updated successfully, but these errors were encountered: