Run 2251 (after #4): the ci job failed in the new smoke test, before any push. git add -A also staged the copied .pre-commit-config.yaml, so pre-commit run yamllint --all-files linted it with the default rules (6 lines over 80 chars) and set -eu aborted the build. install-hooks itself succeeded; gitleaks and actionlint were never reached.
Change
git add ok.yaml .gitea/actionlint.yaml .gitea/workflows/t.yml instead of git add -A in the build-stage RUN of images/ci/Dockerfile. --all-files only covers tracked files, and pre-commit does not need its own config to be tracked. The yamllint warnings on the sample files (document-start, truthy) are not errors.
Verification
image.yml builds on main; the next push shows whether all three hooks pass before and after the Go toolchains are deleted, and the real layer sizes.
## Problem
Run 2251 (after #4): the `ci` job failed in the new smoke test, before any push. `git add -A` also staged the copied `.pre-commit-config.yaml`, so `pre-commit run yamllint --all-files` linted it with the default rules (6 lines over 80 chars) and `set -eu` aborted the build. `install-hooks` itself succeeded; gitleaks and actionlint were never reached.
## Change
`git add ok.yaml .gitea/actionlint.yaml .gitea/workflows/t.yml` instead of `git add -A` in the build-stage RUN of `images/ci/Dockerfile`. `--all-files` only covers tracked files, and pre-commit does not need its own config to be tracked. The yamllint warnings on the sample files (document-start, truthy) are not errors.
## Verification
`image.yml` builds on `main`; the next push shows whether all three hooks pass before and after the Go toolchains are deleted, and the real layer sizes.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
`git add -A` also staged the copied .pre-commit-config.yaml, so the yamllint
smoke run linted it with the default rules (six lines over 80 characters)
and, under set -eu, aborted the build before gitleaks and actionlint ran.
pre-commit does not need its own config to be tracked.
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Problem
Run 2251 (after #4): the
cijob failed in the new smoke test, before any push.git add -Aalso staged the copied.pre-commit-config.yaml, sopre-commit run yamllint --all-fileslinted it with the default rules (6 lines over 80 chars) andset -euaborted the build.install-hooksitself succeeded; gitleaks and actionlint were never reached.Change
git add ok.yaml .gitea/actionlint.yaml .gitea/workflows/t.ymlinstead ofgit add -Ain the build-stage RUN ofimages/ci/Dockerfile.--all-filesonly covers tracked files, and pre-commit does not need its own config to be tracked. The yamllint warnings on the sample files (document-start, truthy) are not errors.Verification
image.ymlbuilds onmain; the next push shows whether all three hooks pass before and after the Go toolchains are deleted, and the real layer sizes.🤖 Generated with Claude Code