Skip to content

Commit

Permalink
Append workspace name in runfiles in pkg_files
Browse files Browse the repository at this point in the history
Commit a811e7f recently fixed an issue
where the workspace name was missing from the path for runfiles added
via `pkg_tar` and some other rules.

This extends the fix to `pkg_files` as well.
  • Loading branch information
sitaktif committed Apr 25, 2024
1 parent 16465e6 commit 474def6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/mappings.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ def _pkg_files_impl(ctx):
target = file_to_target[src]
runfiles = target[DefaultInfo].default_runfiles
if runfiles:
base_path = src_dest_paths_map[src] + ".runfiles"
base_path = src_dest_paths_map[src] + ".runfiles/" + ctx.workspace_name
for rf in runfiles.files.to_list():
dest_path = paths.join(base_path, rf.short_path)

Expand Down

0 comments on commit 474def6

Please sign in to comment.