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_add_star_formatter()
def spaces_add_star_formatter(name, configure_zed)Add a formatter to the workspace for spaces.star files.
Args
name-strThe rule base nameconfigure_zed-boolWhether to configure zed to use the formatter
spaces_isolate_workspace()
def spaces_isolate_workspace(name, version, system_paths)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 workspacesystem_paths-listThe list of system paths to add to the environment