Skip to content
This repository was archived by the owner on Jul 2, 2026. It is now read-only.

Commit abdfb3d

Browse files
committed
fix(alef-sync-versions): pass --no-regen so per-commit hook only writes version-stamped manifests
1 parent 1b5da7e commit abdfb3d

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
## [2.1.10] - 2026-06-07
11+
12+
### Fixed
13+
14+
- `alef-sync-versions`: pass `--no-regen` so the hook only writes version-stamped manifest files. Without the flag, `alef sync-versions` also fires a full `alef generate` pass — desirable for `task set-version` but the wrong shape for a per-commit hook (the regen is slow and any unrelated codegen drift surfaces as "files modified by this hook" on every commit, causing the hook to fail even when no real sync work needs doing).
15+
1016
## [2.1.9] - 2026-06-07
1117

1218
### Fixed

hooks/alef/run.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,13 @@ verify)
2020
exec alef verify "$@"
2121
;;
2222
sync-versions)
23+
# `--no-regen` so the hook only writes version-stamped manifest files. Without
24+
# the flag, `alef sync-versions` also fires a full `alef generate` pass —
25+
# desirable for `task set-version` but the wrong shape for a per-commit hook
26+
# (full regen is slow and any unrelated codegen drift surfaces as "files
27+
# modified by this hook" on every commit).
2328
PYTHONPATH="${REPO_ROOT}/lib${PYTHONPATH:+:${PYTHONPATH}}" \
24-
python3 -m kreuzberg_hooks._autofix --stage-all -- alef sync-versions "$@"
29+
python3 -m kreuzberg_hooks._autofix --stage-all -- alef sync-versions --no-regen "$@"
2530
;;
2631
*)
2732
printf 'alef hook: unsupported subcommand: %s\n' "${subcommand}" >&2

0 commit comments

Comments
 (0)