IMPORTANT: The Bazel docs have moved! Please update your bookmark to https://bazel.build/rules/lib/runfiles You can read about the migration, and let us know what you think.Extensions > API reference > runfiles
runfilesA container of information regarding a set of files required at runtime execution. This object should be passed via DefaultInfo in order to tell the build system about the runfiles needed by the outputs produced by the rule.
See runfiles guide for details.
depset runfiles.empty_filenamesReturns names of empty files to create.
depset runfiles.filesReturns the set of runfiles as files.
runfiles runfiles.merge(other)Returns a new runfiles object that includes all the contents of this one and the argument.
Note: When you have many runfiles objects to merge, use
merge_all() rather than calling
merge in a loop. This avoids constructing deep depset structures which can cause build failures.
The runfiles object to merge into this.
runfiles runfiles.merge_all(other)Returns a new runfiles object that includes all the contents of this one and of the runfiles objects in the argument.
The sequence of runfiles objects to merge into this.
depset runfiles.root_symlinksReturns the set of root symlinks.
depset runfiles.symlinksReturns the set of symlinks.