Skip to main content

assembled_dir

copy

def copy(
artifact: Artifact,
/,
) -> AssembledDirEntry

An entry materialized as the artifact's real bytes. Use for inputs that must be physically present in the assembled directory -- e.g. an executable whose $ORIGIN-relative RPATH or current_exe-relative lookup must resolve inside it (a symlinked executable resolves those against its realpath, outside the directory).


def symlink(
artifact: Artifact,
/,
) -> AssembledDirEntry

An entry materialized as a symlink pointing at the artifact. Use for inputs that are pure content -- especially large ones already living at an immutable (content-based) path -- to avoid duplicating bytes.