Use the correct "home" directory for rabbit in rabbitmq_home.bzl

This commit is contained in:
Philip Kuryloski 2021-09-08 16:56:05 +02:00
parent eec4a04289
commit 2f69eaf7eb
1 changed files with 4 additions and 2 deletions

View File

@ -147,5 +147,7 @@ def _dirname(p):
return p.rpartition("/")[0]
def rabbitmq_home_short_path(rabbitmq_home):
info = rabbitmq_home[RabbitmqHomeInfo]
return _dirname(_dirname(info.sbin[0].short_path))
short_path = rabbitmq_home[RabbitmqHomeInfo].sbin[0].short_path
if rabbitmq_home.label.workspace_root != "":
short_path = path_join(rabbitmq_home.label.workspace_root, short_path)
return _dirname(_dirname(short_path))