diff --git a/pkg/private/pkg_files.bzl b/pkg/private/pkg_files.bzl index 2595aef1..d8e44779 100644 --- a/pkg/private/pkg_files.bzl +++ b/pkg/private/pkg_files.bzl @@ -429,7 +429,7 @@ def add_from_default_info( if include_runfiles: runfiles = src[DefaultInfo].default_runfiles - if runfiles: + if runfiles and runfiles.files: mapping_context.file_deps.append(runfiles.files) # Computing the runfiles root is subtle. It should be based off of