Skip to content

Commit 7fe3b5c

Browse files
jfirebaughjbedard
authored andcommitted
fix: include _repo_mapping in runfiles dir
1 parent d4809c3 commit 7fe3b5c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

js/private/js_image_layer.bzl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,15 @@ def _js_image_layer_impl(ctx):
395395
layer.entries[destination] = entry
396396
layer.inputs.append(file)
397397

398+
if repo_mapping:
399+
destination = paths.join(runfiles_dir, "_repo_mapping")
400+
entry = {
401+
"dest": repo_mapping.path,
402+
"root": repo_mapping.root.path,
403+
}
404+
all_entries[destination] = entry
405+
layers.app.entries[destination] = entry
406+
398407
all_entries_json = ctx.actions.declare_file("{}_all_entries.json".format(ctx.label.name))
399408
ctx.actions.write(all_entries_json, content = json.encode(all_entries))
400409

0 commit comments

Comments
 (0)