Toolchains
Workers run Amazon Linux 2023 with these preinstalled: Node.js with npm, Bun, Rust with cargo, Python 3, make, gcc, g++, clang, cmake and git. Anything else, including Go, Java, pip and pytest, you add yourself. Commands on the worker run as root, so installing needs no sudo.
--packages installs Amazon Linux packages with dnf at the start of the Run, every time it runs:
vanish --packages golang go build ./...A toolchain installs once: vanish toolchain bake NAME -- COMMAND runs the install command on a worker and keeps what it wrote, and later Runs mount it with --toolchain NAME instead of installing again.
vanish toolchain list
vanish toolchain show NAME --jsonA Run that uses --packages or --toolchain starts on a new machine rather than one that is already running, so it is slow to start: a Run that installed Go with --packages golang took 103 seconds before Go ran. Package names must exist in the Amazon Linux 2023 repositories. A toolchain records the architecture and base image it was baked for. Install commands run on the worker with network access, so review what you run.
Baking uses managed compute and credits like any Run. Your laptop's node_modules, Python virtual environments and other dependency directories are not sent with a Run and do not carry over from one Run to the next, so install dependencies in the same Run that uses them:
vanish sh -c "npm ci && npm test"