Skip to content

Commit

Permalink
fix: add data files to inputs (#451)
Browse files Browse the repository at this point in the history
Signed-off-by: James Williams <[email protected]>
  • Loading branch information
jamesreprise authored Sep 19, 2024
1 parent 4b07902 commit 43a67eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/native_image/classic.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ def _graal_binary_classic_implementation(ctx):
native_toolchain.c_compiler_path,
)

if ctx.files.data:
direct_inputs.extend(ctx.files.data)

inputs = depset(
direct_inputs,
transitive = transitive_inputs,
Expand Down
3 changes: 3 additions & 0 deletions internal/native_image/rules.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ def _graal_binary_implementation(ctx):
bin_postfix = bin_postfix,
)

if ctx.files.data:
direct_inputs.extend(ctx.files.data)

# assemble final inputs
inputs = depset(
direct_inputs,
Expand Down

0 comments on commit 43a67eb

Please sign in to comment.