From b5dcf929792c4c776bd48c0954529e579dbab7c6 Mon Sep 17 00:00:00 2001 From: James Williams Date: Wed, 21 Aug 2024 22:46:35 +0100 Subject: [PATCH] fix: add data files to inputs Signed-off-by: James Williams --- internal/native_image/classic.bzl | 3 +++ internal/native_image/rules.bzl | 3 +++ 2 files changed, 6 insertions(+) diff --git a/internal/native_image/classic.bzl b/internal/native_image/classic.bzl index f7a78756..84c15c69 100644 --- a/internal/native_image/classic.bzl +++ b/internal/native_image/classic.bzl @@ -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, diff --git a/internal/native_image/rules.bzl b/internal/native_image/rules.bzl index 0d0a2ceb..10ffa9bb 100644 --- a/internal/native_image/rules.bzl +++ b/internal/native_image/rules.bzl @@ -113,6 +113,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,