Title: pkgs/map Go build fails on sshmarshal/x/crypto symbol collision — same root cause as #166, separate module, and it actually uses charm/kv · Issue #338 · developing-today/code · GitHub
Open Graph Title: pkgs/map Go build fails on sshmarshal/x/crypto symbol collision — same root cause as #166, separate module, and it actually uses charm/kv · Issue #338 · developing-today/code
X Title: pkgs/map Go build fails on sshmarshal/x/crypto symbol collision — same root cause as #166, separate module, and it actually uses charm/kv · Issue #338 · developing-today/code
Description: Symptom From pkgs/map on current main (284cd52), go build ./... fails while compiling github.com/caarlos0/sshmarshal@v0.1.0: # github.com/caarlos0/sshmarshal .../caarlos0/sshmarshal@v0.1.0/marshal.go:29:6: MarshalPrivateKey already decla...
Open Graph Description: Symptom From pkgs/map on current main (284cd52), go build ./... fails while compiling github.com/caarlos0/sshmarshal@v0.1.0: # github.com/caarlos0/sshmarshal .../caarlos0/sshmarshal@v0.1.0/marshal....
X Description: Symptom From pkgs/map on current main (284cd52), go build ./... fails while compiling github.com/caarlos0/sshmarshal@v0.1.0: # github.com/caarlos0/sshmarshal .../caarlos0/sshmarshal@v0.1.0/marshal....
Opengraph URL: https://github.com/developing-today/code/issues/338
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pkgs/map Go build fails on sshmarshal/x/crypto symbol collision — same root cause as #166, separate module, and it actually uses charm/kv","articleBody":"## Symptom\n\nFrom `pkgs/map` on current main (284cd52b), `go build ./...` fails while compiling `github.com/caarlos0/sshmarshal@v0.1.0`:\n\n```text\n# github.com/caarlos0/sshmarshal\n.../caarlos0/sshmarshal@v0.1.0/marshal.go:29:6: MarshalPrivateKey already declared through dot-import of package ssh (\"golang.org/x/crypto/ssh\")\n\t.../golang.org/x/crypto@v0.16.0/ssh/keys.go:302:6: other declaration of MarshalPrivateKey\n.../caarlos0/sshmarshal@v0.1.0/marshal.go:35:6: MarshalPrivateKeyWithPassphrase already declared through dot-import of package ssh (\"golang.org/x/crypto/ssh\")\n\t.../golang.org/x/crypto@v0.16.0/ssh/keys.go:308:6: other declaration of MarshalPrivateKeyWithPassphrase\n```\n\nReproduced this run (2026-10-19) with the module's pinned Go 1.21.3 toolchain; exit code 1.\n\n## This is the #166 root cause in a second, untracked module\n\n#166 tracks the identical collision for `pkgs/graph` only. `pkgs/map` is a separate Go module (`module github.com/developing-today/code/sources/map`, its own `go.mod`/`go.sum`/`gomod2nix.toml`) with the same dependency path: `charm v0.12.6` → `keygen v0.4.2` → `caarlos0/sshmarshal v0.1.0`, resolving `golang.org/x/crypto v0.16.0`. Fixing #166 will not fix this module.\n\nTwo differences from #166 that change the fix:\n\n- **`pkgs/map` actually uses Charm.** #166's suggested graph fix (remove the unused Charm KV demo dependency) is not available here: `pkgs/map/main.go:8` imports `github.com/charmbracelet/charm/kv` and `main.go:74` calls `kv.OpenWithDefaults(\"my-cute-db\")`. The fix must upgrade/replace the chain, not delete it.\n- **No CI covers this module at all.** The only workflow referencing any of the small `pkgs/*` Go modules is `.github/workflows/mod-tidy.yml`, and it is graph-only (and tidy-only, not a build). Nothing builds `pkgs/map`, which is how it rotted silently.\n\nSibling modules verified building clean on the same main this run: `pkgs/chat`, `pkgs/database`, `pkgs/tea`, `pkgs/import`, `pkgs/launcher`. (`pkgs/identity` also builds, with its required `-tags libsql`.) So the broken set is exactly graph (#166) + map (this issue).\n\n## Suggested fix (verified in a scratch copy, not committed)\n\n```text\ncd pkgs/map\ngo get github.com/charmbracelet/keygen@v0.5.1\ngo mod tidy\ngo build ./... # passes; sshmarshal leaves the module graph entirely\n```\n\nkeygen v0.5.1 no longer depends on sshmarshal. Remaining work beyond the scratch verification: regenerate `gomod2nix.toml` so the `default.nix` `buildGoApplication` build matches the new `go.mod`, and verify that nix build.\n\n## Acceptance criteria\n\n- [ ] `go build ./...` (and `go vet ./...`) pass in `pkgs/map` with the module's toolchain, without removing the `charm/kv` functionality used in `main.go`.\n- [ ] `gomod2nix.toml` regenerated and the nix build of `pkgs/map` passes (or, if the nix packaging is intentionally abandoned — note `flake.nix` is still named `flake.todo.nix` — that is recorded and the stale packaging removed instead).\n- [ ] A CI build check covers `pkgs/map` (e.g. extend `mod-tidy.yml` into a build workflow for the small Go modules, or add a map-specific one) so this cannot silently regress again.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-19T07:39:34Z","url":"https://github.com/developing-today/code/issues/338"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9ee816b3-7f21-be7d-91ac-cc9b1a70aeb9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 94E6:D7A7C:814CBA:A7B435:6B062D4F |
| html-safe-nonce | 5a5ca06c0463aa0d97900d412be0e1b8fe5263dbb4ea1cc8aa4ba8043cba7809 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NEU2OkQ3QTdDOjgxNENCQTpBN0I0MzU6NkIwNjJENEYiLCJ2aXNpdG9yX2lkIjoiNzE2Mjk2ODM5NzMxMDIwOTM1OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 43ce3bf4ce5e7ff1ecdb318204330db4c1eca24dd1797c70048feca27c5914c6 |
| hovercard-subject-tag | issue:5919849771 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/338/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5cadf5eb6d5047c075730ba84594113769080119e39582b1638c8893f1c12ae2/developing-today/code/issues/338 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5cadf5eb6d5047c075730ba84594113769080119e39582b1638c8893f1c12ae2/developing-today/code/issues/338 |
| og:image:alt | Symptom From pkgs/map on current main (284cd52), go build ./... fails while compiling github.com/caarlos0/sshmarshal@v0.1.0: # github.com/caarlos0/sshmarshal .../caarlos0/sshmarshal@v0.1.0/marshal.... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7f961de5dd5c5d4aca24d33f8b3ffb3fb8b2ef53d0a4f32f01f0a790e512f6d3 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 494ea0bb1e0feef734a83e2628697647755e8864 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width