Skip to content

Commit

Permalink
bazel: use short_path with entry_points
Browse files Browse the repository at this point in the history
Without this change bazel will pass the full qualified name like
k8-fastbuild/bin/<package> which but rollup is being called from
k8-fastbuild/bin so it can't resolve properly
  • Loading branch information
manuelnaranjo committed Sep 30, 2024
1 parent 3f96784 commit f36668d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rollup/private/rollup.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ def _impl(ctx):
if ctx.attr.output_dir:
output_sources.append(ctx.actions.declare_directory(ctx.label.name))
for entry_point in entry_points:
args.add_joined([entry_point[1], entry_point[0]], join_with = "=")
args.add_joined([entry_point[1], entry_point[0].short_path], join_with = "=")
args.add_all(["--output.dir", output_sources[0].short_path])
else:
args.add(entry_points[0][0])
Expand Down

0 comments on commit f36668d

Please sign in to comment.