We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eec4a04 commit 2f69eafCopy full SHA for 2f69eaf
rabbitmq_home.bzl
@@ -147,5 +147,7 @@ def _dirname(p):
147
return p.rpartition("/")[0]
148
149
def rabbitmq_home_short_path(rabbitmq_home):
150
- info = rabbitmq_home[RabbitmqHomeInfo]
151
- return _dirname(_dirname(info.sbin[0].short_path))
+ short_path = rabbitmq_home[RabbitmqHomeInfo].sbin[0].short_path
+ if rabbitmq_home.label.workspace_root != "":
152
+ short_path = path_join(rabbitmq_home.label.workspace_root, short_path)
153
+ return _dirname(_dirname(short_path))
0 commit comments