From 75d680d7b05a616bf2e69fd231d11688225f13bf Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Tue, 11 Jun 2019 16:54:02 -0700 Subject: [PATCH] Small fix to upb_proto_library(). --- bazel/upb_proto_library.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazel/upb_proto_library.bzl b/bazel/upb_proto_library.bzl index 0c23f734ad..503925e8ac 100644 --- a/bazel/upb_proto_library.bzl +++ b/bazel/upb_proto_library.bzl @@ -38,7 +38,7 @@ def _get_real_roots(files): def _generate_output_file(ctx, src, extension): real_short_path = _get_real_short_path(src) - real_short_path = paths.relativize(src.short_path, ctx.label.package) + real_short_path = paths.relativize(real_short_path, ctx.label.package) output_filename = paths.replace_extension(real_short_path, extension) ret = ctx.actions.declare_file(output_filename) return ret