Skip to content

Commit

Permalink
Fix an unexpected "index out of range" (#890)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdh1995 authored Sep 6, 2024
1 parent ec08e7f commit 5047485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/private/pkg_files.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5047485

Please sign in to comment.