From f36668d48db86125400297942bcb6b9aad1425e1 Mon Sep 17 00:00:00 2001 From: Manuel Naranjo Date: Mon, 30 Sep 2024 16:51:34 +0200 Subject: [PATCH] bazel: use short_path with entry_points Without this change bazel will pass the full qualified name like k8-fastbuild/bin/ which but rollup is being called from k8-fastbuild/bin so it can't resolve properly --- rollup/private/rollup.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup/private/rollup.bzl b/rollup/private/rollup.bzl index 8d1734c..f9540f5 100644 --- a/rollup/private/rollup.bzl +++ b/rollup/private/rollup.bzl @@ -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])