Runfile

<ph type="x-smartling-placeholder"></ph> 报告问题 查看来源 每晚 · 7.2。 · 7.1敬上 · 7.0 · 6.5 条 · 6.4 一个容器,用于存储有关运行时执行时所需的一组文件的信息。您应通过 DefaultInfo 传递此对象,以告知构建系统规则生成的输出所需的 runfile。

如需了解详情,请参阅 runfile 指南

成员

empty_filenames

depset runfiles.empty_filenames

返回要创建的空文件的名称。

文件

depset runfiles.files

将一组 runfile 作为文件返回。

合并

runfiles runfiles.merge(other)

返回一个新的 runfiles 对象,其中包含此 runfiles 和 参数的所有内容。

注意:如果您要合并许多 runfiles 对象,请使用 merge_all(),而不是在循环中调用 merge。这样可以避免构建可能导致构建失败的深层废弃结构。

参数

参数 说明
other runfiles; 必需
要合并到其中的 runfiles 对象。

merge_all

runfiles runfiles.merge_all(other)

返回一个新的 runfiles 对象,并在参数中包含此对象和 runfiles 对象的所有内容。

参数

参数 说明
other runfile 的序列;runfiles 必需
要合并到其中的 runfiles 对象序列。

depset runfiles.root_symlinks

返回一组根符号链接。

depset runfiles.symlinks

返回一组符号链接。