Skip to content

Commit

Permalink
Merge pull request rabbitmq#9922 from rabbitmq/rin/cli-rabbit_framing…
Browse files Browse the repository at this point in the history
….hrl-fix

Another attempt to fix the missing rabbit_framing.hrl error
  • Loading branch information
HoloRin authored Nov 15, 2023
2 parents 6d9e9b9 + d81bfb4 commit 575045f
Showing 1 changed file with 23 additions and 9 deletions.
32 changes: 23 additions & 9 deletions deps/rabbitmq_cli/rabbitmqctl.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -51,20 +51,34 @@ def deps_dir_contents(ctx, deps, dir):
lib_info.app_name,
rp,
))
ctx.actions.symlink(
output = f,
target_file = src,
args = ctx.actions.args()
args.add(src)
args.add(f)
ctx.actions.run(
inputs = [src],
outputs = [f],
executable = "cp",
arguments = [args],
)
files.extend([f, src])
files.append(f)
for beam in lib_info.beam:
if not beam.is_directory:
f = ctx.actions.declare_file(path_join(
dir, lib_info.app_name, "ebin", beam.basename))
ctx.actions.symlink(
output = f,
target_file = beam,
dir,
lib_info.app_name,
"ebin",
beam.basename,
))
args = ctx.actions.args()
args.add(beam)
args.add(f)
ctx.actions.run(
inputs = [beam],
outputs = [f],
executable = "cp",
arguments = [args],
)
files.extend([f, beam])
files.append(f)
else:
fail("unexpected directory in", lib_info)
return files
Expand Down

0 comments on commit 575045f

Please sign in to comment.