From 8580630d38b94088713aff043c5b8a76728d39ed Mon Sep 17 00:00:00 2001 From: Alex Trotta Date: Mon, 16 Nov 2026 02:10:33 -0500 Subject: [PATCH] fix: Also specify repo name when manually expanding labels --- mojo/private/utils.bzl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mojo/private/utils.bzl b/mojo/private/utils.bzl index cfc6879..043590c 100644 --- a/mojo/private/utils.bzl +++ b/mojo/private/utils.bzl @@ -72,7 +72,9 @@ def _package_relative_label(ctx, label): if label.startswith(":"): # Relative path - label = "//" + ctx.label.package + label + label = "@@" + ctx.label.repo_name + "//" + ctx.label.package + label + elif label.startswith("//"): + label = "@@" + ctx.label.repo_name + label return Label(label) def _extract_label(ctx, copt): @@ -131,6 +133,6 @@ def handle_copt(ctx, copt, args): fail("expected exactly one file") args.add(files[0], format = format_string) return - fail("input not found in additional_compiler_inputs") + fail("input {} not found in additional_compiler_inputs".format(label)) else: args.add(copt)