This directory contains various helpers for developing dagger, providing a utility layer on top of our dev module.
Usage: ./hack/dev
dev builds the engine and cli from local code, and additionally starts the
engine in a docker container.
Usage: ./hack/dev ...
As above, dev builds and starts the engine, but runs the specified command
with the dagger context environment variables that allow dagger commands and
SDKs to connect directly to it.
Usage: ./hack/with-dev ...
with-dev runs the specified command with the dagger context environment
variables set (similar to dev above, but does not rebuild the engine).
./hack/dev bash
This will bootstrap your local engine code and then open a shell with env vars
pointing to that dev engine. You can thus run go test, hatch run, yarn run
and have the tests execute against that dev engine.