Skip to content

fix(git-hooks): rebuild when only secrets change - #181

Merged
gapul merged 1 commit into
mainfrom
fix/rebuild-hook-secrets
Aug 9, 2026
Merged

fix(git-hooks): rebuild when only secrets change#181
gapul merged 1 commit into
mainfrom
fix/rebuild-hook-secrets

Conversation

@gapul

@gapul gapul commented Aug 9, 2026

Copy link
Copy Markdown
Owner

#180 changed nothing but secrets/secrets.yaml. The merge came down, the hook looked at the changed paths, matched none of them, and stayed quiet — so ~/.ssh/config kept its old contents and the thing #180 was fixing kept failing. It took a hand-run just rebuild to notice.

sops-nix renders its outputs at activation, which puts secrets/ in exactly the same category as nix/ and configs/ for this hook.

Verified after rebuilding by hand, which is what should have happened automatically:

$ ssh -G rpi4 | grep identityagent
identityagent /Users/gapul/.bitwarden-ssh-agent.sock

sops-nix renders its files at activation, so a secrets-only merge leaves the repo and
the deployed file disagreeing until someone happens to run a rebuild.
@gapul
gapul enabled auto-merge (squash) August 9, 2026 10:20
@gapul
gapul merged commit 33a6bbf into main Aug 9, 2026
3 checks passed
@gapul
gapul deleted the fix/rebuild-hook-secrets branch August 9, 2026 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant