diff --git a/pkg/private/pkg_files.bzl b/pkg/private/pkg_files.bzl index 31e7ae3c..a8c670f9 100644 --- a/pkg/private/pkg_files.bzl +++ b/pkg/private/pkg_files.bzl @@ -405,7 +405,7 @@ def add_from_default_info( include_runfiles: Include runfiles workspace_name: name of the main workspace """ - if not DefaultInfo in src: + if not DefaultInfo in src or not src[DefaultInfo].files: return # Auto-detect the executable so we can set its mode.