diff options
author | Mai Hussien <70515749+mai93@users.noreply.github.com> | 2024-02-21 02:33:11 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-21 10:33:11 +0000 |
commit | bee53165a8895b811566bfeab0f7251e86b540e5 (patch) | |
tree | 688bc4c027eaf5d6af7f3ea07121ebce0b5f3621 | |
parent | f3620bf8d6c3c4a30f03e4b01b1d7c0432d5abd5 (diff) | |
download | bazelbuild-rules_rust-bee53165a8895b811566bfeab0f7251e86b540e5.tar.gz |
Replace deprecated `ctx.build_file_path` (#2503)
-rw-r--r-- | rust/private/utils.bzl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/private/utils.bzl b/rust/private/utils.bzl index 4e9b4b79..748370da 100644 --- a/rust/private/utils.bzl +++ b/rust/private/utils.bzl @@ -794,7 +794,7 @@ def transform_sources(ctx, srcs, crate_root): if not has_generated_sources: return srcs, crate_root - package_root = paths.dirname(paths.join(ctx.label.workspace_root, ctx.build_file_path)) + package_root = paths.join(ctx.label.workspace_root, ctx.label.package) generated_sources = [_symlink_for_non_generated_source(ctx, src, package_root) for src in srcs if src != crate_root] generated_root = crate_root if crate_root: |