Title: pkgs/identity builds only with -tags sqlite|libsql and nothing in CI says so — plain go build fails on 3 undefined symbols · Issue #340 · developing-today/code · GitHub
Open Graph Title: pkgs/identity builds only with -tags sqlite|libsql and nothing in CI says so — plain go build fails on 3 undefined symbols · Issue #340 · developing-today/code
X Title: pkgs/identity builds only with -tags sqlite|libsql and nothing in CI says so — plain go build fails on 3 undefined symbols · Issue #340 · developing-today/code
Description: What pkgs/identity cannot be built without a build tag. A plain go build ./... fails: # github.com/charmbracelet/charm/server/db/sqlite/migration …/server/db/sqlite/migration/migration.go:15:2: undefined: Migration0003_DT_Passwords_And_K...
Open Graph Description: What pkgs/identity cannot be built without a build tag. A plain go build ./... fails: # github.com/charmbracelet/charm/server/db/sqlite/migration …/server/db/sqlite/migration/migration.go:15:2: und...
X Description: What pkgs/identity cannot be built without a build tag. A plain go build ./... fails: # github.com/charmbracelet/charm/server/db/sqlite/migration …/server/db/sqlite/migration/migration.go:15:2: und...
Opengraph URL: https://github.com/developing-today/code/issues/340
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pkgs/identity builds only with -tags sqlite|libsql and nothing in CI says so — plain go build fails on 3 undefined symbols","articleBody":"## What\n\n`pkgs/identity` cannot be built without a build tag. A plain `go build ./...` fails:\n\n```\n# github.com/charmbracelet/charm/server/db/sqlite/migration\n…/server/db/sqlite/migration/migration.go:15:2: undefined: Migration0003_DT_Passwords_And_Keys\n…/server/db/sqlite/migration/migration.go:18:2: undefined: Migration0005_AlterReduceNull\n…/server/db/sqlite/migration/migration.go:19:2: undefined: Migration0006_Files\n```\n\nVerified on origin/main `556d084c` (Go 1.25.1).\n\n## Why it fails\n\nThe module replaces `github.com/charmbracelet/charm` with the fork\n`github.com/developing-today-forks/charm v0.12.7-0.20240623052414-4e00e033848b`\n(`pkgs/identity/go.mod:37`). That fork's migration variants are behind\n`//go:build sqlite` / `//go:build libsql` tags\n(`0003_password_sqlite.go`, `0003_password_libsql.go`, `0006_files_*_*.go`), and\n`migration.go` references the symbols unconditionally. With no tag, none of the\nvariants compile and the error names only the dependency internals — nothing\npoints at the missing tag.\n\n## Discovery problem\n\n- The tag requirement is documented nowhere in the module: `pkgs/identity/README.md`\n is 4 lines and says nothing about building; `main.go` has no tag reference.\n- The only build scripts that get it right are the PowerShell helpers\n `build-sqlite.ps1:133-138` and `build-libsql.ps1:129-134`, which derive the tag\n from the script filename. A Linux/CI developer running plain `go build` gets the\n cryptic failure.\n- Nothing builds `pkgs/identity` in CI: no workflow references the directory, and\n `mod-tidy.yml` does not cover it. A future change that breaks one tagged variant\n would rot silently.\n\n## What works\n\n`go build -tags sqlite ./...`, `go build -tags libsql ./...`, and\n`go vet -tags sqlite ./...` all pass on the same commit — the module is healthy\nwhen tagged. The gap is documentation + CI coverage, not a broken module.\n\n## Suggested fix\n\n1. A CI workflow mirroring `map-build.yml` (#339): on `pkgs/identity/**` changes,\n run `go build` and `go vet` with `-tags sqlite` AND `-tags libsql`.\n2. A short build note in `pkgs/identity/README.md` stating the required tag and\n what each variant selects.\n3. Upstream (fork) follow-up, not in this repo: default one migration variant (or\n a compile-time error in `migration.go` naming the missing tag) so the plain\n build error is no longer misleading.\n\n## Acceptance\n\n- CI workflow runs `go build` + `go vet` for both tags on any `pkgs/identity`\n change and is green.\n- README names the tag requirement.\n- The fork-side fix is tracked separately if pursued; not required here.","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-19T08:25:00Z","url":"https://github.com/developing-today/code/issues/340"}
| 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:4b670300-3b15-6fd2-37dd-67edb0171097 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EB8C:F8B90:49795A:6249A6:6B061FC9 |
| html-safe-nonce | 24a5169bb10ab694909aa9ee1824efa768768990b905cc381e78addd9d59ab1e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjhDOkY4QjkwOjQ5Nzk1QTo2MjQ5QTY6NkIwNjFGQzkiLCJ2aXNpdG9yX2lkIjoiNzMzMDY1MjIxODQyMjg2MTc2OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2ec9bfbcebafdef501d4964d4bd0f85e7c675f89069a9355c0e85f4de77f42f7 |
| hovercard-subject-tag | issue:5920428345 |
| 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/340/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d2ce9650127596fc6db4d518e6326723a881ee15360b193ba3e7d2e99109e3d3/developing-today/code/issues/340 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d2ce9650127596fc6db4d518e6326723a881ee15360b193ba3e7d2e99109e3d3/developing-today/code/issues/340 |
| og:image:alt | What pkgs/identity cannot be built without a build tag. A plain go build ./... fails: # github.com/charmbracelet/charm/server/db/sqlite/migration …/server/db/sqlite/migration/migration.go:15:2: und... |
| 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 | 9a7c5824b75ea2ec5e3de73a483229c7bb9f32a774ffd401f010dd9bacf1483d |
| 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 | b25c3080e84402f75431d8dc7a96b2635219cec7 |
| 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