.pre-commit-config.yaml is a skeleton of the pre-commit configuration
of gpsgate's main repository.
The image build only uses it to install the hook environments, which jobs then find in ~/.cache/pre-commit.
Jobs run with the configuration of their own checkout.
pre-commit keys each environment on the hook repository, its rev, its additional_dependencies
and the language version.
The skeleton keeps only these, with one hook per repository.
When the main repository changes one of them, the matching environment is missing from the image.
Jobs still work, but download that environment again.
Ideally, override the skeleton at build time with a checkout of the main repository, as below. Otherwise, update it to reflect the hooks and version numbers used by the main repository configuration.
docker build -t github-runner --build-context precommit=/path/to/gpsgate-master .