Repository navigation
repository: bump go-git to v5.18.0 to keep extra commit headers - #241
Merged
Merged
Conversation
comin reports commits made by Jujutsu as not signed even when the signature is valid. jj writes a change-id header into every commit and the signature covers it, but go-git v5.11.0 drops headers it doesn't know when decoding a commit. EncodeWithoutSignature then rebuilds a payload without change-id, and verification fails. go-git keeps and re-encodes extra headers since v5.16.3 (go-git/go-git#1578). v5.18.0 is the newest release that still works with the test suite: v5.19.0 and later pull in testify v1.11, whose EventuallyWithT runs the condition in its own goroutine, and the deployer and manager tests then fail with data races. v5.19.3 also needs Go 1.26. The new test builds the raw commit by hand, with a change-id header, and signs that payload. The existing helper signs go-git's own re-encoding, so it can't catch a dropped header. The test fails on v5.11.0 and passes on v5.18.0. The commit helper now sets AllowEmptyCommits: newer go-git refuses empty commits by default, and TestUpdateGpg commits the same content again, so its signed commit was never created. go test -race ./... and nix flake check pass.
kleinbem
force-pushed
the
go-git-extra-headers
branch
from
November 25, 2026 00:56
118be44 to
0e1d783
Compare
kleinbem
marked this pull request as ready for review
November 25, 2026 00:56
Owner
Contributor
Author
|
Thx, I've been running jj-signed commits through it here and they verify. |
This was referenced Nov 30, 2026
kleinbem
added a commit
to kleinbem/skills
that referenced
this pull request
Dec 1, 2026
Monthly refresh, sources reread 2026-12-01 from upstream clones. PR metadata and review comments were not remeasured: api.github.com returned 403 from this environment, so history numbers come from `git log` only. - upstream-contributing: switches table updated for llama.cpp, hyprwm, quickshell, alsa-ucm-conf, nothing-but-nix, Mesh-LLM, buzz-app, omarchy, comin (rows below); llama.cpp examples replaced - contribution-skill-authoring: policy examples updated (Mesh-LLM trailer ban gone, llama.cpp no longer bans AI texts) - ggml-org, llama-cpp-contributing: new AGENTS.md (ggml-org/llama.cpp#33157): agent may write texts ending `_Written with …_`, Martin confirms each public action, no PR batches; whisper.cpp unchanged; `build_rope` (#31683) - hyprwm-org: `AGENTS.md` bans agent GitHub actions; kleinbem vouched (hyprwm/.github 655fc17); issues limited to `VOUCHED_ISSUE.td`; discussion strikes - hyprland-contributing: rebase merges, commit-title bot (hyprwm/Hyprland#17006, #17081) - aquamarine-contributing: `AGENTS.md` added 2026-11-18, rebase merges - hyprbars-contributing: our hyprwm/hyprland-plugins#722 merged - alsa-project-org, alsa-ucm-conf-contributing: sign-off checked by `pr-validation.yml`; `Comment "HiFi (default)"` convention (f3f6d45) - quickshell-contributing: corrected AI rule from CONTRIBUTING.md (no AI-written change descriptions, agent submissions bannable); PR template, HACKING.md commit format - mesh-llm-org, mesh-llm-contributing: attribution check removed (Mesh-LLM/mesh-llm#3109); Skippy, xtask and ci/ moved out (#3193); `Skippy-Ref:` (#3224); SDK in-tree; docs moved (#3238) - skippy-contributing: native fork CI (Mesh-LLM/skippy#213), Mermaid diagrams for Actions changes, InferenceKit (#231) - capsules-plugin-contributing: `scripts/check.sh`, e2e triggers (#307, #401), grouped Dependabot (#439); mesh-llm-plugin version corrected - openai-endpoint-plugin-contributing: settings move and manifest (#8) - mesh-llm-python-sdk-contributing: dormant, SDK work in mesh-llm - mesh-packaging-contributing: release handoff off; runtime packaging in skippy - nixpkgs-contributing: subject wording (be9ad5588), quoted throw aliases (927ea0853) - nix-contributing: 2.36.0 released, master 2.37 (NixOS/nix#16853, #16920); merger and `Assisted-by` counts from git - nixos-hardware-contributing: gate removed in NixOS/nixos-hardware#2137 - block-org, buzz-app-contributing: docs rewrite (block/buzz-app#4213) removed the scope checkpoint, ready checklist and `buzz-review-completed` - buzz-contributing: migration trigger/FK check (block/buzz#9812), schema CODEOWNERS (#9708, #9728), `mobile/REVIEWING.md` (#9298) - berd-contributing: v0.6.5 (block/berd#467), provider removal (#475) - goose-contributing: self-test removed (aaif-goose/goose#13337), GDK renamed oi-kit (#13447) - omacom-org, omarchy-contributing: qmllint (omacom/omarchy#20549), Greptile config (#21048), mostly squash - omarchy-pkgs-contributing: AGENTS.md rules, `build-approved` cleared on push (omacom/omarchy-pkgs#3943), `check-shadowed` required - gum-contributing: outside feature charmbracelet/gum#1151 merged - jetpack-nixos-contributing: merge counts since 2026-11-07, outside authors (#588, #601-#604, #608) - comin-contributing: our nlewo/comin#241 merged; mostly merge commits - noooste-org, garage-ui-contributing: new AGENTS.md (0779b3a) and Nix flake + `nix.yml` (2c47df2); our #156 merged - amp-acp-contributing: history (tao12345666333/amp-acp#105, #106) - nix-app-center-contributing: our SPTApyo/Nix-App-Center#37, #38 merged - wimpysworld-org, nothing-but-nix-contributing: org-wide CONTRIBUTING issue/PR rules (78c66ff): template, feature issue first, one change, closed unread Not checked: PR merge times, closures and review comments (API 403); Arch Linux sources (wiki.archlinux.org unreachable). --- _Generated by [Claude Code](https://claude.ai/code)_ Co-authored-by: Claude <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.
comin says commits made by Jujutsu aren't signed, even though the signature is fine. jj writes a
change-idheader into every commit and the signature covers it, but go-git v5.11.0 drops headers it doesn't know when it decodes a commit.EncodeWithoutSignaturethen rebuilds the payload withoutchange-id, and the check fails. I hit this on canary branches I push from jj (FIDO2sk-ssh-ed25519key, but the key type doesn't matter).go-git keeps extra headers since v5.16.3 (go-git/go-git#1578), so this only bumps go-git and doesn't touch comin's signature code. It fixes the same thing as #216 without adding code there, which I think fits what you said in that thread about bumping go-git rather than maintaining SSH signature code. Moving to go-git/x#13 later still works the same way: that needs go-git v6 and go-git/go-git#2235 anyway.
Why v5.18.0 and not v5.19.x: v5.19.0 and later pull in testify v1.11, whose
EventuallyWithTruns the condition in its own goroutine.TestDeployerBasicandTestDeployerSubmitthen fail with data races under-race, andTestBuildin manager fails too. v5.19.3 also needs Go 1.26, and the flake's nixpkgs has 1.25.7. v5.19.1 and v5.19.2 carry security fixes, so 5.19 is worth doing once those tests are sorted.Two test changes:
TestHeadSignedBySSHWithExtraHeaderbuilds the raw commit by hand with achange-idheader and signs that. The existing helper signs go-git's own re-encoding, so it can't catch a dropped header. It fails on v5.11.0 and passes here.AllowEmptyCommits: newer go-git refuses empty commits by default, andTestUpdateGpgcommits the same content again.Tested on x86_64-linux:
go test -race ./...passes (two runs, same as main), andnix flake checkpasses. A real jj commit signed with my FIDO2 key verifies withcommitSignedBySSHon this branch and is rejected on main.I prepared this with help from Claude Code.