Skip to content

Commit 575045f

Browse files
authored
Merge pull request #9922 from rabbitmq/rin/cli-rabbit_framing.hrl-fix
Another attempt to fix the missing rabbit_framing.hrl error
2 parents 6d9e9b9 + d81bfb4 commit 575045f

File tree

1 file changed

+23
-9
lines changed

1 file changed

+23
-9
lines changed

deps/rabbitmq_cli/rabbitmqctl.bzl

Lines changed: 23 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,34 @@ def deps_dir_contents(ctx, deps, dir):
5151
lib_info.app_name,
5252
rp,
5353
))
54-
ctx.actions.symlink(
55-
output = f,
56-
target_file = src,
54+
args = ctx.actions.args()
55+
args.add(src)
56+
args.add(f)
57+
ctx.actions.run(
58+
inputs = [src],
59+
outputs = [f],
60+
executable = "cp",
61+
arguments = [args],
5762
)
58-
files.extend([f, src])
63+
files.append(f)
5964
for beam in lib_info.beam:
6065
if not beam.is_directory:
6166
f = ctx.actions.declare_file(path_join(
62-
dir, lib_info.app_name, "ebin", beam.basename))
63-
ctx.actions.symlink(
64-
output = f,
65-
target_file = beam,
67+
dir,
68+
lib_info.app_name,
69+
"ebin",
70+
beam.basename,
71+
))
72+
args = ctx.actions.args()
73+
args.add(beam)
74+
args.add(f)
75+
ctx.actions.run(
76+
inputs = [beam],
77+
outputs = [f],
78+
executable = "cp",
79+
arguments = [args],
6680
)
67-
files.extend([f, beam])
81+
files.append(f)
6882
else:
6983
fail("unexpected directory in", lib_info)
7084
return files

0 commit comments

Comments
 (0)