spaces_add()
def spaces_add(name, version, add_link_to_workspace_root)Add the spaces binary to a workflow.
All workflows should include a copy of spaces so that the run
rules will continue to work reproducibly even if the system copy of spaces
is updated.
Example:
load("//@star/packages/star/spaces-cli.star", "spaces_add")
spaces_add("spaces0", "v0.14.4")Args
name-strThe name of the binaryversion-strThe version of the binaryadd_link_to_workspace_root-boolAdd a link to the binary in the workspace root
spaces_isolate_workspace()
def spaces_isolate_workspace(name, version)Isolate the workspace by omitting all system paths from the environment.
This will install coreutils and other tools into the sysroot to support basic utilities.
By default no built-in system tools are available on the path.
Args
name-strThe base name of the checkout ruleversion-strThe version of spaces to use in the isolated workspace