Skip to content

Commit

Permalink
fix: Add copy_to_dist target for BYOB sample UDFs
Browse files Browse the repository at this point in the history
Bug: N/A
Change-Id: I919ac87bd6cde3fd3271c34608e0000a56c619dc
GitOrigin-RevId: 4fe54a6e41c084d64e83482a28194b8763cc79c6
  • Loading branch information
Privacy Sandbox Team authored and copybara-github committed Nov 7, 2024
1 parent f496ffa commit bb225b2
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/roma/byob/sample_udf/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -369,3 +369,19 @@ pkg_files(
)
for user in DISTROLESS_USERS
]

genrule(
name = "copy_to_dist",
srcs = [
":udf_binaries",
],
outs = ["copy_to_dist.bin"],
cmd_bash = """cat <<EOF >'$@'
mkdir -p {dir}
cp $(execpaths :udf_binaries) {dir}/
builders/tools/normalize-dist
EOF""".format(dir = "dist/roma_byob/udf/sample"),
executable = True,
local = True,
message = "copying aws artifacts to dist directory",
)

0 comments on commit bb225b2

Please sign in to comment.