GeezerVison is showing github.com — fix(graph): upgrade keygen to v0.5.1 so pkgs/graph builds again (#166) by dezren39 · Pull Request #446 · developing-today/code
Conversation
dezren39
commented
Oct 21, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Problem
pkgs/graph did not compile (#166): its charm/kv → charm/client → keygen v0.4.2 → caarlos0/sshmarshal v0.1.0 chain dot-imports golang.org/x/crypto/ssh, which since v0.16.0 declares MarshalPrivateKey/MarshalPrivateKeyWithPassphrase itself — MarshalPrivateKey already declared through dot-import of package ssh. Reproduced on current main before this change. It was also deliberately excluded from the go-modules-build CI matrix because of the failure, and it is the build target of .goreleaser.yaml (#344).
Solution
The same fix that already cured the identical break in pkgs/map (#338):
go get github.com/charmbracelet/[email protected] + go mod tidy — keygen v0.5.1 drops sshmarshal entirely; x/crypto rises to v0.26.0. go.mod now matches pkgs/map's resolved chain.
- Two more failures were masked behind the dependency compile error and surfaced once it was fixed; both are fixed here:
pkgs/graph/test.go is a standalone Badger scratch program declaring its own main() in package main (main redeclared) — tagged //go:build ignore so it stays in the tree but out of the package build.
main.go assigned os.Executable() to e, referenced only by a commented-out line (declared and not used) — now _.
- CI follow-up from the issue: pkgs/graph joins the
go-modules-build.yml matrix (tidy + build + vet on every graph change), the path filters gain pkgs/graph/**, and the stale exclusion comments in go-modules-build.yml/map-build.yml now point at the fix.
Verification
- Pre-fix on main:
go build ./... fails with the sshmarshal collision exactly as filed.
- Post-fix:
go build ./..., go vet ./..., go test ./... all pass in pkgs/graph (no test files); go mod tidy is idempotent.
- Single-repo: pkgs/graph exists only in this repo.
Closes #166
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2Fef26d88456de9cc93cf03b8611c53675c8af4fc8361b0049e62a133b46e853b6%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2e737667)
Need help on this PR? Tag @codesmith-bot with what you need.
Summary by CodeRabbit
- Build & Reliability
- Added the graph package to automated build coverage for pushes and pull requests.
- Updated build checks to reflect the graph package’s dedicated module coverage.
- Refreshed supporting dependencies for the graph package.
- Improved executable startup handling without changing error behavior.
- Prevented test-only code from being included in standard graph package builds.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chatgpt-codex-connector[bot] reacted with thumbs up emoji
Same fix as pkgs/map in #338: keygen v0.4.2 pulled caarlos0/sshmarshal
v0.1.0, whose dot-import of golang.org/x/crypto/ssh collides with the
MarshalPrivateKey declarations x/crypto added in v0.16.0. keygen v0.5.1
drops sshmarshal; tidy also raises x/crypto to v0.26.0.
Two further failures were masked behind the dependency compile error
and are fixed here:
- test.go is a standalone Badger scratch program declaring its own
main() in package main; tag it //go:build ignore so it stays in the
tree without breaking the package build.
- main.go assigned os.Executable() to e, referenced only by a
commented-out line; use _.
CI follow-up from #166: pkgs/graph joins the go-modules-build matrix
(tidy + build + vet) now that it compiles, and the stale exclusion
comments in go-modules-build.yml and map-build.yml are updated.
Verified: go build ./..., go vet ./..., go test ./... all pass in
pkgs/graph; go mod tidy is idempotent.
Codex Review Summary
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-10-21T00:11:43.269380Z |
dbe71c1 |
PR opened |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|

Note Currently processing new changes in this PR. This may take a few minutes, please wait...
⚙️ Run configuration
-
- Configuration used: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
b084ee72-17e2-4267-a7fc-0eaf7464d29c
📥 Commits
-
Reviewing files that changed from the base of the PR and between 50bbac5 and dbe71c1.
⛔ Files ignored due to path filters: 1
-
pkgs/graph/go.sum is excluded by !**/*.sum
📒 Files selected for processing: 5
-
.github/workflows/go-modules-build.yml
.github/workflows/map-build.yml
pkgs/graph/go.mod
pkgs/graph/main.go
pkgs/graph/test.go
+---------------------------------------+
| CI/CD: Carrots In / Defects Canceled. |
+---------------------------------------+
\
\ /)/)
( '')
/ |
o(___)
✨ Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
-
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Oct 21, 2026
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
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.
|