Files
guettlibot c1a24fedfd fix: skip dart-check pre-commit hook when no Dagger engine is available
The dart-check hook runs `dagger call ... check-fast`, which needs a
Dagger engine. On a dev machine or in CI the engine is provisioned from
a local container runtime (docker/podman) or reached via
_EXPERIMENTAL_DAGGER_RUNNER_HOST. In engine-less sandboxes (the agentloop
agent pods that commit on our behalf) none of those exist, so dagger
falls back to its default engine image reference and aborts with:

    start engine: driver for scheme "image" was not available

That failed every commit the agent tried to make.

Wrap the hook in scripts/precommit_dart_check.sh, which probes for a
reachable engine (runner host set, or a working docker/podman daemon)
and, when none is found, warns and exits 0 instead of failing. Codeberg
CI still runs check-fast on every push, so the check is not lost.
2026-06-07 21:59:47 +02:00
..
2026-04-25 07:07:05 +02:00
2026-04-23 17:43:20 +02:00
2026-04-23 17:43:20 +02:00