Paths in a Step

A step's sandbox has the same layout on every machine and in every checkout. This table lists each path a step can have, in the order a step is likely to use them. Step Sandboxes explains why the layout is as it is.

PathHoldsWritableThere when
/w/<path>A workspace file or directory the step was given, at its path in the workspace.NoThe step was given it.
/w/.gcsl/libraries/<library>/A library's own files the step was given.NoThe step was given one.
/pekit-out/.steps/<function>/<identity>/The step's own directory, where its programs start and its outputs go.YesAlways.
/pekit-out/<path>Another step's output the step was given.NoThe step was given it.
/pekit-out/.fetch/<sha256>/<name>A fetched file the step was given.NoThe step was given it.
/pekit-out/.unpack/<key>/An unpacked archive the step was given.NoThe step was given it.
/pekit-out/.git/<key>/<name>/A git commit's files the step was given.NoThe step was given them.
/tmpAn empty directory of the step's own.YesAlways.
/pekit-scratchA directory pekit keeps between the step's runs.YesThe step is marked #[scratch].
/pekit-secrets/<profile>/<name>A secret file.NoThe step was given the secret.
/usr, /bin, /lib, /lib64, /sbinThe host's own programs and libraries.NoThe build isn't strict.
/etc/alternatives, /etc/ld.so.cacheWhat the host's programs need to start.NoThe build isn't strict.
/etc/passwd, /etc/groupA fixed user database of root, pekit and nobody, the same in every step.NoAlways.
/devnull, zero, full, random, urandom, tty, and the standard streams.Yes, as devices allowAlways.
/dev/kvmThe machine's KVM device.YesThe step is marked #[device("kvm")] and the machine has KVM.
/procThe step's own processes.NoAlways.

A program the step runs starts in the step's own directory, with PATH set to /usr/bin:/bin:/usr/sbin:/sbin unless its exec sets one. It runs as the user pekit, number 1000, with LOGNAME and USER set to pekit unless its exec sets them. pekit's home, /nonexistent, isn't there.

Edit this page