-
Notifications
You must be signed in to change notification settings - Fork 50
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
Fix RMW_LIBRARY_PATH define in presence of transitions #446
base: main
Are you sure you want to change the base?
Conversation
We touched this in
I'd like to learn more about your usecase. BTW, do you patch rmw_implementation with_cfg.bzl locally? |
I added a failing test in ca7da17: and fixed it by using |
name = "with_cfg.bzl", | ||
sha256 = "d83f99ac39cd9940848ea11a51a60159cf09cda2ba30545036041551aae73ab4", | ||
strip_prefix = "with_cfg.bzl-0.6.1", | ||
url = "https://github.com/fmeum/with_cfg.bzl/releases/download/v0.6.1/with_cfg.bzl-v0.6.1.tar.gz", |
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.
yes this isn't the latest release, but newer ones seem to cause issues with struct members of @bazel_features
not being available when building in Workspace mode
Would |
True, this does indeed help. But requiring this to be set is a hard sell to downstream consumers who may have a lot of migration work ahead of them to support this flag being flipped -- especially when just using |
This fixes the below error
Which you will get when transitions (e.g. via with_cfg.bzl) are at play, because the
k8-fastbuild
and friends will not be correct anymore, it has to bek8-fastbuild-ST-61f4e3852c4b
or similar, depending on configuration.Using
../
instead is always correct because of the runfiles structure at runtime.