Repository navigation
Make git hooks a mandatory part of the org shell - #46
Merged
Merged
Conversation
Every org repo has the git hooks, the same way it has the devenv shell: the org shell enables the fmt hook unconditionally (no opt-in guard, no note), and the new checks.git-hooks in flakeModules.default fails CI when a repo with a devenv shell lacks `git-hooks.follows: org-pkgs/git-hooks` in devenv.yaml or `.pre-commit-config.yaml` in .gitignore, with the fix in the message (devenv's own error suggests following nixpkgs, which is wrong here). Docs and the template say "always" instead of "opt in". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
andrewthomaslee
enabled auto-merge (squash)
November 26, 2026 11:46
This was referenced Nov 26, 2026
andrewthomaslee
added a commit
to external-systems/not-secrets
that referenced
this pull request
Nov 26, 2026
Git hooks are a mandatory part of the org standard (external-systems/pkgs#46): the org shell runs fmt on every commit and checks.git-hooks fails CI without them. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
andrewthomaslee
added a commit
to external-systems/skills
that referenced
this pull request
Nov 26, 2026
Git hooks are a mandatory part of the org standard (external-systems/pkgs#46): the org shell runs fmt on every commit and checks.git-hooks fails CI without them. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
andrewthomaslee
added a commit
to external-systems/clanServices
that referenced
this pull request
Nov 26, 2026
Git hooks are a mandatory part of the org standard (external-systems/pkgs#46): the org shell runs fmt on every commit and checks.git-hooks fails CI without them. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
andrewthomaslee
added a commit
to external-systems/explain-kube-to-me
that referenced
this pull request
Nov 26, 2026
Git hooks are a mandatory part of the org standard (external-systems/pkgs#46): the org shell runs fmt on every commit and checks.git-hooks fails CI without them. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
andrewthomaslee
added a commit
to external-systems/modules
that referenced
this pull request
Nov 26, 2026
Git hooks are a mandatory part of the org standard (external-systems/pkgs#46). Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
andrewthomaslee
added a commit
to external-systems/home
that referenced
this pull request
Nov 26, 2026
## What - `org-pkgs` bumped to 0347d95 with `sync-locks`. On that pkgs, git hooks are a mandatory part of the org standard and `checks.git-hooks` enforces it (external-systems/pkgs#46). - `modules` bumped (external-systems/modules#56; brings skills#26). - `secrets` bumped (external-systems/secrets#11, lock updates only). - home already had the hooks (`devenv.yaml` follows, `.gitignore`, the `clan vars check` pre-push hook), so this PR changes lockfiles only. ## Checks - `nix flake update org-pkgs modules secrets`, `nix run .#sync-locks`, `devenv shell -- true`, `fmt`, then `check`: all checks passed, including `git-hooks`. `clan vars check`: all vars present and valid for all 6 machines. - The commit went through `fmt` (pre-commit) and the push through `clan vars check` (pre-push). Both passed. ## Reviewer notes No machine changes on merge; the profile changes from modules reach machines only with a deploy, which is your call. ## Merge order Last. pkgs#46, skills#26, clanServices#39, not-secrets#10, explain-kube-to-me#8, modules#56 and secrets#11 are all merged. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
devenv/devenv.nix: thefmtpre-commit hook is always on. I removed thehasGitHooksopt-in guard and the shell-entry note. A repo without thegit-hooksinput can no longer enter the shell.flakeModules/dev.nix: newchecks.git-hooksinflakeModules.default. For any repo with a devenv shell, it fails when:devenv.lockhas nogit-hooksinputgit-hooksdoesn't followorg-pkgs/git-hooks.gitignoredoesn't list.pre-commit-config.yamlThe message includes the fix. devenv's own error suggests
--follows nixpkgs, which is wrong for the org.Docs (
flake-standard.md, README) and the template comment now say "always" instead of "opt in". They also give the order for moving a repo to this pkgs, and mention the claude guard (modulesgitHookGuard).Why
The owner wants git hooks to be part of the org standard with no opt-out, the same as the devenv shell.
Checks
fmt: clean.check: all checks passed, incl. the newgit-hookscheck on pkgs itself..gitignoreline,checks.git-hooksfails with:Rollout (follow-up PRs, each bumps
org-pkgsto this)skills, modules, home, clanServices, not-secrets, then secrets, and explain-kube-to-me. azure-infra, presenting and gitops are left as they are, per the owner.
🤖 Generated with Claude Code