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 - str The name of the binary
  • version - str The version of the binary
  • add_link_to_workspace_root - bool Add 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 - str The base name of the checkout rule
  • version - str The version of spaces to use in the isolated workspace