Skip to content

Commit

Permalink
fix: drop .sh extension from js_binary, merger and js_image_layer lau…
Browse files Browse the repository at this point in the history
…nchers (#1586)
  • Loading branch information
gregmagolan committed May 20, 2024
1 parent 7dea55a commit 8776cac
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion e2e/worker/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ copy_file(
)

js_binary(
name = "worker",
name = "worker_binary",
data = [":copy_worker_js"],
entry_point = ":copy_dummy_worker",
visibility = ["//visibility:public"],
Expand Down
2 changes: 1 addition & 1 deletion e2e/worker/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pi_rule = rule(
"worker": attr.label(
executable = True,
cfg = "exec",
default = ":worker",
default = ":worker_binary",
),
},
)
2 changes: 1 addition & 1 deletion examples/coverage/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
load("@aspect_rules_js//js:defs.bzl", "js_test")

js_test(
name = "coverage",
name = "coverage_test",
data = [
"coverage.js",
"//:node_modules/@types/node",
Expand Down
2 changes: 1 addition & 1 deletion js/private/coverage/merger.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def _coverage_merger_impl(ctx):
node_path = _deprecated_target_tool_path_to_short_path(nodeinfo.target_tool_path)

# Create launcher
bash_launcher = ctx.actions.declare_file("%s.sh" % ctx.label.name)
bash_launcher = ctx.actions.declare_file(ctx.label.name)
ctx.actions.expand_template(
template = ctx.file._launcher_template,
output = bash_launcher,
Expand Down
2 changes: 1 addition & 1 deletion js/private/js_binary.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ def _bash_launcher(ctx, nodeinfo, entry_point_path, log_prefix_rule_set, log_pre
"{{workspace_name}}": ctx.workspace_name,
}

launcher = ctx.actions.declare_file("%s.sh" % ctx.label.name)
launcher = ctx.actions.declare_file(ctx.label.name)
ctx.actions.expand_template(
template = ctx.file._launcher_template,
output = launcher,
Expand Down
2 changes: 1 addition & 1 deletion js/private/test/image/checksum.expected
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
02fec6c845b4f8277d6664c269a90f5016436bda728fae57e7b3ee113f8b6381 js/private/test/image/cksum_app.tar
6477f43b8663b593b7eb3ba50f7b617849eca2d2ecccdba37a92b0c9faf1226c js/private/test/image/cksum_app.tar
813d54ae63067f19103e13f616726ff1f32cf8d51e27789b8d31415300f0a69e js/private/test/image/cksum_node_modules.tar
4 changes: 2 additions & 2 deletions js/private/test/image/custom_owner_app.listing
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ drwxr-xr-x 100/0 0 1970-01-01 00:00 app/js
drwxr-xr-x 100/0 0 1970-01-01 00:00 app/js/private
drwxr-xr-x 100/0 0 1970-01-01 00:00 app/js/private/test
drwxr-xr-x 100/0 0 1970-01-01 00:00 app/js/private/test/image
-r-xr-xr-x 100/0 134 1970-01-01 00:00 app/js/private/test/image/bin
-r-xr-xr-x 100/0 131 1970-01-01 00:00 app/js/private/test/image/bin
drwxr-xr-x 100/0 0 1970-01-01 00:00 app/js/private/test/image/bin.runfiles
drwxr-xr-x 100/0 0 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js
drwxr-xr-x 100/0 0 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js
drwxr-xr-x 100/0 0 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private
drwxr-xr-x 100/0 0 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test
drwxr-xr-x 100/0 0 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test/image
-r-xr-xr-x 100/0 23953 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test/image/bin.sh
-r-xr-xr-x 100/0 24130 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test/image/bin
drwxr-xr-x 100/0 0 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test/image/bin_node_bin
-r-xr-xr-x 100/0 133 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test/image/bin_node_bin/node
-r-xr-xr-x 100/0 20 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test/image/main.js
4 changes: 2 additions & 2 deletions js/private/test/image/default_app.listing
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ drwxr-xr-x 0/0 0 1970-01-01 00:00 app/js
drwxr-xr-x 0/0 0 1970-01-01 00:00 app/js/private
drwxr-xr-x 0/0 0 1970-01-01 00:00 app/js/private/test
drwxr-xr-x 0/0 0 1970-01-01 00:00 app/js/private/test/image
-r-xr-xr-x 0/0 134 1970-01-01 00:00 app/js/private/test/image/bin
-r-xr-xr-x 0/0 131 1970-01-01 00:00 app/js/private/test/image/bin
drwxr-xr-x 0/0 0 1970-01-01 00:00 app/js/private/test/image/bin.runfiles
drwxr-xr-x 0/0 0 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js
drwxr-xr-x 0/0 0 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js
drwxr-xr-x 0/0 0 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private
drwxr-xr-x 0/0 0 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test
drwxr-xr-x 0/0 0 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test/image
-r-xr-xr-x 0/0 23953 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test/image/bin.sh
-r-xr-xr-x 0/0 24130 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test/image/bin
drwxr-xr-x 0/0 0 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test/image/bin_node_bin
-r-xr-xr-x 0/0 133 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test/image/bin_node_bin/node
-r-xr-xr-x 0/0 20 1970-01-01 00:00 app/js/private/test/image/bin.runfiles/aspect_rules_js/js/private/test/image/main.js

0 comments on commit 8776cac

Please sign in to comment.