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.
_repo_mapping
1 parent d4809c3 commit 7fe3b5cCopy full SHA for 7fe3b5c
js/private/js_image_layer.bzl
@@ -395,6 +395,15 @@ def _js_image_layer_impl(ctx):
395
layer.entries[destination] = entry
396
layer.inputs.append(file)
397
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
+
407
all_entries_json = ctx.actions.declare_file("{}_all_entries.json".format(ctx.label.name))
408
ctx.actions.write(all_entries_json, content = json.encode(all_entries))
409
0 commit comments