GeezerVison is showing github.com — fix(map): upgrade keygen to v0.5.1 so pkgs/map builds again by dezren39 · Pull Request #339 · developing-today/code
Conversation
dezren39
commented
Oct 19, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Fixes #338
Problem
go build ./... in pkgs/map failed on main (284cd52): charm v0.12.6 → keygen v0.4.2 → caarlos0/sshmarshal v0.1.0 dot-imports golang.org/x/crypto/ssh, and its MarshalPrivateKey / MarshalPrivateKeyWithPassphrase collide with the same functions in x/crypto v0.16.0 (ssh/keys.go:302/308). Reproduced this run with the module's pinned Go 1.21.3 toolchain (after go mod download fills the go.mod hashes main's go.sum is missing — tidy fixes that too). Same root cause as #166 (pkgs/graph), but map actually uses charm/kv in main.go, so the chain is upgraded, not removed.
Solution
go get github.com/charmbracelet/[email protected] && go mod tidy: keygen v0.5.1 no longer depends on sshmarshal; sshmarshal leaves the module graph entirely. x/crypto rises v0.16.0 → v0.26.0 (keygen's requirement), with x/net, x/sync, x/sys, x/term, x/text following. charm/kv usage untouched.
- Stale nix packaging removed instead of regenerated (the issue's alternative acceptance path):
default.nix, shell.nix, flake.todo.nix, flake.lock, gomod2nix.toml. Evidence it was abandoned, all verified this run: the flake was never renamed from flake.todo.nix; its outputs signature fails on modern nix (function 'outputs' called with unexpected argument 'self'); after patching that in a scratch copy the locked Oct-2023 gomod2nix builder rejects the patch-level go 1.21.3 directive, and after a full flake update it still cannot build badger v4 (the locked Go predates unsafe.SliceData); gomod2nix.toml was an empty stub (schema line + empty [mod], 3 lines). Nothing in the root flake references pkgs/map. If nix packaging is wanted again, it is one gomod2nix generate run on a module that now builds.
- New
.github/workflows/map-build.yml: builds and vets pkgs/map on PR/push changes to it. No CI built this module at all, which is how it rotted silently.
Verification
- Pre-fix: collision reproduced exactly as the issue reports (exit 1, both symbols).
- Post-fix:
go build ./... and go vet ./... pass with GOTOOLCHAIN=go1.21.3 and with go1.25.1; go mod tidy idempotent; workflow YAML parses.
- Single-repo change: no
sources/map module exists in developing-today/opencode, developing-today/openchamber, or dezren39/nix, so there is nothing to propagate.
![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 and Validation
- Added automated Go build and static analysis checks for map package changes and updates to the main branch.
-
Dependency Updates
- Updated the Go key-generation and supporting cryptography, networking, synchronization, system, terminal, and text packages.
-
Development Tooling
- Removed the map package’s Nix-based build and development environment.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
charm v0.12.6 -> keygen v0.4.2 -> caarlos0/sshmarshal v0.1.0 dot-imports
golang.org/x/crypto/ssh, whose MarshalPrivateKey /
MarshalPrivateKeyWithPassphrase (x/crypto v0.16.0, ssh/keys.go) collide
with sshmarshal's own declarations, so 'go build ./...' in pkgs/map
failed. Unlike pkgs/graph (#166), map actually uses charm/kv
(main.go), so the chain is upgraded, not removed: keygen v0.5.1 no
longer depends on sshmarshal at all, and pulls x/crypto v0.26.0.
Also remove the stale gomod2nix packaging (default.nix, shell.nix,
flake.todo.nix, flake.lock, gomod2nix.toml): it never worked - the
flake was never renamed from flake.todo.nix, its outputs signature
rejects modern nix ('function outputs called with unexpected argument
self'), its lock pins Oct-2023 nixpkgs/gomod2nix, and gomod2nix.toml
was an empty stub (schema + empty [mod]). Nothing in the root flake
references it. Regenerating is one gomod2nix run on a building module
if nix packaging is wanted again.
Add .github/workflows/map-build.yml: no CI built this module at all,
which is how it rotted silently; the workflow builds and vets
pkgs/map on changes to it.
Verified: reproduced the collision on main (284cd52) with the
module's Go 1.21.3 toolchain; after the fix 'go build ./...' and
'go vet ./...' pass on go1.21.3 and on go1.25.1, 'go mod tidy' is
idempotent, and the charm/kv usage in main.go is untouched.
Codex Review Summary
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
⚠️ Failed 2026-10-19T08:13:53.457402Z |
40bf6dc |
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.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.
|
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:
8a1e4bdb-b41f-438a-ab2c-59f4d6a17c7f
📥 Commits
-
Reviewing files that changed from the base of the PR and between 284cd52 and 40bf6dc.
⛔ Files ignored due to path filters: 2
-
pkgs/map/flake.lock is excluded by !**/*.lock
pkgs/map/go.sum is excluded by !**/*.sum
📒 Files selected for processing: 6
-
.github/workflows/map-build.yml
pkgs/map/default.nix
pkgs/map/flake.todo.nix
pkgs/map/go.mod
pkgs/map/gomod2nix.toml
pkgs/map/shell.nix
+--------------------------+
| // TODO: Find more bugs. |
+--------------------------+
\
\ (\__/)
(•ㅅ•)
/ づ
✨ Finishing Touches
-
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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 19, 2026
This was referenced Oct 18, 2026
This was referenced Nov 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.
|